Open bromeostasis opened 8 years ago
Got another different error with a build in the background for a few days:
java.lang.RuntimeException: Init failed
at android.media.ToneGenerator.native_setup(Native Method)
at android.media.ToneGenerator.<init>(ToneGenerator.java:771)
at com.cowbell.cordova.geofence.BeepHelper.<init>(BeepHelper.java:10)
at com.cowbell.cordova.geofence.GeoNotificationNotifier.<init>(GeoNotificationNotifier.java:24)
at com.cowbell.cordova.geofence.ReceiveTransitionsIntentService.onHandleIntent(ReceiveTransitionsIntentService.java:45)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
which I've linked to #73
I have same error as first stack trace.
@jyyblue1987 we've since moved to https://github.com/transistorsoft/cordova-background-geolocation , which does not have as many problems in the background, but we do pay for Android use.
After we leave our app in the background for a few days with this plugin running, it crashes in the background with no explanation. After writing a custom java exception handler, I finally was able to grab the following stacktrace:
The issue seems to mostly happen while moving around in the car (presumably entering/exiting a lot of geofences). As mentioned, it takes a long time to reproduce, so we don't have a ton of info on root causes.
I haven't had much time to look at this/analyze today, but I was wondering if anyone else has seen this issue or could provide some insight into why this might happen. I'm happy to provide any more details about cause/testing/etc.
Thanks in advance!