Closed vaind closed 3 years ago
Seems like we are stuck in speculation loop in one of the functions. @alexmarkov could you take a look?
Hi @vaind I can confirm it
Thanks for filing the issue!
The fix was rolled into Flutter in e5f75dbe0b03ab6912cb7c58110d70ff1d489d35.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Steps to Reproduce
lib/main.dart
contents to https://gist.github.com/vaind/2ffd8c8bde7e2d0bd1fc9559cbdfb3bepubspec.yaml
min SDK version to 2.12 to enable null-safetyflutter build apk --release
you get
../../third_party/dart/runtime/vm/compiler/aot/precompiler.cc: 2761: error: unreachable code
Logs
Logs
``` Running "flutter pub get" in errorful... 390ms 💪 Building with sound null safety 💪 ../../third_party/dart/runtime/vm/compiler/aot/precompiler.cc: 2761: error: unreachable code Dart snapshot generator failed with exit code -6 FAILURE: Build failed with an exception. * Where: Script '/home/ivan/lib/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 991 * What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'. > Process 'command '/home/ivan/lib/flutter/bin/flutter'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 3s Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done 3.6s Gradle task assembleRelease failed with exit code 1 ``` ``` [✓] Flutter (Channel stable, 2.0.3, on Linux, locale en_US.UTF-8) • Flutter version 2.0.3 at /home/ivan/lib/flutter • Framework revision 4d7946a68d (12 days ago), 2021-03-18 17:24:33 -0700 • Engine revision 3459eb2436 • Dart version 2.12.2 ```