Error app crashes


#1

Hi,

Someone knows what is this issue?

java.lang.OutOfMemoryError: Failed to allocate a 3510444 byte allocation with 2170176 free bytes and 2MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:890)
at android.graphics.Bitmap.createBitmap(Bitmap.java:867)
at android.graphics.Bitmap.createBitmap(Bitmap.java:798)
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:674)
at com.google.appinventor.components.runtime.util.MediaUtil$2.run(MediaUtil.java:476)
at java.lang.Thread.run(Thread.java:760)

My app crashes when I am navigating in the app and opening screens

Thanks!


#2

Hello @Crisboy1990

Does your app have many screen or the do you use many images in your app which are huge in size.

Have a look at this :point_down: post by @Taifun.

ok done


#3

see tip 1 and 2 here


Taifun


#4

Oh sorry we posted at the same time @Taifun :sweat_smile:. I am taking my reply back as it contains the same thing


#5

no need to remove your answer…
Taifun


#6

Thank you to both! It’s to late to change all what I did but I will follow this steps to other project. I imagined something like this. Thanks for the response!