Android Question Error in APP in background

Christian García S.

Active Member
Licensed User
Hello, I have an app with a service #StartAtBoot, this services add Geofence when you restart phone, the same APP has a other services that are active when the APP is running.

One services works with Service.StartForeground.

Sometimes is not always, APP crash, I checked info in play console and I got this message:

B4X:
java.lang.Exception:
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:192)
at anywheresoftware.b4a.keywords.Common$11.run (Common.java:1151)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6776)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1496)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1386)

I do not know what is causing this error.

Thanks
 

Christian García S.

Active Member
Licensed User
Hi, thanks for your response.

It happens that the application crashes after a few hours, I can not find a way to reproduce the error.

The application is already in production and this error I have obtained from the google developers console (19 crashes reports and 19 with the same error), I can not get more information from there.





Can I find some internal log inside my phone where I can find more details about that error ???

Thanks in advance.

Christian
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Can I find some internal log inside my phone where I can find more details about that error ???
Are you able to reproduce it locally?

The error is related to a CallSubDelayed call where the target sub is missing.

Note that in the next version of B4A an exception will not be thrown in that case.
 
Upvote 0

Christian García S.

Active Member
Licensed User
Hi Erel,

I can not able reproduce locally, how I said this happens in differents hour in day, I have this error code because I saw in google developer console.

I checked code and I have some CallSubDelayed:



Maybe with these CallSubDelayed, you can deduce something.

Thanks a lot.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…