Android Question need assistance with firebase report

tsteward

Well-Known Member
Licensed User
Longtime User
Gday all smarter than me :D
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
    19.1 KB · Views: 79

Erel

B4X founder
Staff member
Licensed User
Longtime User
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
Top