[Bug]: Fatal Exception: android.app.ForegroundServiceDidNotStartInTimeException
Maintainer antworten meist innerhalb von 5 Tagen
@illuminati1911 arbeitet bereits daran.
Seit 17.3.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Is there an existing issue for this?
- I have searched the existing issues
Description of the bug
We get those crashes time to time:
Fatal Exception: android.app.ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{808d146 u0 com.apolloscooters/com.google.android.libraries.geo.navcore.service.base.NavigationService}
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2078)
at android.app.ActivityThread.access$2800(ActivityThread.java:259)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2303)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.app.ActivityThread.main(ActivityThread.java:8249)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)
also:
Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{883ead4 u0 com.apolloscooters/com.google.android.libraries.geo.navcore.service.base.NavigationService c:com.apolloscooters}
at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2675)
at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2643)
at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3068)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:273)
at android.os.Looper.loop(Looper.java:363)
at android.app.ActivityThread.main(ActivityThread.java:10060)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
React Native version
0.81.5
React version
19.1.0
Package version
0.12.1
Native SDK versions
- I haven't changed the version of the native SDKs
React Native Doctor Output
✓ Node.js - Required to execute JavaScript code
✓ yarn - Required to install NPM dependencies
✓ Watchman - Used for watching changes in the filesystem when in development mode
✓ Metro - Required for bundling the JavaScript code
Android
✓ Adb - Required to verify if the android device is attached correctly
✓ JDK - Required to compile Java code
✓ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✖ Android SDK - Required for building and installing your app on Android
- Versions found: N/A
- Version supported: 36.0.0
iOS
✓ Xcode - Required for building and installing your app on iOS
✓ Ruby - Required for installing iOS dependencies
✓ CocoaPods - Required for installing iOS dependencies
✓ .xcode.env - File to customize Xcode environment
Errors: 1
Warnings: 0
Steps to reproduce
I didn't manage to reproduce yet, but it might be related to the fact that we cleanup the navigation controller when the app goes in background.
Expected vs Actual Behavior
No crash...
Code Sample
// Example code here
Additional Context
No response
- Vorherrschende Sprache
- TypeScript
- Sterne
- 226
- Forks
- 39
- Ø Merge
- 1 T. 20 Std.
- Gemergte PRs (30 T.)
- 7
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus googlemaps/react-native-navigation-sdk
-
[Support Request]: Status of Expo config plugin release (prebuild fails on 0.19.0)Evtl. vergeben @jokerttu hat das vor 1 Tag übernommen. Offen
googlemaps/react-native-navigation-sdk#711 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 5 Tagen
-
[Bug]: In-navigation notification can't be stoppedEvtl. vergeben @jokerttu hat das vor 8 Tagen übernommen. Offentriage me type: bug
googlemaps/react-native-navigation-sdk#696 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 5 Tagen
-
[Bug]: [iOS] Navigation SDK init/quota retry loop pins the main thread; React Native's Settings module and addMarker's temporary GMSMarker add to the costEvtl. vergeben @illuminati1911 hat das vor 14 Tagen übernommen. Offentriage me type: bug
googlemaps/react-native-navigation-sdk#687 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 5 Tagen
-
[Bug]: iOS crash in GMSObjectDataCache Core Data save (fatal optimistic locking failure)Evtl. wieder frei @illuminati1911 hat das vor 60 Tagen übernommen, und es ist kein Pull Request offen. Offennative sdk issue
googlemaps/react-native-navigation-sdk#647 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 5 Tagen
-
[Bug]: CarPlay map view never sets GMSMapViewOptions.screen, so the navigation header and footer are sized for the phoneEvtl. wieder frei @jokerttu hat das vor 74 Tagen übernommen, und es ist kein Pull Request offen. Offen
googlemaps/react-native-navigation-sdk#640 · 4 Kommentare · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 5 Tagen
Alle Issues in googlemaps/react-native-navigation-sdk
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
awslabs/visual-asset-management-system#1278 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
mifi/lossless-cut#3213 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 83/100
plasma-umass/scalene#1123 ·
Maintainer antworten meist innerhalb von 1 Tag