Bug? App crashes using BetterImageView

Scantech

Well-Known Member
Licensed User
Longtime User
Hi Erel, try the attached file. Emulator is OK, but Samsung S6 crashed immediately. It might affect few devices out there? The BetterImageView library is used to demonstrate the error. Not sure if its the Library or B4A fault?

OS: 5.1.1
Tested in Obfuscated Release Mode
 

Attachments

  • BugTest.zip
    373.6 KB · Views: 301
Last edited:

Informatix

Expert
Licensed User
Longtime User
This should be posted in the BetterImageView thread as it concerns the library, not B4A, at first glance.
I have no idea of what could be wrong. Could you post an unfiltered log ?
 

Scantech

Well-Known Member
Licensed User
Longtime User
I should of mention the procedure to duplicate the error. Start app, click Image then click outside the Inputlist Dialog.

I do not see any error in the filtered log.

Unfortunately, b4a Example has stopped

 
Last edited:

Informatix

Expert
Licensed User
Longtime User
This log doesn't show any crash...
 

Informatix

Expert
Licensed User
Longtime User
I was able to reproduce the crash on my MotoG after tapping many times on the image and outside the dialog. I got a fatal signal 11. Here's the unfiltered log (I added a few Log() in the code to see where the app stops):
The crash occurs after leaving the Touch event.
In the log, a warning is displayed after the InputList dialog is cancelled by clicking outside ("Attempted to finish an input event but the input event receiver has already been disposed."). I don't have the code of this dialog so I have no explanation.
 

Scantech

Well-Known Member
Licensed User
Longtime User
Can you reproduce it without BetterImageView?

Adding CallSubDelayed in imgDiag_Action to call imgDiag_Click will most probably fix this issue.
I will tinker around when I get a chance.
 

Scantech

Well-Known Member
Licensed User
Longtime User
CallSubDelay does prevent it from crashing.

However, the behavior has changed. Now without the need of any coding below "imgDiag_Click", calling "imgDiag_Click" (not with CallSubDelay) in the touch event will always crash. It did not do that before.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…