java.lang.OutOfMemoryError: Failed to allocate a 4631116 byte allocation with 4380676 free bytes and 4MB until OOM

Stack Overflow | Karry | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Getting an OOM when rendering Bitmap for videoPlayer in Codename one app

    Stack Overflow | 9 months ago | Karry
    java.lang.OutOfMemoryError: Failed to allocate a 4631116 byte allocation with 4380676 free bytes and 4MB until OOM
  2. 0
    samebug tip
    Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp
  3. 0

    google maps api v2 out of memory error

    Stack Overflow | 2 years ago | Salivan
    java.lang.OutOfMemoryError: Failed to allocate a 4194316 byte allocation with 1627608 free bytes and 1589KB until OOM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 520#126209121

    GitHub | 2 years ago | Dokuzov
    java.lang.OutOfMemoryError: Failed to allocate a 4227276 byte allocation with 2371664 free bytes and 2MB until OOM
  6. 0

    OOM

    GitHub | 1 year ago | huangshengsen
    java.lang.OutOfMemoryError: Failed to allocate a 1960012 byte allocation with 196800 free bytes and 192KB until OOM

  1. Ajeet 15 times, last 7 months ago
  2. aakash 1 times, last 8 months ago
  3. Agócs Tamás 28 times, last 9 months ago
  4. Ranjana Dangol 7 times, last 9 months ago
  5. bayukresno 7 times, last 10 months ago
1 more registered users
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Failed to allocate a 4631116 byte allocation with 4380676 free bytes and 4MB until OOM

    at dalvik.system.VMRuntime.newNonMovableArray()
  2. Android Platform
    Bitmap.createBitmap
    1. dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    2. android.graphics.Bitmap.nativeCreate(Native Method)
    3. android.graphics.Bitmap.createBitmap(Bitmap.java:939)
    4. android.graphics.Bitmap.createBitmap(Bitmap.java:912)
    5. android.graphics.Bitmap.createBitmap(Bitmap.java:879)
    5 frames
  3. com.codename1.impl
    f$b.m_
    1. com.codename1.impl.android.AndroidNativeUtil.renderViewOnBitmap(AndroidNativeUtil.java:163)
    2. com.codename1.impl.android.f$b.m_(AndroidImplementation.java:2652)
    2 frames
  4. com.codename1.p
    h.a
    1. com.codename1.p.y.B(PeerComponent.java:64)
    2. com.codename1.p.y.a(PeerComponent.java:211)
    3. com.codename1.p.h.b(Component.java:1323)
    4. com.codename1.p.h.d(Component.java:1297)
    5. com.codename1.p.h.a(Component.java:1272)
    6. com.codename1.p.i.a(Container.java:1323)
    7. com.codename1.p.h.b(Component.java:1323)
    8. com.codename1.p.h.d(Component.java:1297)
    9. com.codename1.p.h.a(Component.java:1272)
    9 frames