Beta B4A v5.5 beta #1 - Uncaught Exceptions

Pendrush

Well-Known Member
Licensed User
Longtime User
I have try attached example https://www.b4x.com/android/forum/threads/uncaught-exceptions.59805/#content

After click on button (crash app) and get email dialog, when I send email, application get focus, and continue to work.
I have expected default android exception dialog.

Log:
Current time: 12:39:56
Current time: 12:39:57
Current time: 12:39:58
Current time: 12:39:59
Current time: 12:40:00
Trying to set 'i'...
main_button1_click (java line: 339)
java.lang.NumberFormatException: Invalid double: "fdgdfg"
at java.lang.StringToReal.invalidReal(StringToReal.java:63)
at java.lang.StringToReal.parseDouble(StringToReal.java:269)
at java.lang.Double.parseDouble(Double.java:295)
at b4a.example.main._button1_click(main.java:339)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78)
at android.view.View.performClick(View.java:4640)
at android.view.View$PerformClick.run(View.java:19431)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5598)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NumberFormatException: Invalid double: "fdgdfg"
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Current time: 12:40:36
Current time: 12:40:37
Current time: 12:40:38
Current time: 12:40:39
Current time: 12:40:40
Current time: 12:40:41
Current time: 12:40:42
 

Pendrush

Well-Known Member
Licensed User
Longtime User
With

B4X:
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
   Return True
End Sub

Get

Screenshot_2015-11-04-13-09-18.png
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
Yes, i have downloaded your example without change anything in my first try, started in Release mode.
code in my second try (screenshot in post #3)
B4X:
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
   Return True
End Sub
also in Release mode.
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
Same behavior in Genymotion android emulator with android 4.4.4
EDIT: In Genymotion android emulator with android 5.1.1 everything work as expected, default android exception is called, app crash, and I'm able to send email crash log.
 
Last edited:
Upvote 0

Dey

Active Member
Licensed User
Longtime User
Same behavior in Genymotion android emulator with android 4.4.4
EDIT: In Genymotion android emulator with android 5.1.1 everything work as expected, default android exception is called, app crash, and I'm able to send email crash log.

Hello
may I ask if you have problems with genymotion in quick debugging mode?
even with previous version 5.20
happens to me very often have to restart ricmpilare many times before it starts to
I also restart ADB and clean proget but often does not go
Thanks for an answer
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
Hello
may I ask if you have problems with genymotion in quick debugging mode?
even with previous version 5.20
happens to me very often have to restart ricmpilare many times before it starts to
I also restart ADB and clean proget but often does not go
Thanks for an answer

I don't have any problems with Genymotion.
 
Upvote 0

RauchG

Active Member
Licensed User
Longtime User
B4X:
Sub Process_Globals
    Private logs As StringBuilder
    Private logcat As LogCat
    Private const emailAddress As String = "MyEmail@aaa.com"
End Sub

The string can be transferred also to a variable? "MyEmail@aaa.com"
 
Upvote 0
Top