-
Notifications
You must be signed in to change notification settings - Fork 70
BinderProxy ClassCastException when running Lost within a bound service #250
Comments
Adding here relevant log traces:
Well, after getting the crashes, I noticed that you don't receive location updates anymore, which makes total sense because |
Thanks for the report. I have a few questions to help narrow this down...when is the telemetry service connected in relation to Lost? And from which process is the connection initiated from? Do you expect multiple processes to access the bound telemetry service? You'd see that crash using a binder when multiple processes access the telemetry service. |
@sarahlensing
The flow is as follows:
We're not specifying a concrete process in which
Nope, not expected. As mentioned before, we don't want to run
This is weird because we're not specifying a concrete process in which Let me know if you have any other follow up questions. Thanks @sarahlensing 🙏 |
Closing as this repo is no longer maintained. |
Description
App crashes at startup.
Curious thing is that we’re getting the crash twice and then it disappears. This means that everything works until you remove the app from the background (swiping it away from the recent apps list) or you force close the app and relaunch it again, getting two consecutive crashes again.
We’re using a bound service to listen to location updates.
Based on the crash message, it seems that Lost
FusedLocationProviderService
is messing with our service somehow. As you can see ☝️, the crash is coming from:lost
process, which is where you runFusedLocationProviderService
.What I still don’t get/know is why it gets intermingled with our connection (crash is pointing to that specific line). It seems that your service gets created and our connection receives the callback somehow producing that
ClassCastException
. Any ideas?Noting here that we’re not getting this crash when using an unbound
Service
.Steps to Reproduce
You can reproduce the behavior described above running the test app included in this branch https://github.com/mapbox/mapbox-gl-native/tree/pg-new-events-lib-integration
Lost & Android Version
Lost
3.0.4
Moto X 2nd gen Android 5.0
Nexus 5 Android 6.0 (as soon as the location permissions are granted)
Related issues
#173
#228
cc/ @sarahlensing @msmollin @tallytalwar
The text was updated successfully, but these errors were encountered: