-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Deleting files under directory watching on Windows can cause VM crash #40348
Comments
Although my repro was quite contrived, I think Dart-Code/Dart-Code#2287 (comment) may be a user still hitting this when working on Flutter (using the master branch it's happening less, but still happening). |
@zichangg Have you tried if this crash can be reproduced? |
This has come up a few times again in Dart-Code/Dart-Code#2704 where running a Flutter app crashes the analysis server. Although I can't reproduce it when running the Flutter app, I have reproduced it a few times running
If it doesn't repro, I just re-run the app, stop it, then clean. Here is a crash dump: https://drive.google.com/file/d/119wljBikMtmlE2iQsEKaMUEa9NtMQL7x/view?usp=sharing The version of Flutter I used was
Last things in the analyzer instrumentation log are:
Full analyzer instrumentation log: analyzer.instrum.txt |
@DanTup if you have consistent repro instructions could you post them here. |
@a-siva I posted some notes above with a crash dump: #40348 (comment) It doesn't repro 100% of the time, but if I build/clean a few times, it happens maybe 1-2 times in 5 on my PC. |
I am able to repro this issue with the following steps:
In my real project I'm working on I don't have to emit a I already struggled with issue flutter/flutter#46616 some times ago, which was resolved for me by the fixes mentioned there. BTW my Windows development machine is rather old, maybe it's some timing issue? |
The original cl is landed: https://dart-review.googlesource.com/c/sdk/+/133180 But it didn't apply the change in nnbd version and therefore got dropped during nnbd migration. Bug: #40348 Change-Id: I648a0ba76122995e5264afce103711dee8c104a0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160381 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Zichang Guo <[email protected]>
I'm still encountering the same issue with the latest dart-code and Flutter SDK. If there is any cleanup procedures needs to be done, please let us know. Thank you. |
@elricym I believe the issue has been fairly recently re-fixed in 04879fa. I don't think that fix has made a stable Flutter release yet. If you can still repro on a version of Flutter that includes that fix (which right now is probably only master/dev branches) then it might be worth getting a crash dump. |
@DanTup Oh sorry, I thought the latest1.20.3 version is related to this issue. |
@elricym unfortunately not. The easiest way I've found to check if a Dart SDK change is in the Flutter SDK you have is to run Then if you find the changeset you're interested in in the Dart SDK repo and click the "..." to expand the tags list, you can see which SDK versions include that fix: For this one, it's only been included in the releases since 2.10.0-77.0.dev, so isn't present in v2.9. Hope this makes sense! |
@a-siva reopened, but seems like it can be closed, please take a look |
I believe there's still an issue here. There was a fix made (that was accidentally lost, then re-applied), but the original comment here referred to a crash I could still repro with the fix. I tested again using my same scripts using the current nightly and it happened for 2 out of 11 attempts:
Here's a crash dump: https://drive.google.com/file/d/1wFVekU_2jn16IEmiaiNN-9nwSgz0xZSe/view?usp=sharing |
/cc @aam |
@DanTup wrote
What are the scripts Danny? |
@amm yep! If you don't still have them, you can get them at flutter/flutter#46616 (comment) (I copied them from there yesterday, so that's exactly the code I ran). |
@aam using the VM you sent me I didn't see the crash in 20 runs. It was fairly intermittent so no guarantees, but it does seem like it may have fixed/improve it :-) |
Thanks @DanTup ! I have put together https://dart-review.googlesource.com/c/sdk/+/164340 with the fix. |
Great! I had another report of what may be this still occurring on Flutter master (which has the original fix), so I wonder if it could be this (Dart-Code/Dart-Code#2814). |
I had another report of this from @szerner on Flutter's dev channel which includes the latest fix made above, so this may still be an issue. Dart-Code/Dart-Code#2814 (comment) @szerner if you able to repro this on a clean Flutter project it may be useful to collect a crash dump (https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps). |
The issue still occurs with Flutter Channel stable, 1.22.0 |
See here @DanTup's comment, the current stable version does not yet contain the fix. At the moment you have to switch to the dev or master channel. |
Hello devs!
It was a success! I hope I can help them 😀 |
Thanks @felipecastrosales , but in my case this procedure didn't help. Nice you've got a solution for your issue! |
From flutter/flutter#46616 several races were fixed and flutter concerns seem to be addressed, but repro that @DanTup referenced there sill causes crashes in Danny's set up.
Crashdump is available here https://drive.google.com/a/google.com/file/d/186LwO1g9p-eCW9jFmX7sqfhPSmM1hUlI/view?usp=sharing
The text was updated successfully, but these errors were encountered: