-
-
Notifications
You must be signed in to change notification settings - Fork 23
Shell command call is causing applications crash or hangs-up. #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It seems you are on flutter master channel. Does it work on stable? |
@alextekartik If you can't replicate this issue with this command then try "ip addr" command instead of "ls" command. |
Are you on the latest version of process_run (0.11.2 / 0.12.1) and if not can you try a pub upgrade. A log of the crash would be helpful as I cannot reproduce (although I'm suspecting an issue similar to #32 which should be fixed). Also, as I asked before, does it work on flutter stable? |
I am using process_run : 0.11.2 and not able to upgrade to 0..12.1 because of another issue : #40 |
Can you provide a log of the crash? 0.11.2 (pre-nnbd) should be fine. |
@alextekartik |
Can you try to wrap with a try/catch and print the error and stacktrace? |
@alextekartik |
Ok, let's try the good old printf debugging (I'm assuming you're on Linux), can you try this in your print('Before');
try {
var shell = Shell();
var res = await shell.run('ls');
print(res.outLines);
} catch (e) {
print('error: $e');
}
print('After'); Please try on the beta or stable channel. |
To execute shell commands on desktop platforms, I am using process_run dependency. Sample code as shown below.
Application hangup or crash at the time of execution of second line. Please provide a latest solution for this issue. Here is the flutter doctor -v
Thanks
The text was updated successfully, but these errors were encountered: