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
"dart.exe has stopped working" on Windows when doing "pub run test" (Dart SDK 1.13.1+) #25345
Comments
Also /ccing @whesse for the 'find: > ...' when running pub run test. Also: "dart.exe has stopped working" only happens, if the script finds tests. |
Also ccing @nex3 and @munificent. Maybe they can help reduce the example. |
Without a stack or something, I'm not sure what would be going on here. I'm not familiar enough with Windows to even know the general categories of failures that would cause an error like this. As far as I know, the test package isn't doing anything particularly unusual here—just starting up some isolates. |
Given instructions, I can try and generate additional logs. |
Try running |
Executing
|
Nothing useful there I'm afraid. |
Error output from Windows Viewer - Windows Logs - Application - Application Error
|
Error output from Windows Viewer - Windows Logs - Application - Information
|
Looks like a crash bug in the Dart VM. Can you check if it also occurs with the latest stable SDK version 1.13.2? |
This crash may already have been fixed on the dev channel. I tried with the bleeding edge (1.14.0) and could not reproduce the crash. Any chance you could try a dev-channel SDK? """ C:\src\regress25345>..\dartgit\sdk\build\ReleaseX64\dart-sdk\bin\pub run test test.dart |
If given an instrumented and verbose build, I can probably give a better log. |
Hm, that's strange. I still can't reproduce it. Is it always crashing, or just every once in a while? Let's make sure
Let's make sure, the repro is the same as yours: Here is what I use as pubspec.yaml:
and here is test.dart import "package:test/test.dart";
void main( ) {
test("String.split() splits the string on the delimiter", ( ) {
var string = "foo,bar,baz";
expect(string.split(","), equals(["foo", "bar", "baz"]));
});
test("String.trim() removes surrounding whitespace", ( ) {
var string = " foo ";
expect(string.trim(), equals("foo"));
});
} am I missing something from the reproduction? |
I will do a complete isolated test, similar to what you have done, and report back. |
I litterally just downloaded the Unpacked it.
Did Created
Executed I can recreate this on 2 Windows computers, one running 64bit Windows 8.1 and the other 64bit Windows 10. |
I can record the whole test using a screen capture app, if you want. I am getting this problem one two separated Windows machines. |
Thanks for trying this. It looks like the tests pass and then the VM crashes. It seems that there is a crash bug in the shutdown of the dart process. I'll investigate more. |
I tried Windows 7 only so far. I'll try a Windows 10 machine as well. It could be the Windows version that makes it reproduce. @zanderso is working on fixing VM shutdown issues. I'll keep this issue updated when we have a potential fix. |
100% reproducible for me as well (Windows 8.1), also with the latest SDK 1.14-dev.7.0. |
Fixed with 89121bf. |
Seems not fixed. I have the same problem but under Mac OSX
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Dart VM version: 1.17.1 (Fri Jun 10 04:46:03 2016) on "macos_x64" |
@MikeMitterer You are probably seeing a different bug. Could you please file a new issue with reproduction instructions. Thanks! |
OS: Windows 10 64bit
Dart SDK version: 1.13.1
Test library version: 0.12.6+2
Terminal: cmder 1.1.4.1 (but problem also exists using Window's cmd terminal)
Test test suit does go through, but each time I get a Windows "dart.exe has stopped working".
Just doing
dart test.dart
gives no problems at all.I don't know if there are any logs I can attach to help with the bug report.
The test is the sample test from the test library's documentatoin
The text was updated successfully, but these errors were encountered: