Skip to content

Android Folo ANR #5084

Closed
Closed

Description

@oppressor1761

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

  1. added theissue type on Sep 2, 2026
  2. DIYgod commented on Sep 2, 2026

    @DIYgod
    Member

    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.

  3. oppressor1761 commented on Sep 2, 2026

    @oppressor1761
    Author

    Seems resolved in the new build

  4. DIYgod commented on Sep 26, 2026

    @DIYgod
    Member

    Thanks for confirming. The audio player upgrade that fixes this background service crash (465b997) is included in mobile v0.5.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions