-
Notifications
You must be signed in to change notification settings - Fork 1.3k
App crashes on Android 8.0 using Mapbox SDK 6.3.0 #12730
Comments
Updating to 6.4.0 does not help because it introduces a more severe bug (app crashes when you go back to the map view on various devices and Android versions) |
@iverc thank you for reaching out, could you back this up with some example code? Could you share the stacktrace? We haven't heard about such crashes from other users or have seen this behaviour ourselves. regarding the telemetry service crash from OP, @electrostat can you look more into this? |
@tobrun This crash was caught by Fabric, please find stack trace in the issue description. It does not point to my code and I don't call telemetry directly so I'm not sure which example code should I share. |
@iverc
Thanks again for reaching out, providing feedback and using our products! |
@tobrun oh, got it. I will open a separate issue for it. Thanks for quick response! |
@tobrun Also, the same version of Mapbox SDK (6.3.0) causes ANR's on Samsung Galazy Tab E 8.0. It might be related since it also points to TelemetryService. Here is the ANR log from GP console:
|
Thank you @iverc - it seems we might have three different issues reported here.
|
@zugaldia I mentioned that it might be telemetry-related because GP console shows that this ANR point to TelemetryService (please see attached screenshot): |
I believe the issue in the OP should be solved by mapbox/mapbox-events-android#157, someone please correct me if I'm wrong! |
@lilykaiser that was the setup to address this in 6.1.3 but this hasn't resolved this issue. |
Thanks for clarifying! |
@iverc Running into issues replicating this issue locally. Through all my tests and research it looks like the command that was triggered should only trigger while the device is in the foreground. Could you share some more details about your implementation (where you are calling our sdk, other sdks you are running, etc...). I'm trying to find a way to reliably replicate this trigger, so I can get it solved for you. |
[Deleted] -- My bad, wrong version of mapbox |
We've had the same issue pop up in two different places (Mapbox SDK 6.5.0). First occurence (reported just once on Android 9.0):
Second occurence (reported once on Android 7.0):
Kinda odd that the first occurrence was during an |
@mapbox_team Please take a look on Samsung Note 5, I got so many crashes on this device related to mapbox telemetry:
|
Thank you @Jukurrpa @tan-tran-viet for the reports - the team is aware of this issue and is actively working on a fix that can be tracked on mapbox/mapbox-events-android#254 (currently under review). |
A fix for this issue has now landed with mapbox/mapbox-events-android#254 and it'll be included with our next releases. A patch release for 6.x is scheduled today, a final release for 7.x is scheduled for the third week of December (with pre-releases happening on a weekly basis until then that could be used for testing purposes). If you're still seeing this issue after upgrading, please cut a new ticket. Thanks all for your patience along the way! |
App crashes on Android 8.0 using Mapbox SDK 6.3.0
Caused by java.lang.IllegalStateException
Not allowed to start service Intent { cmp=com.*.android/com.mapbox.android.telemetry.TelemetryService }: app is in background uid UidRecord{6909885 u0a361 SVC bg:+1m3s523ms idle procs:1 seq(0,0,0)}
android.app.ContextImpl.startServiceCommon (ContextImpl.java:1538)
| android.app.ContextImpl.startService (ContextImpl.java:1484)
| android.content.ContextWrapper.startService (ContextWrapper.java:663)
| com.mapbox.android.telemetry.MapboxTelemetry.startLocation (MapboxTelemetry.java:499)
| com.mapbox.android.telemetry.MapboxTelemetry.onEnterForeground (MapboxTelemetry.java:548)
| com.mapbox.android.telemetry.MapboxTelemetry_LifecycleAdapter.callMethods (MapboxTelemetry_LifecycleAdapter.java:25)
| android.arch.lifecycle.SingleGeneratedAdapterObserver.onStateChanged (SingleGeneratedAdapterObserver.java:35)
| android.arch.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent (LifecycleRegistry.java:354)
| android.arch.lifecycle.LifecycleRegistry.forwardPass (LifecycleRegistry.java:292)
| android.arch.lifecycle.LifecycleRegistry.sync (LifecycleRegistry.java:332)
| android.arch.lifecycle.LifecycleRegistry.moveToState (LifecycleRegistry.java:137)
| android.arch.lifecycle.LifecycleRegistry.handleLifecycleEvent (LifecycleRegistry.java:123)
| android.arch.lifecycle.ProcessLifecycleOwner.activityStarted (ProcessLifecycleOwner.java:107)
| android.arch.lifecycle.ProcessLifecycleOwner$2.onStart (ProcessLifecycleOwner.java:79)
| android.arch.lifecycle.ReportFragment.dispatchStart (ReportFragment.java:60)
| android.arch.lifecycle.ReportFragment.onStart (ReportFragment.java:80)
| android.app.Fragment.performStart (Fragment.java:2637)
| android.app.FragmentManagerImpl.moveToState (FragmentManager.java:1312)
| android.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManager.java:1549)
| android.app.FragmentManagerImpl.moveToState (FragmentManager.java:1611)
| android.app.FragmentManagerImpl.dispatchMoveToState (FragmentManager.java:3045)
| android.app.FragmentManagerImpl.dispatchStart (FragmentManager.java:3002)
| android.app.FragmentController.dispatchStart (FragmentController.java:190)
| android.app.Activity.performStart (Activity.java:7197)
| android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2920)
| android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3032)
| android.app.ActivityThread.-wrap11 (Unknown Source)
| android.app.ActivityThread$H.handleMessage (ActivityThread.java:1696)
| android.os.Handler.dispatchMessage (Handler.java:105)
| android.os.Looper.loop (Looper.java:164)
| android.app.ActivityThread.main (ActivityThread.java:6944)
| java.lang.reflect.Method.invoke (Method.java)
| com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
| com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
Expected behavior
The app should not crash.
Actual behavior
App crashes.
Configuration
Android versions: 8.0
Device models: Galaxy S7 Edge
Mapbox SDK versions: 6.3.0
The text was updated successfully, but these errors were encountered: