Android Question java.lang.RuntimeException Google play store crash Report

designer2k2

Member
Licensed User
Longtime User
Hello,

one of my apps in the play store gets some crash reports, but i have no idea where to start looking for an issue :(

This is the report (there are several, identical reports) and they only happen on Anrdoid 6.0 and 7.0

B4X:
java.lang.RuntimeException:
  at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:3411)
  at android.app.ActivityThread.-wrap21 (ActivityThread.java)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1632)
  at android.os.Handler.dispatchMessage (Handler.java:110)
  at android.os.Looper.loop (Looper.java:203)
  at android.app.ActivityThread.main (ActivityThread.java:6247)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1063)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:924)
Caused by: java.lang.RuntimeException:
  at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:223)
  at anywheresoftware.b4a.BA.raiseEvent (BA.java:166)
  at cw.notification.bar.trayservice.handleStart (trayservice.java:105)
  at cw.notification.bar.trayservice.access$000 (trayservice.java:8)
  at cw.notification.bar.trayservice$1.run (trayservice.java:70)
  at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.onStartCommand (ServiceHelper.java:105)
  at cw.notification.bar.trayservice.onStartCommand (trayservice.java:68)
  at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:3394)

For me this looks like something in my "trayservice" whats handling a notification is throwing the error, but what error?

Im getting this reports since i added:
B4X:
Return true to allow the OS default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub
into the trayservice, before that, no reports. Also no other feedback from users.

Any hint on where i should start looking? :)
 

designer2k2

Member
Licensed User
Longtime User
There are 3 possibilities it could get started:

1. with the gui in a button_Click sub:
B4X:
StartService(TrayService)

2. inside the Service_Start it restarts itself the next day:
B4X:
StartServiceAt("", date,False)

3. it is defined as start sticky and start at boot:
B4X:
#Region  Service Attributes
    #StartAtBoot: True
    #StartCommandReturnValue: android.app.Service.START_STICKY
 
Upvote 0
Top