-
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
VM crash: DirectoryWatchHandle::Stop() is invoked after handle is released #43941
Comments
watching |
https://dart-review.googlesource.com/c/sdk/+/169601 with potential fix |
Based on some Windows crash dumps that I was able to share with @aam he sent me an experimental dart SDK with this fix for testing purposes. And I didn't note a single crash and "Dart Analyzer has terminated" messages during some hours of flutter development today. So this issue seems to be on a good way to be solved. |
I still have this issue
|
The fix mentioned here
is not yet part of any current flutter channel, not even dev. So we'll have to wait until one of the flutter releases is bundled with at least dart sdk |
…andle. Fixes #43941 TEST=Running four dart scripts in parallel that delete/watch thousands of file reproduces the failure after several minutes. After the fix it no longer reproduces. Change-Id: I6a0a928838c676f44e747a822611b56f0ffc4841 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169601 Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
From Dart-Code/Dart-Code#2814 Dart vm runtime crashes when FileSystemWatcher broadcastController onCancel is invoked, that calls unwatchPath, that calls DirectoryWatchHandler::Stop for the DirectoryWatchHandle that seems to be already released(its ref_count is 0, monitor_ is 0):
The text was updated successfully, but these errors were encountered: