java.lang.OutOfMemoryError: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

,

The memory is leaking. Try to analyze the HEAP or use LeakCanacy (https://github.com/square/leakcanary) to figure out where is the exact problem.

java.lang.OutOfMemoryError:
at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:522)
at com.spp.azeezolusegunodumosu.rccgspp.gallery$RemoteDataTask$1.done(gallery.java:108)
at com.spp.azeezolusegunodumosu.rccgspp.gallery$RemoteDataTask$1.done(gallery.java:101)
at com.parse.ParseTaskUtils$2$1.run(ParseTaskUtils.java:116)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:176)

Users with the same issue

7 times, 1 year ago
19 times, 1 year ago
12 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.