Skip to content

After updating to flutter 3.44.1 - release - versions of the app crash with VM snapshot failed #187388

Description

@dickverweij

Steps to reproduce

As I cannot reproduce it with a vanilla build. I only ran flutter upgrade.
After cleaning with

flutter clean

and running with

flutter run --release

I got an immediate crash:

E/flutter ( 6516): [ERROR:flutter/runtime/dart_vm_data.cc(20)] VM snapshot invalid and could not be inferred from settings.
E/flutter ( 6516): [ERROR:flutter/runtime/dart_vm.cc(253)] Could not set up VM data to bootstrap the VM from.
E/flutter ( 6516): [ERROR:flutter/runtime/dart_vm_lifecycle.cc(85)] Could not create Dart VM instance.

When i downgraded to the previous version
It ran fine.

Is there an option to get more logging when starting an app in release mode?

Expected results

normal app startup.

Actual results

crashes immediately

Code sample

As i did not change any code only upgraded flutter i have no clue what is causing this.

Screenshots or Video

No response

Logs

Logs
Running Gradle task 'assembleRelease'...                          298.5s
√ Built build\app\outputs\flutter-apk\app-release.apk (25.9MB)
Installing build\app\outputs\flutter-apk\app-release.apk...      2,014ms

Flutter run key commands.
h List all available interactive commands.
c Clear the screen
q Quit (terminate the application on the device).

E/flutter ( 7564): [ERROR:flutter/runtime/dart_vm_data.cc(20)] VM snapshot invalid and could not be inferred from settings.
E/flutter ( 7564): [ERROR:flutter/runtime/dart_vm.cc(253)] Could not set up VM data to bootstrap the VM from.
E/flutter ( 7564): [ERROR:flutter/runtime/dart_vm_lifecycle.cc(85)] Could not create Dart VM instance.

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.44.1, on Microsoft Windows [Version 10.0.26200.8390], locale en-US) [440ms]
    • Flutter version 3.44.1 on channel stable at D:\appdev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 924134a44c (3 days ago), 2026-05-29 12:13:22 -0400
    • Engine revision c416acfeb8
    • Dart version 3.12.1
    • DevTools version 2.57.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
      enable-native-assets, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[√] Windows Version (Windows 11 or higher, 25H2, 2009) [1,558ms]

[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,821ms]
    • Android SDK at D:\appdev\android\sdk
    • Emulator version 36.4.10.0 (build_id 15004761) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = D:\appdev\android\sdk
    • ANDROID_SDK_ROOT = D:\appdev\android\sdk
    • Java binary at: D:\appdev\Java\jdk-17\bin\java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
    • All Android licenses accepted.

[√] Chrome - develop for the web [125ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2026 18.1.1) [123ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\18\Professional
    • Visual Studio Professional 2026 version 18.1.11312.151
    • Windows 10 SDK version 10.0.26100.0

[√] Connected device (4 available) [416ms]
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 16 (API 36) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.26200.8390]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 148.0.7778.179
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 148.0.3967.83

[√] Network resources [368ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.fyi-toolFor the attention of Flutter Tool teamneeds repro infoAutomated crash report whose cause isn't yet knownplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions