-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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 compiler exited unexpectedly after flutter upgrade #148611
Comments
flutter doctor results: • No issues found! |
|
@darshankawar here is the pubspec.yaml name: ########## Prevent accidental publishing to pub.dev.publish_to: 'none' version: 1.0.0+1 environment: dependencies: dev_dependencies: flutter: uses-material-design: true Enable generation of localized Strings from arb files.generate: true assets: |
TL;DR: In my case, the reason was that I was using deprecated MaterialState* classes. I replaced them with WidgetState and the problem went away. But, to see the cause of this I applied dirty patch to dart-sdk (3.4.0): patched body_builder.dart
Anyway, I think that Concurrent modification error should be avoided, even in cases like that. Well, it would be great to show some kind of informative message. |
Thanks for the update. I'll keep the issue open on the reported behavior for team's attention. |
@johnniwinther seems like a CFE bug. I don't know if it is already fixed upstream or not. |
It looks like a CFE bug. |
guys, thanks for picking this up. i've downgraded my flutter version in the meantime, and everything is working as it should. if you need any more details or specific information from my end to assist with the investigation or to reproduce the issue, please let me know. thanks! |
Closes flutter/flutter#148611 Change-Id: Idb091df6d771f286428809326e65ac6203f09d49 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368301 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
I was able to reproduce the issue and have just landed the fix: dart-lang/sdk@991fbf4. |
Can we close this issue as a fix has landed. |
Closing as fixed. |
I'm still facing the same with 3.22.2, only iteration: Instance(length:7) of '_GrowableList' |
@iostriz I don't think the fix was cherry picked into 3.22.2. |
Steps to reproduce
Ran into the following errors repeatedly, even after cleaning, fetching dependencies again, etc.
Expected results
Expected the app to run on debug smoothly, both in the simulator and physical device. I only had the issue after I updated the SDKs.
Actual results
App not running as expected
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered: