Page MenuHomeGitPull.it

Fix crash caused by OutOfMemory error after Disk Cache filled by Volley on version 2.3.1
Closed, DuplicatePublic

Description

Dear Developers of the amazing Free/Libre and Open Source app Libre BusTO ,
Please triage my crash:

Version code:
62

Version name:
2.3.1

Android version:
14

Phone:
SM-S918B

Brand:
samsung

Stack:
java.lang.OutOfMemoryError: Failed to allocate a 1500264 byte allocation with 346944 free bytes and 338KB until OOM, target footprint 268435456, growth limit 268435456
	at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:391)
	at com.android.volley.toolbox.DiskBasedCache.get(DiskBasedCache.java:162)
	at com.android.volley.CacheDispatcher.processRequest(CacheDispatcher.java:131)
	at com.android.volley.CacheDispatcher.processRequest(CacheDispatcher.java:115)
	at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:93)


logcat (last 20 lines):
04-10 22:05:11.967 I/BusTO:MatoRepository(25109): Requesting info for trip id: gtt:26553713U
04-10 22:05:11.967 I/BusTO:MatoRepository(25109): Requesting info for trip id: gtt:26553699U
04-10 22:05:11.967 I/BusTO:MatoRepository(25109): Requesting info for trip id: gtt:26553670U
04-10 22:05:11.968 D/TrafficStats(25109): tagSocket(153) with statsTag=0x164dc738, statsUid=-1
04-10 22:05:12.143 W/WindowOnBackDispatcher(25109): OnBackInvokedCallback is not enabled for the application.
04-10 22:05:12.143 W/WindowOnBackDispatcher(25109): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
04-10 22:05:12.148 I/eyboz.bustorino(25109): Clamp target GC heap from 270MB to 256MB
04-10 22:05:12.152 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.152 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.179 I/eyboz.bustorino(25109): Clamp target GC heap from 278MB to 256MB
04-10 22:05:12.179 I/eyboz.bustorino(25109): Alloc concurrent mark compact GC freed 8555(700KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 254MB/256MB, paused 315us,565us total 26.467ms
04-10 22:05:12.183 I/eyboz.bustorino(25109): Forcing collection of SoftReferences for 1465KB allocation
04-10 22:05:12.183 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.208 I/eyboz.bustorino(25109): Clamp target GC heap from 278MB to 256MB
04-10 22:05:12.208 I/eyboz.bustorino(25109): Alloc concurrent mark compact GC freed 2434(136KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 254MB/256MB, paused 261us,588us total 25.309ms
04-10 22:05:12.213 W/eyboz.bustorino(25109): Throwing OutOfMemoryError "Failed to allocate a 1500261 byte allocation with 1591248 free bytes and 1553KB until OOM, target footprint 268435456, growth limit 268435456" (VmSize 10584500 kB)
04-10 22:05:12.215 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc
04-10 22:05:12.223 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc
04-10 22:05:12.244 I/eyboz.bustorino(25109): Clamp target GC heap from 279MB to 256MB
04-10 22:05:12.244 I/eyboz.bustorino(25109): WaitForGcToComplete blocked Alloc on Background for 29.439ms
04-10 22:05:12.244 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.244 I/eyboz.bustorino(25109): Forcing collection of SoftReferences for 1465KB allocation
04-10 22:05:12.244 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.245 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc
04-10 22:05:12.275 I/eyboz.bustorino(25109): Clamp target GC heap from 279MB to 256MB
04-10 22:05:12.275 I/eyboz.bustorino(25109): Alloc concurrent mark compact GC freed 126(72KB) AllocSpace objects, 4(80KB) LOS objects, 0% free, 255MB/256MB, paused 312us,542us total 30.548ms
04-10 22:05:12.275 W/eyboz.bustorino(25109): Throwing OutOfMemoryError "Failed to allocate a 1500261 byte allocation with 346944 free bytes and 338KB until OOM, target footprint 268435456, growth limit 268435456" (VmSize 10584500 kB)
04-10 22:05:12.275 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.275 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.275 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc
04-10 22:05:12.299 I/eyboz.bustorino(25109): Clamp target GC heap from 279MB to 256MB
04-10 22:05:12.299 I/eyboz.bustorino(25109): Alloc concurrent mark compact GC freed 15(64KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 255MB/256MB, paused 330us,462us total 24.062ms
04-10 22:05:12.299 I/eyboz.bustorino(25109): Forcing collection of SoftReferences for 1465KB allocation
04-10 22:05:12.299 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
04-10 22:05:12.300 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc
04-10 22:05:12.323 I/eyboz.bustorino(25109): Clamp target GC heap from 279MB to 256MB
04-10 22:05:12.323 I/eyboz.bustorino(25109): Alloc concurrent mark compact GC freed 3(32KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 255MB/256MB, paused 225us,466us total 23.980ms
04-10 22:05:12.324 W/eyboz.bustorino(25109): Throwing OutOfMemoryError "Failed to allocate a 1500264 byte allocation with 346944 free bytes and 338KB until OOM, target footprint 268435456, growth limit 268435456" (VmSize 10584500 kB)
04-10 22:05:12.324 I/eyboz.bustorino(25109): WaitForGcToComplete blocked Alloc on Alloc for 100.751ms
04-10 22:05:12.324 I/eyboz.bustorino(25109): Starting a blocking GC Alloc
--------- beginning of crash
04-10 22:05:12.324 E/AndroidRuntime(25109): FATAL EXCEPTION: Thread-300
04-10 22:05:12.324 E/AndroidRuntime(25109): Process: it.reyboz.bustorino, PID: 25109
04-10 22:05:12.324 E/AndroidRuntime(25109): java.lang.OutOfMemoryError: Failed to allocate a 1500264 byte allocation with 346944 free bytes and 338KB until OOM, target footprint 268435456, growth limit 268435456
04-10 22:05:12.324 E/AndroidRuntime(25109):     at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:391)
04-10 22:05:12.324 E/AndroidRuntime(25109):     at com.android.volley.toolbox.DiskBasedCache.get(DiskBasedCache.java:162)
04-10 22:05:12.324 E/AndroidRuntime(25109):     at com.android.volley.CacheDispatcher.processRequest(CacheDispatcher.java:131)
04-10 22:05:12.324 E/AndroidRuntime(25109):     at com.android.volley.CacheDispatcher.processRequest(CacheDispatcher.java:115)
04-10 22:05:12.324 E/AndroidRuntime(25109):     at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:93)
04-10 22:05:12.324 E/ACRA    (25109): ACRA caught a OutOfMemoryError for it.reyboz.bustorino
04-10 22:05:12.324 E/ACRA    (25109): java.lang.OutOfMemoryError: Failed to allocate a 1500264 byte allocation with 346944 free bytes and 338KB until OOM, target footprint 268435456, growth limit 268435456
04-10 22:05:12.324 E/ACRA    (25109):   at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:391)
04-10 22:05:12.324 E/ACRA    (25109):   at com.android.volley.toolbox.DiskBasedCache.get(DiskBasedCache.java:162)
04-10 22:05:12.324 E/ACRA    (25109):   at com.android.volley.CacheDispatcher.processRequest(CacheDispatcher.java:131)
04-10 22:05:12.324 E/ACRA    (25109):   at com.android.volley.CacheDispatcher.processRequest(CacheDispatcher.java:115)
04-10 22:05:12.324 E/ACRA    (25109):   at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:93)
04-10 22:05:12.328 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc
04-10 22:05:12.328 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc
04-10 22:05:12.329 I/eyboz.bustorino(25109): Waiting for a blocking GC Alloc

Thank you! :)

Originally reported by Stefano Vittorio Porta

Generated with https://lab.reyboz.it/libre-busto/crash-report/ (P15)