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 crashes by [Exhausted heap space] [Out of memory] #67

Open
nekooooo0203 opened this issue Sep 17, 2021 · 0 comments
Open

app crashes by [Exhausted heap space] [Out of memory] #67

nekooooo0203 opened this issue Sep 17, 2021 · 0 comments

Comments

@nekooooo0203
Copy link

nekooooo0203 commented Sep 17, 2021

This error causes when using examples shown on package.
this is on Android Emulator for now.
not checked on Android Device / iOS Emulator / iOS Device

D/SharedPreferencesImpl( 1733): Time required to fsync /data/user/0/com.example.examples/shared_prefs/flutter_image_picker_shared_preference.xml: [<1: 0, <2: 0, <4: 0, <8: 0, <16: 0, <32: 0, <64: 0, <128: 0, <256: 0, <512: 0, <1024: 1, <2048: 0, <4096: 0, <8192: 0, <16384: 0, >=16384: 0]
E/DartVM  ( 1733): Exhausted heap space, trying to allocate 32 bytes.
E/DartVM  ( 1733): Exhausted heap space, trying to allocate 663568 bytes.
E/flutter ( 1733): [ERROR:flutter/shell/common/shell.cc(93)] Dart Error: Out of memory
E/flutter ( 1733): [ERROR:flutter/runtime/dart_isolate.cc(983)] CreateDartIsolateGroup failed: 0xaeba3fdc
E/DartVM  ( 1733): Exhausted heap space, trying to allocate 112 bytes.
E/Dart    ( 1733): ../../third_party/dart/runtime/vm/object.cc: 2691: error: Out of memory.
E/DartVM  ( 1733): version=2.14.0 (stable) (Mon Sep 6 13:47:59 2021 +0200) on "android_ia32"
E/DartVM  ( 1733): pid=1733, thread=1863, isolate_group=_spawn(0xf3c108a0), isolate=_spawn(0xf3b2b810)
E/DartVM  ( 1733): isolate_instructions=c44db820, vm_instructions=c44db820
E/DartVM  ( 1733):   pc 0xc4617bbb fp 0xaeba2ff8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x19d5bbb
E/DartVM  ( 1733):   pc 0xc488dbc1 fp 0xaeba3018 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x1c4bbc1
E/DartVM  ( 1733):   pc 0xc44db9c6 fp 0xaeba3048 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x18999c6
E/DartVM  ( 1733):   pc 0xc459d7fb fp 0xaeba30a8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x195b7fb
E/DartVM  ( 1733):   pc 0xc458ceda fp 0xaeba30f8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x194aeda
E/DartVM  ( 1733):   pc 0xc4591be8 fp 0xaeba3998 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x194fbe8
E/DartVM  ( 1733):   pc 0xc45236d5 fp 0xaeba3a58 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x18e16d5
E/DartVM  ( 1733):   pc 0xc4523ccd fp 0xaeba3b28 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x18e1ccd
E/DartVM  ( 1733):   pc 0xc4874c5e fp 0xaeba3ba8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x1c32c5e
E/DartVM  ( 1733):   pc 0xc4874fc7 fp 0xaeba3c48 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x1c32fc7
E/DartVM  ( 1733):   pc 0xc402e786 fp 0xaeba3cb8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x13ec786
E/DartVM  ( 1733):   pc 0xc402f7a7 fp 0xaeba3cf8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x13ed7a7
E/DartVM  ( 1733):   pc 0xc402dbc7 fp 0xaeba3d28 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x13ebbc7
E/DartVM  ( 1733):   pc 0xc402baf3 fp 0xaeba3d98 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x13e9af3
E/DartVM  ( 1733):   pc 0xc402d721 fp 0xaeba3fa8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x13eb721
E/DartVM  ( 1733):   pc 0xc44f09ec fp 0xaeba4028 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x18ae9ec
E/DartVM  ( 1733):   pc 0xc44f0968 fp 0xaeba4048 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x18ae968
E/DartVM  ( 1733):   pc 0xc468e08c fp 0xaeba40e8 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x1a4c08c
E/DartVM  ( 1733):   pc 0xc468e33a fp 0xaeba4118 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x1a4c33a
E/DartVM  ( 1733):   pc 0xc4613102 fp 0xaeba4178 /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so+0x19d1102
E/DartVM  ( 1733):   pc 0xf09a6f55 fp 0xaeba4198 /apex/com.android.runtime/lib/bionic/libc.so+0xe6f55
E/DartVM  ( 1733):   pc 0xf0938868 fp 0xaeba41c8 /apex/com.android.runtime/lib/bionic/libc.so+0x78868
E/DartVM  ( 1733): -- End of DumpStackTrace
F/libc    ( 1733): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 1863 (DartWorker), pid 1733 (xample.examples)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86_arm:10/RPP4.200409.015/6455311:user/release-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2021-09-17 07:34:38+0000
pid: 1733, tid: 1863, name: DartWorker  >>> com.example.examples <<<
uid: 10149
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: '../../third_party/dart/runtime/vm/object.cc: 2691: error: Out of memory.'
    eax 00000000  ebx 000006c5  ecx 00000747  edx 00000006
    edi f098ceae  esi aeba2f88
    ebp f41b9b30  esp aeba2f08  eip f41b9b39
backtrace:
      #00 pc 00000b39  [vdso] (__kernel_vsyscall+9)
      #01 pc 0005b058  /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: f93c954efc24b8a2e43bc3d969ca228c)
      #02 pc 00076833  /apex/com.android.runtime/lib/bionic/libc.so (abort+195) (BuildId: f93c954efc24b8a2e43bc3d969ca228c)
      #03 pc 018999d2  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #04 pc 0195b7fa  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #05 pc 0194aed9  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #06 pc 0194fbe7  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #07 pc 018e16d4  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #08 pc 018e1ccc  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #09 pc 01c32c5d  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #10 pc 01c32fc6  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #11 pc 013ec785  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #12 pc 013ed7a6  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #13 pc 013ebbc6  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #14 pc 013e9af2  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #15 pc 013eb720  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #16 pc 018ae9eb  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #17 pc 018ae967  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #18 pc 01a4c08b  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #19 pc 01a4c339  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #20 pc 019d1101  /data/app/~~1BQysAIAStSmQ7s-vbSM1Q==/com.example.examples-tsXmUnS2bzwGdKswNBHrfw==/lib/x86/libflutter.so (BuildId: 66ec0293d80823bf6820a692601e59ed30c0d039)
      #21 pc 000e6f54  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: f93c954efc24b8a2e43bc3d969ca228c)
      #22 pc 00078867  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: f93c954efc24b8a2e43bc3d969ca228c)
Lost connection to device.

flutter doctor -v

[√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19043.1165], locale ja-JP)
    • Flutter version 2.5.0 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (9 days ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\kkane\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

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

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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-7249189)

[√] VS Code (version 1.60.1)
    • VS Code at C:\Users\kkane\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.26.0

[√] Connected device (4 available)
    • 701SO (mobile)          • BH902QFS9A    • android-arm64  • Android 9 (API 28)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 10 (API 29) (emulator)
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 93.0.4577.82
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 93.0.961.47

• No issues found!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant