Repository navigation
Closed
Labels
Description
Platform
Mobile - Android
Describe the bug
There's frequent ANR when Folo is in the background
Entry ID
No response
Relevant Information
type: crash
osVersion: google/stallion/stallion:17/CP2A.260805.005/2026081301:user/release-keys
package: is.follow:46, targetSdk 36
process: is.follow
processUptime: 758 + 634 ms
installer: com.android.vending
java.lang.RuntimeException: Unable to start service com.doublesymmetry.trackplayer.service.MusicService@6125615 with null
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5870)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(ActivityThread.java:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2866)
at android.os.Handler.dispatchMessageImpl(Handler.java:142)
at android.os.Handler.dispatchMessage(Handler.java:125)
at android.os.Looper.loopOnce(Looper.java:296)
at android.os.Looper.loop(Looper.java:397)
at android.app.ActivityThread.main(ActivityThread.java:9569)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:575)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed: service is.follow/com.doublesymmetry.trackplayer.service.MusicService
at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
at android.os.Parcel.readParcelableInternal(Parcel.java:5299)
at android.os.Parcel.readParcelable(Parcel.java:5280)
at android.os.Parcel.createExceptionOrNull(Parcel.java:3396)
at android.os.Parcel.createException(Parcel.java:3385)
at android.os.Parcel.readException(Parcel.java:3361)
at android.os.Parcel.readException(Parcel.java:3303)
at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7505)
at android.app.Service.startForeground(Service.java:777)
at com.doublesymmetry.trackplayer.service.MusicService.startAndStopEmptyNotificationToAvoidANR(MusicService.kt:123)
at com.doublesymmetry.trackplayer.service.MusicService.onStartCommand(MusicService.kt:98)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5854)
... 10 more
Reproduction Video
No response
Environment
No response
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- This issue is valid
Contributions
- I am willing to submit a PR to fix this issue
- I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Activity
DIYgod commentedon Sep 2, 2026
We've upgraded the audio player on
dev, which should address this crash. Android tests passed, but the change hasn't shipped yet. Please try it after release and let us know if the issue persists.oppressor1761 commentedon Sep 2, 2026
Seems resolved in the new build
DIYgod commentedon Sep 26, 2026
Thanks for confirming. The audio player upgrade that fixes this background service crash (465b997) is included in mobile v0.5.10.