Hi,
I'm starting to debug my app, when running in Release after using the app for a while switching between the different activities it crashes always with the following exception:
All the bitmaps are loaded using LoadBitmapSample.
Things went a little bit better after I've put a call to Activity.RemoveAllViews on each activity Pause event.
This happens on three different devices (Asus eeePad Transformer, LG L5, Google Nexus 7).
The app is far from being stable. Any hint from which I can start to investigate?
This crash doesn't happen at all while running in Debug mode.
Thanks.
Raffaele
I'm starting to debug my app, when running in Release after using the app for a while switching between the different activities it crashes always with the following exception:
B4X:
java.lang.OutOfMemoryError
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:605)
at android.graphics.Bitmap.createBitmap(Bitmap.java:585)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:76)
at com.pantasoft.ApiDroid.textscaler._scaletext(textscaler.java:42)
at com.pantasoft.ApiDroid.arnie._activity_create(arnie.java:373)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
at com.pantasoft.ApiDroid.arnie.afterFirstLayout(arnie.java:98)
at com.pantasoft.ApiDroid.arnie.access$100(arnie.java:16)
at com.pantasoft.ApiDroid.arnie$WaitForLayout.run(arnie.java:76)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Things went a little bit better after I've put a call to Activity.RemoveAllViews on each activity Pause event.
This happens on three different devices (Asus eeePad Transformer, LG L5, Google Nexus 7).
The app is far from being stable. Any hint from which I can start to investigate?
This crash doesn't happen at all while running in Debug mode.
Thanks.
Raffaele