Skip to content

Android: MediaTokenCache cancellation can hang a camera's media until app restart #133

Description

@badbread

Source: release-readiness audit 2026-07-13 (P1, android).

A cancelled MediaTokenCache fetch can poison waiters or leave an incomplete deferred stuck in inFlight forever, so that cameras media never resolves until the app is restarted.

Fix: run the fetch in an owned coroutine scope; complete/remove the deferred in a finally so cancellation cannot strand it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclients: androidAndroid appconfirmedReproduced / confirmed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions