[Bug]: Fatal Exception: android.app.ForegroundServiceDidNotStartInTimeException
维护者通常 5 天内回复
@illuminati1911 已经在做这个了。
开始于 2026年3月17日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- TypeScript
- 星标
- 226
- 派生
- 39
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googlemaps/react-native-navigation-sdk 的其他 Issue
-
[Support Request]: Status of Expo config plugin release (prebuild fails on 0.19.0)可能已有人在做 @jokerttu 于 1 天前认领。 未关闭
googlemaps/react-native-navigation-sdk#711 · 已指派 1 人 ·
维护者通常 5 天内回复
-
[Bug]: In-navigation notification can't be stopped可能已有人在做 @jokerttu 于 8 天前认领。 未关闭triage me type: bug
googlemaps/react-native-navigation-sdk#696 · 已指派 1 人 ·
维护者通常 5 天内回复
-
[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 cost可能已有人在做 @illuminati1911 于 14 天前认领。 未关闭triage me type: bug
googlemaps/react-native-navigation-sdk#687 · 已指派 1 人 ·
维护者通常 5 天内回复
-
[Bug]: iOS crash in GMSObjectDataCache Core Data save (fatal optimistic locking failure)可能重新可做 @illuminati1911 于 60 天前认领,目前没有进行中的 PR。 未关闭native sdk issue
googlemaps/react-native-navigation-sdk#647 · 1 条评论 · 已指派 1 人 ·
维护者通常 5 天内回复
-
[Bug]: CarPlay map view never sets GMSMapViewOptions.screen, so the navigation header and footer are sized for the phone可能重新可做 @jokerttu 于 73 天前认领,目前没有进行中的 PR。 未关闭
googlemaps/react-native-navigation-sdk#640 · 4 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 5 天内回复
查看 googlemaps/react-native-navigation-sdk 的全部 Issue
相似的 Issue
-
pending close triaging
难度 1/5 1-3 小时 新手友好度 74/100
anomalyco/opencode#63090 · 1 条评论 ·
维护者通常 1 天内回复
-
ai-driven-qa bug claude Cosmetic
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
ai-driven-qa bug claude Minor
难度 2/5 1-3 小时 新手友好度 76/100
linagora/twake-mail-admin#609 ·
维护者通常 1 天内回复