I'm using Canvas to determine the height and width of text in a class
This happens in released mode
In a customer's devices.
Thanks for your help
This happens in released mode
In a customer's devices.
Thanks for your help
~e:clscountdown_calculatetextwidth (java line: 103)
~e:java.lang.OutOfMemoryError: Failed to allocate a 7449612 byte allocation with 2922316 free bytes and 2MB until OOM
~e: at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
~e: at android.graphics.Bitmap.nativeCreate(Native Method)
~e: at android.graphics.Bitmap.createBitmap(Bitmap.java:812)
~e: at android.graphics.Bitmap.createBitmap(Bitmap.java:789)
~e: at android.graphics.Bitmap.createBitmap(Bitmap.java:756)
~e: at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:76)
~e: at BAR.Tablet.clscountdown._calculatetextwidth(clscountdown.java:103)
~e: at BAR.Tablet.clscountdown._show(clscountdown.java:309)
~e: at BAR.Tablet.clsscontrino$ResumableSub_AvviaStampaScontrino.resume(clsscontrino.java:398)
~e: at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
~e: at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1144)
~e: at android.os.Handler.handleCallback(Handler.java:739)
~e: at android.os.Handler.dispatchMessage(Handler.java:95)
~e: at android.os.Looper.loop(Looper.java:135)
~e: at android.app.ActivityThread.main(ActivityThread.java:5258)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:372)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:940)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:735)
java.lang.OutOfMemoryError: Failed to allocate a 7449612 byte allocation with 2922316 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:812)
at android.graphics.Bitmap.createBitmap(Bitmap.java:789)
at android.graphics.Bitmap.createBitmap(Bitmap.java:756)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:76)
at BAR.Tablet.clscountdown._calculatetextwidth(clscountdown.java:103)
at BAR.Tablet.clscountdown._show(clscountdown.java:309)
at BAR.Tablet.clsscontrino$ResumableSub_AvviaStampaScontrino.resume(clsscontrino.java:398)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1144)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5258)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:940)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:735)
~e:java.lang.OutOfMemoryError: Failed to allocate a 7449612 byte allocation with 2922316 free bytes and 2MB until OOM
~e: at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
~e: at android.graphics.Bitmap.nativeCreate(Native Method)
~e: at android.graphics.Bitmap.createBitmap(Bitmap.java:812)
~e: at android.graphics.Bitmap.createBitmap(Bitmap.java:789)
~e: at android.graphics.Bitmap.createBitmap(Bitmap.java:756)
~e: at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:76)
~e: at BAR.Tablet.clscountdown._calculatetextwidth(clscountdown.java:103)
~e: at BAR.Tablet.clscountdown._show(clscountdown.java:309)
~e: at BAR.Tablet.clsscontrino$ResumableSub_AvviaStampaScontrino.resume(clsscontrino.java:398)
~e: at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
~e: at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
~e: at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1144)
~e: at android.os.Handler.handleCallback(Handler.java:739)
~e: at android.os.Handler.dispatchMessage(Handler.java:95)
~e: at android.os.Looper.loop(Looper.java:135)
~e: at android.app.ActivityThread.main(ActivityThread.java:5258)
~e: at java.lang.reflect.Method.invoke(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:372)
~e: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:940)
~e: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:735)
java.lang.OutOfMemoryError: Failed to allocate a 7449612 byte allocation with 2922316 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:812)
at android.graphics.Bitmap.createBitmap(Bitmap.java:789)
at android.graphics.Bitmap.createBitmap(Bitmap.java:756)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:76)
at BAR.Tablet.clscountdown._calculatetextwidth(clscountdown.java:103)
at BAR.Tablet.clscountdown._show(clscountdown.java:309)
at BAR.Tablet.clsscontrino$ResumableSub_AvviaStampaScontrino.resume(clsscontrino.java:398)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:240)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1144)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5258)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:940)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:735)