Skip to content
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

App gets stuck at blank screen - Could not launch engine with configuration #88407

Closed
rymesaint opened this issue Aug 18, 2021 · 23 comments
Closed
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@rymesaint
Copy link

rymesaint commented Aug 18, 2021

When running the app on physical device it got stuck at installing and launching and only blank white screen appear.

iOS : 14.7.1
xcode : 12.5 or 13 beta still not fix the problem
Emulator : working properly
Info.plist information for local networking still not working

flutter clean or recreate ios folder using flutter create . did not help, i'm running out option

Logs
flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-ID)
    • Flutter version 2.2.3 at /Users/ridwanfauzan/Documents/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/ridwanfauzan/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (3 available)
    • iPhone Testing (mobile) • 8b4b2dd0e3ca37ed268847ee5c745201027ef939 • ios            • iOS 14.7.1
    • macOS (desktop)         • macos                                    • darwin-x64     • macOS 11.4 20F71 darwin-x64
    • Chrome (web)            • chrome                                   • web-javascript • Google Chrome 92.0.4515.159

• No issues found!
@rymesaint
Copy link
Author

rymesaint commented Aug 18, 2021

8.3.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
[        ] 8.3.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled
[  +10 ms] 8.3.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
[  +10 ms] 8.3.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
[        ] 8.3.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
[  +46 ms] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[        ] [VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[        ] [VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[        ] [VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.
[   +8 ms] Observatory URL on device: http://127.0.0.1:53332/

Forwarded port ForwardedPort HOST:57031 to DEVICE:53332
[        ] Forwarded host port 57031 to device port 53332 for Observatory
[   +5 ms] Caching compiled dill
[ +119 ms] Connecting to service protocol: http://127.0.0.1:57031/
[ +184 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:57031/.
[  +69 ms] DDS is listening at http://127.0.0.1:57034/JedQqwtZ4wM=/.

@TahaTesser TahaTesser added the in triage Presently being triaged by the triage team label Aug 18, 2021
@TahaTesser
Copy link
Member

Hi @rymesaint
Thanks for filing the issue

flutter clean or recreate ios folder using flutter create . did not help, i'm running out option

Instead of cleaning an existing project or creating an ios folder, can you please try to reproduce the issue using a new project without using third-party packages?

flutter create myapp
cd myapp (add your team id to run the app on physical device)
flutter run -v > run.log (this will copy your logs in a file, please drop this file in the comments below)

Thank you

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 18, 2021
@rymesaint
Copy link
Author

still blank with new project without any third party packages
run.log

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 18, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Aug 18, 2021

Hi @rymesaint
I just tried a physical device with iOS 14.7.1 and it runs fine when running new or existing project on the latest stable and master channels

Logs

run.log

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5304g darwin-x64, locale en-GB)
    • Flutter version 2.2.3 at /Users/tahatesser/Code/flutter_stable
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Code/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • Xcode 13.0, Build version 13A5212g
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (4 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E            • ios            • iOS 14.7.1
    • iPhone 12 (mobile)     • 7CC8A747-CD39-4C42-871C-2D1CCEAE2AE2 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • macOS 12.0 21A5304g darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 92.0.4515.159

! Doctor found issues in 1 category.
[✓] Flutter (Channel master, 2.5.0-7.0.pre.130, on macOS 12.0 21A5304g darwin-x64, locale en-GB)
    • Flutter version 2.5.0-7.0.pre.130 at /Users/tahatesser/Code/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d83fba1a22 (4 hours ago), 2021-08-18 03:02:04 -0400
    • Engine revision a27da3eeb6
    • Dart version 2.15.0 (build 2.15.0-24.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-31, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
    • Xcode at /Applications/Xcode-beta.app/Contents/Developer
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (4 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E            • ios            • iOS 14.7.1 18G82
    • iPhone 12 (mobile)     • 7CC8A747-CD39-4C42-871C-2D1CCEAE2AE2 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • macOS 12.0 21A5304g darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 92.0.4515.159

• No issues found!

Your issue looks similar to #67222

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 18, 2021
@MateusHBR
Copy link

MateusHBR commented Aug 18, 2021

here is happening the same...
all members of my team too.

@MateusHBR
Copy link

MateusHBR commented Aug 18, 2021

A workaround that worked here is running on the xcode but you do not have the power of hot reload.

@rymesaint
Copy link
Author

rymesaint commented Aug 18, 2021

Hi @rymesaint
I just tried a physical device with iOS 14.7.1 and it runs fine when new or exisitng project on the latest stable and master channels

Logs

run.log

flutter doctor -v
Your issue looks similar to #67222

deleting flutter_tools.stamp did not work, using new download from flutter.dev its work only using xcode with terminal still the same error

in xcode debugger output

2021-08-18 21:13:15.768174+0700 Runner[852:189247] Metal API Validation Enabled
2021-08-18 21:13:15.999990+0700 Runner[852:189507] flutter: Observatory listening on http://127.0.0.1:57216/PAAlrYAYUQU=/
2021-08-18 21:13:16.355794+0700 Runner[852:189497] fopen failed for data file: errno = 2 (No such file or directory)
2021-08-18 21:13:16.355920+0700 Runner[852:189497] Errors found! Invalidating cache...
2021-08-18 21:13:16.450749+0700 Runner[852:189497] fopen failed for data file: errno = 2 (No such file or directory)
2021-08-18 21:13:16.450828+0700 Runner[852:189497] Errors found! Invalidating cache...

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 18, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Aug 18, 2021

Hi @rymesaint
I just tried again, I still can't reproduce on a smaller app, when loading Flutter Gallery, which is much bigger, still doesn't get stuck, and only a blank page for a short time which has been there before

On stable channel

RPReplay_Final1629297653.mov

On master channel

RPReplay_Final1629299247.MP4

Does something happens if you wait few seconds on the blank screen? App closes or stays as it is?

@TahaTesser TahaTesser added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 18, 2021
@daniloapr
Copy link
Contributor

Does this something happen if you wait few seconds on the blank screen? App closes or stays as it is?

I am having the same issue on iPhone with iOS 14.7.1. I just created a new empty project and tried to run it from Xcode, and a white screen appears on the device and stays there forever. This is the log on Xcode's terminal:

2021-08-18 12:39:52.752284-0300 Runner[598:57834] Metal API Validation Enabled
2021-08-18 12:39:52.859326-0300 Runner[598:57834] Warning: Unable to create restoration in progress marker file
2021-08-18 12:39:52.880041-0300 Runner[598:58099] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
2021-08-18 12:39:52.880256-0300 Runner[598:58099] [VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
2021-08-18 12:39:52.881257-0300 Runner[598:58099] [VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
2021-08-18 12:39:52.881453-0300 Runner[598:58099] [VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.
2021-08-18 12:39:52.937794-0300 Runner[598:58113] flutter: Observatory listening on http://127.0.0.1:56483/AtRT5SAt0vA=/

From VSCode, running flutter run, I get the following output:

Running Xcode build...                                                  
 └─Compiling, linking and signing...                         3,6s
Xcode build done.                                            7,9s
(lldb) 2021-08-18 13:08:44.148257-0300 Runner[634:67422] [VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.             
[VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.   
[VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.   
Installing and launching...                                         9,2s

Although it says Installing and launching, it just keeps on the white screen. It works normally on Simulator with iOS 14.5.

My flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (version 2020.3)
    ✗ Unable to find bundled Java version.
[✓] IntelliJ IDEA Community Edition (version 2021.1.3)
[✓] VS Code (version 1.59.0)
[✓] Connected device (3 available)

! Doctor found issues in 1 category.

@TahaTesser TahaTesser added customer: crowd Affects or could affect many people, though not necessarily a specific customer. dependency: dart Dart team may need to help us engine flutter/engine repository. See also e: labels. passed first triage platform-ios iOS applications specifically and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds in triage Presently being triaged by the triage team labels Aug 18, 2021
@TahaTesser TahaTesser changed the title white blank screen iOS 14.7.1 stuck at installing and launching [iOS 14.7.1] App gets stuck at blank screen - Could not launch engine with configuration Aug 18, 2021
@TahaTesser TahaTesser added the e: OS-version specific Affects only some versions of the relevant operating system label Aug 18, 2021
@jmagman
Copy link
Member

jmagman commented Aug 18, 2021

Invalid kernel binary format version. generally means there's a mismatch between the version of Flutter used to build the app, and the dart VM version. Or something else in the artifacts cache is corrupted.

using new download from flutter.dev its work only using xcode with terminal still the same error

@rymesaint You mean you deleted your Flutter cache, downloaded it again from the website, and still see the same error?

@MateusHBR @daniloapr can we get your flutter doctor -v?

A workaround that worked here is running on the xcode but you do not have the power of hot reload.

@MateusHBR you only see it from the terminal, not from Xcode?

For anyone reproducing this, can you zip up and attach your entire project directory? This will include your actual app, so you may want to reproduce with a newly created flutter created app.

@ristiisa
Copy link

ristiisa commented Aug 18, 2021

For anyone reproducing this, can you zip up and attach your entire project directory? This will include your actual app, so you may want to reproduce with a newly created flutter created app.

https://wetransfer.com/downloads/f40ce2c9dc3913c2941a1ca3bb6149a420210818190534/9769a3deb4b9be1afcc64505c1d9132920210818190554/d1516c

I changed flutter branch to master and back to stable.

@jmagman
Copy link
Member

jmagman commented Aug 18, 2021

@ristiisa Can you just attach the zip to GitHub? What's your flutter doctor -v?

@ristiisa
Copy link

@ristiisa Can you just attach the zip to GitHub? What's your flutter doctor -v?

The folder is 160MB, github shows me an error(I did not crop it, that is the entire message):
Screenshot 2021-08-18 at 23 02 51

What I interpret as "file too large".

I can solve the issue with deleting flutter folder and downloading the latest stable pack, but the problem is back after switching to master.

Flutter 2.5.0-7.0.pre.139 was on the master branch I switched to.

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.3 20E232 darwin-arm, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (version 2020.3)
    ✗ Unable to find bundled Java version.
[✓] VS Code (version 1.59.0)
[✓] Connected device (2 available)

@jmagman
Copy link
Member

jmagman commented Aug 18, 2021

@ristiisa The wetransfer link doesn't open for me, can you share it another way?
That flutter doctor output is missing -v

@MateusHBR
Copy link

MateusHBR commented Aug 18, 2021

Invalid kernel binary format version. generally means there's a mismatch between the version of Flutter used to build the app, and the dart VM version. Or something else in the artifacts cache is corrupted.

using new download from flutter.dev its work only using xcode with terminal still the same error

@rymesaint You mean you deleted your Flutter cache, downloaded it again from the website, and still see the same error?

@MateusHBR @daniloapr can we get your flutter doctor -v?

A workaround that worked here is running on the xcode but you do not have the power of hot reload.

@MateusHBR you only see it from the terminal, not from Xcode?

For anyone reproducing this, can you zip up and attach your entire project directory? This will include your actual app, so you may want to reproduce with a newly created flutter created app.

@jmagman

i saw the problem on Vscode and terminal. In xcode it works fine.

A solution that i found is run the project once on xcode, stop xcode running, after that try run on terminal or vscode and the problem got solved.

Flutter version:

Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (7 weeks ago) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4

flutter foctor -v:

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-arm, locale pt-BR)
    • Flutter version 2.2.3 at /Users/mateusramalho/development/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mateusramalho/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)

@jmagman
Copy link
Member

jmagman commented Aug 18, 2021

@MateusHBR

For anyone reproducing this, can you zip up and attach your entire project directory? This will include your actual app, so you may want to reproduce with a newly created flutter created app.

@jmagman
Copy link
Member

jmagman commented Aug 19, 2021

I'm able to reproduce this by downgrading from any other channel to stable.

On stable 2.2.3 downloaded from the website bin/cache/artifacts/engine/ios/Flutter.xcframework contains:

ios-armv7_arm64
ios-x86_64-simulator

However, when you downgrade from any other channel to stable it instead contains:

ios-arm64_armv7
ios-arm64_x86_64-simulator
ios-armv7_arm64
ios-x86_64-simulator

It contains the newer ios-arm64_x86_64-simulator from #85642 in 2.4.0-4.0.pre, and it contains the newer Xcode 12 style ios-arm64_armv7 https://github.com/flutter/infra/pull/473.

Sure enough I can see the Flutter.framework Info.plist FlutterEngine being embedded in the app does not match the engine hash from stable 2.2.3. And when I rm -rf bin/cache/artifacts/engine/ios* and then flutter clean it doesn't reproduce.

Another version of old cache files not being cleaned up.

Steps to reproduce

$ cd path/to/flutter/sdk
$ rm -rf bin/cache/artifacts/engine/ios*
$ git checkout 2.5.0-1.0.pre
$ cd ~/Desktop
$ flutter create bug
$ cd bug
$ flutter run
...
An Observatory debugger and profiler on iPad is available at
$ cd path/to/flutter/sdk
$ ls bin/cache/artifacts/engine/ios/Flutter.xcframework
Info.plist                 ios-arm64_armv7            ios-arm64_x86_64-simulator
$ git checkout 2.2.3
$ flutter precache --no-web --no-linux --no-windows --no-macos --no-fuchsia
$ ls bin/cache/artifacts/engine/ios/Flutter.xcframework
Info.plist                 ios-arm64_x86_64-simulator ios-x86_64-simulator
ios-arm64_armv7            ios-armv7_arm64
$ cd ~/Desktop/bug
$ flutter clean
$ flutter run
...
[VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[VERBOSE-2:shell.cc(576)] Could not launch engine with configuration.

Workaround

$ rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*
$ flutter clean
$ flutter run

@jmagman jmagman added tool Affects the "flutter" command-line tool. See also t: labels. and removed engine flutter/engine repository. See also e: labels. dependency: dart Dart team may need to help us e: OS-version specific Affects only some versions of the relevant operating system labels Aug 19, 2021
@jmagman
Copy link
Member

jmagman commented Aug 19, 2021

Duplicate of #85062. The stale artifacts problem was fixed by #85075 available on 2.4.0-0.0.pre.

@jmagman jmagman changed the title [iOS 14.7.1] App gets stuck at blank screen - Could not launch engine with configuration App gets stuck at blank screen - Could not launch engine with configuration Aug 19, 2021
@jmagman
Copy link
Member

jmagman commented Aug 19, 2021

Workaround

$ rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*
$ flutter clean
$ flutter run

@MateusHBR @rymesaint @daniloapr Can you confirm this workaround works for you?

@rymesaint
Copy link
Author

Workaround

$ rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*
$ flutter clean
$ flutter run

@MateusHBR @rymesaint @daniloapr Can you confirm this workaround works for you?

ok this one solve the problem thanks

@ristiisa
Copy link

@ristiisa The wetransfer link doesn't open for me, can you share it another way?

https://drive.google.com/file/d/1_Eh305syqpAHbKJILHy33srA8y4Sa2Qm/view?usp=sharing

That flutter doctor output is missing -v

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.3 20E232 darwin-arm, locale en-GB)
    • Flutter version 2.2.3 at /Users/silver/flutter
    • Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/silver/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.59.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (1 available)
    • Chrome (web)             • chrome                    • web-javascript • Google Chrome 92.0.4515.131

@jmagman
Copy link
Member

jmagman commented Aug 19, 2021

Closing as duplicate of #85062. The workaround is to stay on the beta channel until the next stable, or to run the following after switching to 2.2.3:

$ rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*
$ flutter clean
$ flutter run

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer: crowd Affects or could affect many people, though not necessarily a specific customer. platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

7 participants
@ristiisa @jmagman @rymesaint @MateusHBR @daniloapr @TahaTesser and others