Skip to content

A recovery reload of a paused session starts playback (item death, master fallback) #626

Closed

Description

@superuser404notfound

What goes wrong

Two in-place item swaps end in an unconditional host.play(), whatever the session was doing:

Bypassing the guard is right for deciding WHETHER to reload: a dead item has to be replaced. It is wrong for deciding whether the replacement plays. A session the viewer paused comes back playing.

Field log (from PR #621)

Apple TV 4K (3rd gen), tvOS 27.0, HDR10+ HEVC Matroska. The viewer pauses, the tvOS screensaver takes the display after two minutes, the paused item dies with -11868, the stage-2 recovery swaps a fresh item in and plays it, that item is refused, and the media fallback plays again. Playback runs behind the screensaver with nobody watching, and the viewer returns to a title that has moved on.

03:06:54  paused at 2099.69 s
03:08:59  [NativeAVPlayerHost] #1 failedToPlayToEndTime AVFoundationErrorDomain/-11868 'Cannot open'
03:09:02  [AetherEngine] #93 item death (failedToPlayToEndTime) at 2099.69s; reloading item through stage-2 recovery (attempt 1, pause guard bypassed)

The fallback has a second instance of the same defect: during a startup it can land while the load is still waiting on the panel handshake, and its play() then starts the item ahead of the display gate, and it starts an autoplay = false mount that was meant to stay paused.

Expected

Both swaps come back in the transport state the session had: playing if it was playing, paused on the placed frame if it was paused. The engine already answers that question for its own session-preserving rebuilds (sessionRebuildResumesPlaying, #464), and these two swaps should use the same answer.

Reported by @brandomoore in #621.

Activity

  1. superuser404notfound commented on Sep 24, 2026

    @superuser404notfound
    OwnerAuthor

    Fixed by #623 (merged as ee6a86b), which landed in parallel with this report. The headless drills that cover it followed in d49516e. Ships with the next engine release.

  2. superuser404notfound commented on Sep 24, 2026

    @superuser404notfound
    OwnerAuthor

    Released in 7.16.1 (4ef5ef95), together with the fallback position fix from #621.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions