Gday all smarter than me
My app crashes for some users but not all. I don't understand why.
I have installed firebase Crashlytics to try and figure this out. One problem it reports is height and width must be > 0
I have attached the stack trace. Is anyone able to explain to me how to determine from this what the error is and where?
I believe its in b4xmainpage
Caused by java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1113)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1080)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1030)
at android.graphics.Bitmap.createBitmap(Bitmap.java:991)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:81)
at anywheresoftware.b4a.objects.B4XCanvas.Initialize(B4XCanvas.java:54)
at lishi.assistand.tony.stewardgmail.com.b4xmainpage$ResumableSub_B4XPage_Created.resume(b4xmainpage.java:1750)
You are calling B4XCanvas.Initialize with a zero sized panel.
It happens in B4XMainPage.B4XPage_Create.