com.google.appinventor.components.runtime.util.MediaUtil$3.getDrawable

Hi,

We are getting this crash report in Dev. Console. Any opinions ?

Stack Trace

Blockquote
Exception java.lang.OutOfMemoryError:
at dalvik.system.VMRuntime.newNonMovableArray
at android.graphics.BitmapFactory.nativeDecodeAsset
at android.graphics.BitmapFactory.decodeStream (BitmapFactory.java:620)
at android.graphics.BitmapFactory.decodeResourceStream (BitmapFactory.java:455)
at android.graphics.drawable.Drawable.createFromResourceStream (Drawable.java:1155)
at android.graphics.drawable.Drawable.createFromResourceStream (Drawable.java:1122)
at android.graphics.drawable.Drawable.createFromStream (Drawable.java:1108)
at com.google.appinventor.components.runtime.util.MediaUtil$3.getDrawable (SourceFile:453)
at com.google.appinventor.components.runtime.util.MediaUtil$3.run (SourceFile:434)
at java.lang.Thread.run (Thread.java:761)

what exactly are you doing before the crash occurs?
working with large images? see also tip 2 here

Taifun

All images are compressed. I guess we need to compress even further, but then the resolution/quality will drop significant. Also it’s likely this log to be caused by a user using older/low specs device