Skip to content

ios: rebuildEngine replaces pendingLoad without completing it, dropping an in-flight skip or playNewQueue continuation #707

Closed

Description

@timusus

PlaybackSystemCoordinator.rebuildEngine (ios/S2/Platform/Audio/PlaybackSystemCoordinator.swift, ~line 173) calls playback.load, which replaces pendingLoad without completing the previous one. An in-flight skip's load completion, or playNewQueue's play() continuation, is dropped when a media-services reset lands mid-load.

Expected: the superseded load completes (cancelled or re-driven) so the caller's continuation runs.

Pre-existing flaw, surfaced by the review of #696. That PR makes a reset also resume a track that is Loading with play intent, so the window is now reachable in the Loading case. Not reproduced on a device yet (unverified).

Related: #694, #691.

Activity

  1. timusus commented on Oct 4, 2026

    @timusus
    OwnerAuthor

    Landed in ff0d8ce

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions