Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Crash on MediaLibraryService when swiping up app (media3 branch) #541

@kelmer44

Description

@kelmer44

If you follow these steps:

  1. Start playing
  2. Pause (from app or media notification)
  3. Swipe up app

occassionally the app will crash with the following log line

2024-02-20 13:52:47.813 mediaserver          mediaserver           E  unlinkToDeath: removed reference to death recipient but unlink failed: DEAD_OBJECT
2024-02-20 13:52:47.813 IPCThreadState       mediaserver           E  attemptIncStrongHandle(28): Not supported

Looks like the process is being restarted due to this crash, and this leaves the media notification in place with a useless set of actions; clicking any action yields nothing.

When checking the MediaButtonReceiver from the media_session like so:

adb shell dumpsys media_session | grep MediaButtonReceiver
we see this:

Last MediaButtonReceiver: MBR {pi=null, componentName=ComponentInfo{com.example.android.uamp.next/androidx.media.session.MediaButtonReceiver}, type=1, pkg=com.example.android.uamp.next}

(no pending intent)

I'm also experiencing this issue in my app and its a pretty bad scenario, any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions