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
Crash when compiling a project #147412
Comments
Looks like a CFE crash. /cc @johnniwinther |
Hi there, I'm getting the same after running flutter pub upgrade. |
Hi @Decodeuprefo and @alistair-riskmemo, I see there was a similar issue at Dart SDK repository dart-lang/sdk#54267 which has been fixed. I'm unsure if it's been landed on Flutter stable 3.19.6 with Dart 3.3.4 yet or maybe this is a regression. So could you switch to the latest Flutter master channel and retry? |
Getting same error: Unhandled exception: #0 CfeEnumOperations.getEnumElementValue (package:front_end/src/fasta/kernel/exhaustiveness.dart:395) Flutter doctor: [✓] Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-x64, locale [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.88.1) [✓] Connected device (2 available) [✓] Network resources • No issues found! |
It's working for me on the master channel. [✓] Flutter (Channel master, 3.22.0-18.0.pre.53, on macOS 14.4.1 23E224 darwin-arm64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.88.1) [✓] Connected device (5 available) [✓] Network resources • No issues found! |
@Decodeuprefo You are on Flutter stable 3.19.6. As @alistair-riskmemo confirmed, the issue may be fixed on master channel, please also try on it and confirm. Thanks! |
Yes, I am on Flutter stable 3.19.6. And still facing same issue. |
@Decodeuprefo Do you mean you still see the issue on Flutter master channel (
|
Working fine in master channel. Not facing this issue there. |
Thank you for verifying it. Closing this issue as fixed. The fix should land on the stable channel in future releases. |
@huycozy So should we not switch to |
From the potential commit dart-lang/sdk@fa8e34e that I thought fixed this issue, I see the fix is also available on the latest beta channel
|
Steps to reproduce
Running the project in any device
Expected results
Project should run in device
Actual results
Getting following error:
Code sample
It is an exiting project, which used to work properly, But after few days it start giving this error.
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: