Skip to content

Intermittent VM Heap crash during hot-reload since Flutter 3.10/Dart 3.0 #126884

Description

@slightfoot

Is there an existing issue for this?

Steps to reproduce

I am afraid I cannot reproduce with consistence, just every so often a hot-reload will crash with the reported log. Clean builds do not make a difference.

Expected results

Not to crash on hot-reload

Actual results

Crashing and application termination during hot-reload.

Code sample

No code available. This is not a framework issue. Rather a Dart/Engine issue.

Screenshots or Video

No response

Logs

Logs

Performing hot reload...
Syncing files to device Pixel C...
E/Dart    (14464): ../../third_party/dart/runtime/vm/heap/become.cc: 293: error: become: Cannot self-forward
E/DartVM  (14464): version=3.0.0 (stable) (Thu May 4 01:11:00 2023 -0700) on "android_arm64"
E/DartVM  (14464): pid=14464, thread=14533, isolate_group=main(0x794dd62800), isolate=(nil)(0x0)
E/DartVM  (14464): os=android, arch=arm64, comp=yes, sim=no
E/DartVM  (14464): isolate_instructions=794cb34720, vm_instructions=794cb34720
E/DartVM  (14464): fp=794edf3e10, sp=794edf2ce8, pc=794cc4c3b8
E/DartVM  (14464):   pc 0x000000794cc4c3b8 fp 0x000000794edf3e10 /data/app/<redacted-package-name>-irTc6R1a1fFDAlwGIgDd3w==/base.apk!/lib/arm64-v8a/libflutter.so+0x1bca3b8
E/DartVM  (14464): -- End of DumpStackTrace
F/libc    (14464): Fatal signal 6 (SIGABRT), code -6 in tid 14533 (1.ui), pid 14464 (<redacted-package-name>)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/ryu/dragon:8.1.0/OPM8.190605.005/5749003:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 14464, tid: 14533, name: 1.ui  >>> <redacted-package-name> <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '../../third_party/dart/runtime/vm/heap/become.cc: 293: error: become: Cannot self-forward'
    x0   0000000000000000  x1   00000000000038c5  x2   0000000000000006  x3   0000000000000008
    x4   0080000000000080  x5   0080000000000080  x6   0080000000000080  x7   8000000000008000
    x8   0000000000000083  x9   0000000010000000  x10  000000794edf3df0  x11  0000000000000001
    x12  000000794edf37e8  x13  0000000000000000  x14  ffffffffffffffff  x15  0024f3b5df5e9d34
    x16  00000079f2a22fa8  x17  00000079eef314b8  x18  0000007940e04670  x19  0000000000003880
    x20  00000000000038c5  x21  0000000000000083  x22  000000780ac7aa41  x23  000000780ac7aa41
    x24  000000780ac7b1d0  x25  00000000000015fc  x26  000000794ceef910  x27  000000794d037000
    x28  0000000000000000  x29  000000794edf3e30  x30  00000079eeee66ec
    sp   000000794edf3df0  pc   00000079eeee6714  pstate 0000000060000000
backtrace:
    #00 pc 000000000001d714  /system/lib64/libc.so (abort+120)
    #01 pc 000000000048f974  /data/app/<redacted-package-name>-irTc6R1a1fFDAlwGIgDd3w==/base.apk (offset 0x2017000)

Flutter Doctor output

Doctor output
C:\>flutter doctor -v
[√] Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.19045.2965], locale en-GB)
    • Flutter version 3.10.0 on channel stable at C:\Android\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (6 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Android\SDK
    • Platform android-33, build-tools 33.0.0
    • ANDROID_SDK_ROOT = C:\Android\SDK
    • Java binary at: C:\Program Files\Java\jdk-17\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17.0.7+8-LTS-224)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.18)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32802.440
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] IntelliJ IDEA Ultimate Edition (version 2023.1)
    • IntelliJ at C:\Users\Simon\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\231.8770.65
    • Flutter plugin version 73.1.1
    • Dart plugin version 231.9065

[√] VS Code, 64-bit edition (version 1.27.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 2.18.0

[√] Connected device (5 available)
    • Pixel C (mobile)  • 6203000067     • android-arm64  • Android 8.1.0 (API 27)
    • Pixel 4 (mobile)  • 99171FFAZ000F8 • android-arm64  • Android 13 (API 33)
    • Windows (desktop) • windows        • windows-x64    • Microsoft Windows [Version 10.0.19045.2965]
    • Chrome (web)      • chrome         • web-javascript • Google Chrome 113.0.5672.93
    • Edge (web)        • edge           • web-javascript • Microsoft Edge 112.0.1722.68

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

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical issues such as a build break or regressionc: crashStack traces logged to the consolec: fatal crashCrashes that terminate the processc: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.dependency: dartDart team may need to help usengineflutter/engine related. See also e: labels.found in release: 3.10Found to occur in 3.10needs repro infoAutomated crash report whose cause isn't yet knownt: hot reloadReloading code during "flutter run"waiting for PR to land (fixed)A fix is in flightwaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    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