Skip to content

Error while initializing the Dart VM #17387

@tenhobi

Description

@tenhobi

When I am running and installing debug version of my app, everything works fine. But when I want to install the release version of my app, it instantly crashes (don't even open) the app on my device.

My whole application is there https://github.com/tenhobi/flashcards/tree/master/flutter

Steps to Reproduce

  1. flutter build apk
  2. flutter install
  3. opening the app in the device

Logs

[√] Flutter (Channel master, v0.4.1-pre.27, on Microsoft Windows [Version 10.0.16299.371], locale cs-CZ)
    • Flutter version 0.4.1-pre.27 at D:\git\flutter
    • Framework revision 19ad6528e8 (5 days ago), 2018-05-03 07:43:04 +0100
    • Engine revision 20b286dd42
    • Dart version 2.0.0-dev.53.0.flutter-e6d7d67f4b

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\the\AppData\Local\Android\sdk
    • Android NDK at C:\Users\the\AppData\Local\Android\sdk\ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
    X Android license status unknown.

[√] Android Studio (version 3.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 24.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at C:\Users\the\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\181.4668.68
    • Flutter plugin version 24.1.2
    • Dart plugin version 181.4668.60

[√] VS Code, 64-bit edition (version 1.22.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Dart Code extension version 2.12.1

[√] Connected devices (1 available)
    • Redmi 5 Plus • 2b0850fe9805 • android-arm64 • Android 7.1.2 (API 25)

Google play console

Only informations about the issue I have is from Google play console, where no device passes:

image

For example some logs:

Mate 9 Android 7.0

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'HUAWEI/MHA-L29/HWMHA:7.0/HUAWEIMHA-L29/C567B138:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 12945, tid: 12945, name: tner.flashcards  >>> cz.honzabittner.flashcards <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/runtime/dart_vm.cc(413)] Error while initializing the Dart VM: Snapshot not compatible with the current VM configuration: the snapshot requires 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi hardfp' but the VM has 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi softfp'
'
    r0 00000000  r1 00003291  r2 00000006  r3 00000008
    r4 ec10358c  r5 00000006  r6 ec103534  r7 0000010c
    r8 e1f0a300  r9 ffc99584  sl e93c3490  fp e93c3480
    ip 00000002  sp ffc99408  lr e953ea37  pc e95412a0  cpsr 600f0010
backtrace:
    #00 pc 0004a2a0  /system/lib/libc.so (tgkill+12)
    #01 pc 00047a33  /system/lib/libc.so (pthread_kill+34)
    #02 pc 0001d925  /system/lib/libc.so (raise+10)
    #03 pc 00019471  /system/lib/libc.so (__libc_android_abort+34)
    #04 pc 000170b4  /system/lib/libc.so (abort+4)
    #05 pc 0014efab  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #06 pc 001fd9cd  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #07 pc 000754c1  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #08 pc 000757f5  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #09 pc 000757a3  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #10 pc 00505efb  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #11 pc 00074ff3  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #12 pc 00074f33  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #13 pc 0007d0e5  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #14 pc 0007c863  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #15 pc 000802f3  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #16 pc 0007cf79  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #17 pc 0004dbab  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #18 pc 00053859  /data/app/cz.honzabittner.flashcards-1/lib/arm/libflutter.so
    #19 pc 007868d9  /data/app/cz.honzabittner.flashcards-1/oat/arm/base.odex (offset 0x722000)

Pixel Android 8.0

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sailfish/sailfish:8.0.0/OPR3.170623.008/4294783:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 8105, tid: 8105, name: tner.flashcards  >>> cz.honzabittner.flashcards <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/runtime/dart_vm.cc(413)] Error while initializing the Dart VM: Snapshot not compatible with the current VM configuration: the snapshot requires 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi hardfp' but the VM has 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi softfp'
'
    r0 00000000  r1 00001fa9  r2 00000006  r3 00000008
    r4 00001fa9  r5 00001fa9  r6 ff7ec2c0  r7 0000010c
    r8 e4afd480  r9 ff7ec404  sl f663e150  fp f663e140
    ip 00000000  sp ff7ec2b0  lr f3ce5537  pc f3d15c0c  cpsr 200f0010

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions