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)

GitHub | arge128 | 3 months ago
  1. 0

    DiskStorageCache.evictAboveSize produces OOM

    GitHub | 3 months ago | arge128
    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)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    luntbuild + maven + findbugs = OutOfMemoryException

    Stack Overflow | 7 years ago | Johannes
    java.lang.OutOfMemoryError: Java heap space

    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 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()
    2. Java RT
      HashMap.<init>
      1. java.util.HashMap.makeTable(HashMap.java:550)
      2. java.util.HashMap.<init>(HashMap.java)
      3. java.util.HashMap.<init>(HashMap.java)
      3 frames
    3. Android Platform
      SharedPreferencesImpl$EditorImpl.apply
      1. android.app.SharedPreferencesImpl$EditorImpl.commitToMemory(SharedPreferencesImpl.java:399)
      2. android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:359)
      2 frames
    4. com.facebook.cache
      DiskStorageCache.insert
      1. com.facebook.cache.disk.DiskStorageCacheUtil.deleteDiskCacheEntry(SourceFile:42)
      2. com.facebook.cache.disk.DiskStorageCache.removeKeyFromIndex(SourceFile:835)
      3. com.facebook.cache.disk.DiskStorageCache.removeValueFromIndex(SourceFile:842)
      4. com.facebook.cache.disk.DiskStorageCache.evictAboveSize(SourceFile:537)
      5. com.facebook.cache.disk.DiskStorageCache.maybeEvictFilesInCacheDir(SourceFile:505)
      6. com.facebook.cache.disk.DiskStorageCache.startInsert(SourceFile:343)
      7. com.facebook.cache.disk.DiskStorageCache.insert(SourceFile:383)
      7 frames
    5. com.facebook.imagepipeline
      BufferedDiskCache$3.run
      1. com.facebook.imagepipeline.cache.BufferedDiskCache.writeToDiskCache(SourceFile:364)
      2. com.facebook.imagepipeline.cache.BufferedDiskCache.access$100(SourceFile:38)
      3. com.facebook.imagepipeline.cache.BufferedDiskCache$3.run(SourceFile:243)
      3 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames