mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Caused by java.lang.IllegalStateException Maximum limit of concurrent alarms 500 reached for uid: u0a359

Open dh-hasif opened this issue 3 years ago • 2 comments

Environment

  • Android OS version: Android 11
  • Devices affected: OPPO
  • Maps SDK Version: 10.3.0

Observed behavior and steps to reproduce

We are seeing crash in Map SDK v10 ,for some users

Caused by java.lang.IllegalStateException Maximum limit of concurrent alarms 500 reached for uid: u0a359

android.os.Parcel.createExceptionOrNull (Parcel.java:2397)

android.app.AlarmManager.setInexactRepeating (AlarmManager.java:814) com.mapbox.android.telemetry.AlarmSchedulerFlusher.schedule (AlarmSchedulerFlusher.java:43) com.mapbox.android.telemetry.MapboxTelemetry.startAlarm (MapboxTelemetry.java:401) com.mapbox.android.telemetry.MapboxTelemetry.startTelemetry (MapboxTelemetry.java:393) com.mapbox.android.telemetry.MapboxTelemetry.enable (MapboxTelemetry.java:133) com.mapbox.maps.module.telemetry.MapTelemetryImpl.setUserTelemetryRequestState (MapTelemetryImpl.kt:74)

Actually we are trying to enable or disable telemetry based on the user preference as given below

subscriptions += mapboxMetricsEnabledDataSource.observe().subscribe { enabled -> val telemetry = mapView.attribution.getMapAttributionDelegate().telemetry() telemetry.setUserTelemetryRequestState(enabled) } This issue is not reproducible directly . But we can see crash logs from crashlytics for some users

Expected behavior

dh-hasif avatar Jul 25 '22 15:07 dh-hasif

@dh-hasif thank you for reporting. Can you please verify whether you are experiencing this on our latest stable version, 10.6.0?

ZiZasaurus avatar Jul 25 '22 21:07 ZiZasaurus

sure, I can verify this after updating to 10.6.0

dh-hasif avatar Jul 27 '22 08:07 dh-hasif

We have updated the Mapbox SDK to 10.7.0 and this issue is not occurring anymore. closing this ticket , thanks

dh-hasif avatar Sep 15 '22 08:09 dh-hasif