This question has been flagged

Sync Service is getting crashed with OOM exception
     
even though in manifest file the application is android:largeHeap="true"

Avatar
Discard

Please post logcat log also.

Author

Throwing OutOfMemoryError "Failed to allocate a 1702129275 byte allocation with 2911762 free bytes and 247MB until OOM"11-18 15:56:57.801 18437-18453/com.test:sync_accsha E/AndroidRuntime: FATAL EXCEPTION: Thread-200090                                                                      Process: com.test:sync_accsha, PID: 18437                                                                      java.lang.OutOfMemoryError: Failed to allocate a 1702129275 byte allocation with 2911762 free bytes and 247MB until OOM                                                                          at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:322)                                                                          at com.android.volley.toolbox.DiskBasedCache.readString(DiskBasedCache.java:540)                                                                          at com.android.volley.toolbox.DiskBasedCache.readStringStringMap(DiskBasedCache.java:563)                                                                          at com.android.volley.toolbox.DiskBasedCache$CacheHeader.readHeader(DiskBasedCache.java:403)                                                                          at com.android.volley.toolbox.DiskBasedCache.get(DiskBasedCache.java:117)                                                                          at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:100)