Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.outofmemoryerror exception?

I have trouble with my android project, I did not touch anything and suddenly my app stopped working because of this error. Do you have some idea about what is happening? The error is this:

10-30 22:53:38.246: E/AndroidRuntime(19137): FATAL EXCEPTION: Thread-1210
10-30 22:53:38.246: E/AndroidRuntime(19137): java.lang.OutOfMemoryError
10-30 22:53:38.246: E/AndroidRuntime(19137):    at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:316)
10-30 22:53:38.246: E/AndroidRuntime(19137):    at com.android.volley.toolbox.DiskBasedCache.readString(DiskBasedCache.java:526)
10-30 22:53:38.246: E/AndroidRuntime(19137):    at com.android.volley.toolbox.DiskBasedCache.readStringStringMap(DiskBasedCache.java:549)
10-30 22:53:38.246: E/AndroidRuntime(19137):    at com.android.volley.toolbox.DiskBasedCache$CacheHeader.readHeader(DiskBasedCache.java:392)
10-30 22:53:38.246: E/AndroidRuntime(19137):    at com.android.volley.toolbox.DiskBasedCache.initialize(DiskBasedCache.java:155)
10-30 22:53:38.246: E/AndroidRuntime(19137):    at    com.android.volley.CacheDispatcher.run(CacheDispatcher.java:85)

please help me!!

like image 297
Jony Scherman Avatar asked Oct 31 '13 02:10

Jony Scherman


2 Answers

Looks like a fix for this went in June 24th .

like image 132
DallinDyer Avatar answered Sep 30 '22 15:09

DallinDyer


-If the problem is due to Bitmaps then use

Lazy Imageloader for Bitmaps in listviews

-Make sure you dnt have too much work in its background task.

-And if possible please post your code from where you are getting this issue so we can also learn from it . THanks! :)

like image 35
Hardy Avatar answered Sep 30 '22 14:09

Hardy