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 analyzer terminates when running Flutter app #44574
Comments
@baku-apps Unfortunately without more details, like the example of code of which the analyzer does not stop analyzing, there is not much that I can do. |
+area-vm for checking the crashdump. |
@aam FYI - this may be similar to the watcher issues seen before, though still occurring in Flutter 1.22.4 (which I believe includes the previous fixes). |
thank you @baku-apps . Is the crash dump in #44574 (comment) for flutter 1.22.4 and dart from that flutter distro? Is there a way to confirm that that dart sdk is what flutter analyzer uses when you experience the crashes/restarts? |
@aam the crashdump is made with version 1.22.3. However the same issue occurs also with 1.22.4 and 1.22.5. However, only for 1.22.3 I see in visuals studio a popup message that the Dart analyzer is terminated and if I want to restart it. I'm using the dart sdk shipped with Flutter. I have re-installed Flutter and Dart several times and still have the same issue. It only happens with one particular project. And have not experienced it yet with other Flutter projects. Hope this information helps. |
@baku-apps are you able to capture a crash dump using 1.22.4/1.22.5? There were some changes in 1.22.4 intended to fix this, so a crash dump from 1.22.3 may not help understand why the issue still exists in the newer versions.
What's the behaviour you're seeing in 1.22.4? If there's no popup saying the analyzer terminated, could it be a different issue? I can't think of a reason the popup wouldn't appear if the analyzer process terminates so I wonder if you're seeing something else. |
I believe this is likely the issue described in #44650. It would explain why there's no "Analyzer Terminated" message - it's not the VM crash, but rather an error in the watcher that affects the servers state. |
@DanTup I'll try to add the crashdump for v1.22.4 and 1.22.5 before Friday. |
If I'm right about the above, I suspect you might not get a crash dump - it may be that the server is still running, but has bad state as a result of a file system watcher failure (which stops most completions from being returned). If that seems to be the case, we can close this in favour of #44650. |
This issues was reported at [https://github.com/Dart-Code/Dart-Code/issues/2990] (Dart-Code/Dart-Code#2990), and asked by @DanTup to report the issues here.
See crashdump here:
dart.exe.13424.zip
The text was updated successfully, but these errors were encountered: