java.lang.OutOfMemoryError

Failed to allocate a 32780 byte allocation with 16777120 free bytes and 98MB until OOM; failed due to fragmentation (required continguous free 36864 bytes where largest contiguous free 32768 bytes)

Solutions on the web2795

  • Failed to allocate a 32780 byte allocation with 16777120 free bytes and 98MB until OOM; failed due to fragmentation (required continguous free 36864 bytes where largest contiguous free 32768 bytes)
  • Failed to allocate a 270 byte allocation with 8388608 free bytes and 52MB until OOM; failed due to fragmentation (required continguous free 32768 bytes for a new buffer where largest contiguous free 28672 bytes)
  • Failed to allocate a 458 byte allocation with 1613776 free bytes and 1575KB until OOM; failed due to fragmentation (required continguous free 32768 bytes for a new buffer where largest contiguous free 4096 bytes)
  • Stack trace

    • java.lang.OutOfMemoryError: Failed to allocate a 32780 byte allocation with 16777120 free bytes and 98MB until OOM; failed due to fragmentation (required continguous free 36864 bytes where largest contiguous free 32768 bytes) at java.util.HashMap.makeTable(HashMap.java:550) at java.util.HashMap.<init>(HashMap.java) at java.util.HashMap.<init>(HashMap.java) at android.app.SharedPreferencesImpl$EditorImpl.commitToMemory(SharedPreferencesImpl.java:399) at android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:359) at com.facebook.cache.disk.DiskStorageCacheUtil.deleteDiskCacheEntry(SourceFile:42) at com.facebook.cache.disk.DiskStorageCache.removeKeyFromIndex(SourceFile:835) at com.facebook.cache.disk.DiskStorageCache.removeValueFromIndex(SourceFile:842) at com.facebook.cache.disk.DiskStorageCache.evictAboveSize(SourceFile:537) at com.facebook.cache.disk.DiskStorageCache.maybeEvictFilesInCacheDir(SourceFile:505) at com.facebook.cache.disk.DiskStorageCache.startInsert(SourceFile:343) at com.facebook.cache.disk.DiskStorageCache.insert(SourceFile:383) at com.facebook.imagepipeline.cache.BufferedDiskCache.writeToDiskCache(SourceFile:364) at com.facebook.imagepipeline.cache.BufferedDiskCache.access$100(SourceFile:38) at com.facebook.imagepipeline.cache.BufferedDiskCache$3.run(SourceFile:243) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago