-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Dart VM crash (Access Violation) on Windows (1.12.1) #28757
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
tl;dr: Shorter reproduction: Running the original example with a debug-X64 build, I get:
That suggests that the crash is in the parser, where the It is supposed to be a compile-time error - using a generic function type parameter as an expression - but not like this :) |
Thanks for the report. The VM should not crash indeed. |
#28757). Note that this code has no effect yet, because generic functions are not yet fully supported (no regression test added). [email protected] Review-Url: https://codereview.chromium.org/2690923004 .
While working on some code today using
built_value
I managed to get the Dart VM to crash (that is, Windows saiddart.exe has encountered a problem and had to close
rather than the normal exception spat to screen).I was able to reduce the code to this very small sample:
When I run this, the VM crashes. I don't think this code logically makes much sense (I don't even know if Generics are supposed to work yet, and there's a mismatch of awaits and non-async code) but it doesn't seem like the VM should crash.
Most tweaks I try to simplify/correct the code stop the crash from occurring.
If I hit Debug in the Windows dialog I get the following information:
I'm on Windows 10 Pro x64 running v1.21.1 of the SDK. I have the above code in a
.dart
file and I'm just running it withdart myfile.dart
.The text was updated successfully, but these errors were encountered: