tsteward Well-Known Member Licensed User Longtime User Jun 30, 2024 #1 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 Help please Attachments lishi.assistand.tony.stewardgmail.com_issue_ab4721ab688b9d4ab152fe95f4195a28_crash_session_668...txt lishi.assistand.tony.stewardgmail.com_issue_ab4721ab688b9d4ab152fe95f4195a28_crash_session_668...txt 19.1 KB · Views: 385
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 Help please
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2024 #2 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. Upvote 0
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.