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
Future returned from Isolate.spawnUri(bad library) does not complete #15348
Comments
Added Area-Library, Library-Isolate, Triaged labels. |
Changed the title to: "Future returned from Isolate.spawnUri(bad library) does not complete". |
Reassigning to VM. When running the given example I see the following output: The error comes from isolate.cc:595 ShutdownIsolate, and it doesn't look like the Dart side gets to see the error. I'm willing to dig deeper, but I would prefer if the VM devs have a look first. cc @a-siva. |
The problem is still reproducible at least on Dart VM version: 1.17.1 (Fri Jun 10 04:58:25 2016) on "windows_x64". I think it is important to fix this, because it will make Dart more programmer-friendly. |
The problem is still reproducible at least on Dart VM version: 1.20.1 (Wed Oct 12 15:07:45 2016) on "windows_x64" |
@alsemenov Apologies that nobody looked at this issue for so long. I have just tried to reproduce the issue and it seems that one does get a meaningful error message one can act upon: import 'dart:io';
import 'dart:isolate';
main() async {
// Notice that "bar.dart" doesn't contain a "main" function.
File('bad.dart').writeAsStringSync('foo() {}');
try {
await Isolate.spawnUri(Uri.parse('bad.dart'), [], null);
} catch (e) {
print('Got error: $e');
}
} This will print an error and exit the program (i.e. not hang):
This issue seems to be fixed. |
This issue was originally filed by alexe.kaigorodov@gmail.com
What steps will reproduce the problem?
What is the expected output?
Callback set by Future.whenComplete(), or Future.then(), should be invoked.
What do you see instead?
The main program hangs.
What version of the product are you using? On what operating system?
Dart VM version: 1.0.0.3_r30188 (Tue Nov 12 01:15:26 2013) on "linux_ia32"
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: