Skip to content

Loopback-HLS 404 loadFailed wedge after rapid seek burst (#35-family, distinct from #49) #50

Closed

Description

@superuser404notfound

Summary

Split out from #49 (thanks @rrgomes for the clean device repro). Distinct failure mode from #49: this is not the clock/frame divergence, it is a terminal 404 loadFailed on the engine-native loopback-HLS path after a rapid seek burst. Tracking separately so the non-fatal clock-divergence signal in #49 and this fatal 404 wedge stay clean.

It is #35-family (rapid-seek restart cascade) but a different terminal symptom, and it reproduces on 3.10.0, so the #35 coalescing fix did not close this path.

Repro (reported by @rrgomes)

  • Apple TV 4K (3rd gen), AetherEngine 3.10.0.
  • Content: single-MKV HEVC DV-P7, direct play (engine-native loopback HLS to AVPlayer).
  • Action: rapid D-pad skip-ahead burst, 7 skips, 24s to 84s in ~2.5s. Then normal playback resumes and runs clean for ~10s, then aborts.

Failure snapshot (host-side, engine's currentAVPlayer at the moment of failure)

  • state = loadFailed("The requested URL was not found on this server.")
  • AVPlayer: timeControlStatus = playing, rate = 1.0, clock at 94.9s (advanced normally from the 84.4s seek target).
  • loadedTimeRanges = [84.2-100.6], seekableTimeRanges = [0-7080].

So AVPlayer was healthy and playing with ~16s buffered when the pipeline surfaced a 404. Because 84.2-100.6 is buffered and being served, the 404 is not a pruned old segment behind the playhead. It is a forward request (next segment past 100.6, or a media.m3u8 LL-HLS blocking reload) for content the loopback server no longer serves.

Why distinct

Code analysis (hypothesis)

The loopback media.m3u8 is EVENT / LL-HLS with blocking reloads (?_HLS_msn=N, HLSLocalServer.swift:740), so AVPlayer issues forward segment requests and playlist refreshes. Segment URLs are index-only (/seg{N}.mp4), keyed to the shared per-session cache, not to a producer. On a rapid burst the restart path can abandon a producer that does not exit within 5s (HLSVideoEngine.swift:2006), and a new producer takes over the same cache.

Prime hypothesis: after the burst the producer responsible for extending the buffer forward is abandoned/wedged and stops producing, while AVPlayer (or the LL-HLS blocking reload) requests the next forward segment. The server then hits segment[N] empty (segmentCount=M) with N >= M (HLSLocalServer.swift:910) and returns 404, which surfaces to AVPlayer as loadFailed. The alternative (N < M, a pruned segment) is unlikely given the buffered range.

What pins it

The engine already logs the exact cause; no new build needed. From an on-device EngineLog capture across the burst to failure (categories .hlsServer + .session), the load-bearing lines are:

  • The 404 reason: ... reason=segment[N] empty (segmentCount=M) (or an init.mp4 / media.m3u8 / unknown path variant). N vs M disambiguates forward-unproduced (N >= M) vs pruned (N < M) vs a playlist/init request.
  • Any restart at idx=...: old producer didn't exit within 5s, abandoning it line, and the surrounding restart/coalesce sequence.

Those two together identify whether an abandoned producer stopped extending the buffer forward.

Activity

  1. rrgomes commented on Jun 18, 2026

    @rrgomes
    Contributor

    On-device #50 repro on 3.10.0 + 504b37b — the 404 index is N < M (pruned), not forward-unproduced; and no abandoning it

    Captured on Apple TV 4K hardware, AetherEngine pinned at 504b37b (3.10.0 + your frameAhead diag commit), via a host EngineLog.handler mirroring your .info lines to our UDP collector. Two engine-native loopback-HLS titles — a single-MKV HEVC DV-P7 4K (one device, single skip-burst) and a single-MKV H.264 1080p (two devices, dueling scrub). Both reproduce the terminal 404 loadFailed.

    The load-bearing finding: in every explicit 404 the requested index sits well below segmentCount — your pruned branch (N < M), not the forward-unproduced (N ≥ M) suspect. And no restart … abandoning it line fired anywhere in the window, so it isn't downstream of the 5 s producer-abandon path either (producers do restart — restarted=true — but none are abandoned).

    Pattern B — dueling scrub: the explicit cache-miss → 404 chain

    Two devices, same H.264 title, both scrubbing the AVKit bar. The follower is force-resync'd across the file by the peer's seeks; its producer can't keep up and takes 4 of the 5 404s:

    [peer (LR) seeks 186→176→166 s; follower (FR) applyRemoteSeek chases; producers restarted=true]
    00:28:39.678 [HLSVideoEngine] seg58: served 15357478 B (wait=17658.3ms cache=16 restarted=true)
    00:28:43.236 [HLSVideoEngine] seg33: cache miss after 30015ms (cache=16 restarted=false)
    00:28:43.236 [HLSLocalServer] -> 404 /seg33.mp4 reason=segment[33] empty (segmentCount=110)
    00:28:44.976 [HLSLocalServer] -> 404 /seg19.mp4 reason=segment[19] empty (segmentCount=110)
    00:28:45.004 [HLSLocalServer] -> 404 /seg21.mp4 reason=segment[21] empty (segmentCount=110)
    00:28:51.451 [HLSVideoEngine] seg66: cache miss after 30004ms (cache=19 restarted=true)
    00:28:51.451 [HLSLocalServer] -> 404 /seg66.mp4 reason=segment[66] empty (segmentCount=110)
    

    segmentCount=110 is advertised, but the rolling cache holds only ~16–19 segments, and the requested indices (19, 21, 33, 66) are well inside the advertised count yet absent from that live window. Each request blocks a fixed ~30 s (30004–30017 ms) before the 404. The wait=17658.3ms on seg58 just before shows the producer already badly backed up under the restart storm. A second dueling-scrub run scrubbing across the whole file produced the same failure with indices spanning seg7 → seg93, all still < segmentCount — i.e. AVPlayer requesting positions far outside the producer's live window, which nothing backfills.

    Pattern A — single skip-burst: post-seek reload that never resumes

    DV-P7 title, one device, 6 rapid D-pad seeks (21.9 → 81.9 s in ~4 s). After the last seek the engine fully reloads, then never serves another segment:

    00:24:52  [AVIOReader] persistent conn gen 1 → 5; [Demuxer] reopened 7 streams
    00:24:53  [AetherEngine] embedded subtitle reader restarted: startAt=81.90s seekTo=79.90s
    [no seg served after seg21 @ 00:24:52]
    00:25:02  state=loadFailed; AVPlayer tcs=playing rate=1.0 clock=92.6 loaded=[80.2–100.6] seekable=[0–7080]
    

    AVPlayer plays out its buffered [80–100] (clock 80→92.6) then 404s forward. I did not capture an explicit [HLSLocalServer] -> 404 reason=… line for this one — so it may be an init.mp4 / media.m3u8 / unknown path variant, or it's emitted below .info (our mirror only carries .info). Tell me the category/level and I'll capture it.

    On tap

    • The full raw EngineLog capture across both bursts (.hls.server + .session + everything at .info).
    • For Pattern A, a build mirroring your .verbose lines if the missing reason line lives there.

    Net: on real hardware the terminal 404 is an index inside the advertised segmentCount but evicted from the ~16–19-segment live cache, which the post-scrub producer doesn't backfill within the 30 s cache-miss timeout — and it lands hardest on a WT follower being force-seeked across the file. Both repros are reproducible on demand.

  2. superuser404notfound commented on Jun 18, 2026

    @superuser404notfound
    OwnerAuthor

    @rrgomes Your trace nailed it, and it overturned my original hypothesis. Thank you for the .info mirror and the N-vs-M breakdown, that is exactly the load-bearing detail.

    What your capture established

    The terminal 404 is not the forward-unproduced case (N >= segmentCount) I guessed in the issue body. Every 404 index you captured is N < segmentCount: the segment is evicted from the ~16-19-segment rolling window while the single producer is positioned elsewhere, and no producer is abandoned (they restart, none hit the 5s abandon path). That rules out both my forward-unproduced suspect and the abandon-path suspect, and it points straight at two distinct defects.

    Two defects, two-layer fix (244c874 on main)

    1. Liveness, the orphaned reposition. The #35 RestartCoalescer keeps a single pending slot (last-writer-wins). When a newer scrub position overwrites it, the producer settles at the newer index and the earlier in-range request is orphaned: its cache.fetch(index, timeout: 30s) waits on bytes that never come. This is exactly your dueling-scrub Pattern B, where the WT follower is force-seeked across the file and its producer cannot keep up.

    Fix: serveSegment now does a bounded re-asserting wait instead of one passive 30s block. It fires the reposition, waits in 8s slices up to 3 times, and re-fires only when another request has since steered the producer off index (the orphan signature). A healthy-but-slow cold first-GOP decode at the right index is not re-fired, so this does not reintroduce the #35 teardown storm. The coalescer itself is unchanged.

    2. Fatality, the 404 itself. An in-range VOD segment (0 <= N < segmentCount) always exists in the source and is regenerable, so answering 404 (which AVPlayer treats as terminal loadFailed) is wrong. The server now classifies the seg response: in-range miss returns a retriable 503 + Retry-After (AVPlayer re-requests, the re-asserting wait nudges the producer back, the retry lands a 200); out-of-range or unknown-count stays a genuine 404. So even under impossible simultaneous multi-position demand, the session degrades to a recoverable stall instead of a fatal abort.

    classifySegmentResponse is pure and unit-tested. seektest on a 90s H.264 VOD fixture: no spurious 503 or restart, maxWedge 0.19s, clockLead 0.00s, #37/#38 still pass.

    Pinning and what to look for

    • AetherEngine main: 244c874
    • Sodalite pin: 8ddc4c0b

    The headless harness cannot reproduce the rebuffer-stall window (local seeks land too fast for the coalescer to even engage), so your hardware is the acceptance gate. On 244c874, across the same burst:

    • No more 404 and no loadFailed on an in-range index. Any in-range miss now logs [HLSLocalServer] -> 503 ... reason=segment[N] empty and AVPlayer should recover on the retry rather than abort.
    • A new producer line [HLSVideoEngine] segN: out-of-range fetch (... attempt=k/3 ...) shows the re-assert engaging. If you see it climb to attempt=3/3 followed by a 503 and then a clean recovery, that is the intended degrade-and-recover path under sustained dueling-scrub.
    • Pattern A (single skip-burst): this is the case where I could not get an explicit reason line from you. If it still wedges on 244c874, the .verbose-mirror build you offered would help: a media.m3u8 / init.mp4 404 would surface a different code path than the seg-404 fixed here, and I would want to see which one.

    If anything still aborts rather than stalls-and-recovers, the full .hlsServer + .session capture across the burst would tell me whether a non-seg path (playlist or init) is the remaining hole.

  3. rrgomes commented on Jun 19, 2026

    @rrgomes
    Contributor

    On 3.11.1, a loopback 404 still kills plain playback (no seek burst)

    Folded in 3.11.1 (56a0241) and re-ran on-device. Plain playback of a large DV-P7 title — no seek, no scrub — still ends in loadFailed("The requested URL was not found on this server.") ~27 s in, with the player otherwise healthy.

    Snapshot at the .failed transition:

    trigger=failed kind=aether-native
    state=failed(loadFailed("The requested URL was not found on this server."))
    engineClock=27.200 avpClock=27.267 tcs=2 rate=1.0 waitReason=nil
    seekable=[0.0-7080.0] loaded=[0.0-32.2] frameAhead=0.000
    

    tcs=2 (playing), rate=1.0, 32 s buffered, full seekable range — and a loopback request 404s.

    Loopback-server log for this playback (our .info mirror):

    [HLSVideoEngine] prepared: codec=hvc1.2.4.L153,fLaC supplemental=dvh1.08.06/db1p DV=profile7 segments=1770 duration=7080.0s
    [HLSLocalServer] serving on http://127.0.0.1:56657/master.m3u8 (... dvVariant=profile7)
    [HLSVideoEngine] seg0: served 24816916 B (wait=9.1ms cache=1 restarted=false)
    

    Only seg0 is served (24 MB; loaded=[0.0-32.2] suggests it spans ~0–32 s), and no [HLSLocalServer] 503/in-range-miss line ever fires — so this 404 isn't taking the in-range-miss path your fix guards (which would log a 503 + out-of-range fetch attempt=k/3). It reads like AVPlayer prefetching the next in-plan segment after seg0 and getting a fatal 404 rather than a retriable 503, so the item fails ~5 s before the buffer would drain.

    Source: a 77.9 GB DV-P7 dual-layer MKV (profile=7 compat=6 level=6 rpu=1 el=1 bl=1, FLAC, PGS). The earlier capture of the same title failed the same way (loadFailed 404) at ~95 s after a seek burst; on 3.11.1 it's ~27 s on plain playback. Upstream is healthy — Plex serves every byte-range 206 OK; the "connection lost" churn in our logs is just the AVIOReader's own range-read reconnects.

    The loopback server doesn't mirror the 404'd request at .info, so we can't name the exact path it rejected. If useful, we can ship the .verbose-mirroring debug build we offered earlier to capture the loopback server's own 404/503 decision and the requested segment index.

  4. superuser404notfound commented on Jun 19, 2026

    @superuser404notfound
    OwnerAuthor

    Thanks for the 3.11.1 retest. The key finding from your capture is that this plain-playback failure does not take the in-range-miss path 244c874 guards: you see neither a -> 404 nor a -> 503 line in your .info mirror, even though send404/send503 both emit at .info. So the fatal request is not reaching the /segN.mp4 classifier at all, and right now we are blind to which path AVPlayer requested last.

    The reason you can't see it: request arrivals were logged at .verbose (OSLog .debug only, not mirrored to the host handler), while only the responses were at .info. I've promoted the per-request arrival line and the once-per-session request-header dump to .info so your existing mirror captures the full request sequence without you having to build a custom .verbose mirror.

    • AetherEngine main: 2d2845a (pure diagnostics, no behavior change)

    On 2d2845a, re-running the same plain-playback DV-P7 title, your .info mirror should now show every [HLSLocalServer] GET /... arrival. What I'm after:

    1. The last arrival line before the loadFailed transition. Is it a /segN.mp4, an /init.mp4, or a /media.m3u8 (re)fetch? That tells us which code path 404s.
    2. The [HLSLocalServer] first request headers line (Range / capability headers AVPlayer sent).
    3. If the last arrival is a /segN.mp4, the segmentCount= value on its -> 404/-> 503 response (the reason string carries it), so we can see whether classifySegmentResponse is falling to .notFound because segmentCount reads <= 0 at that instant.

    One structural thing I want to rule out in parallel: your prepared line advertised segments=1770 over duration=7080.0s (4.0 s nominal), but seg0 served loaded=[0.0-32.2], an 8x-long opening segment. The plan is keyframe-aligned (segment N ends at the first keyframe at or after (N+1) * target), so a 32 s opening GOP would produce exactly that. The arrival sequence will show whether AVPlayer then asks for seg1 (planned start 32 s) early and what the server answers, which is where a producer-cut-vs-EXTINF-boundary mismatch would surface.

    If anything still aborts rather than stalls-and-recovers, the full .hlsServer + .session capture across the window would close it.

  5. rrgomes commented on Jun 19, 2026

    @rrgomes
    Contributor

    Heads-up: the in-range loopback 404 trips a terminal .failed while the AVPlayer keeps playing — the host sees a spurious failure over a stream that never stops.

    Folding in the 2d2845a arrival diagnostics and replaying the plain DV-P7 case, the load-bearing finding for the host integration turned out to be that playback doesn't actually stop when this fires. At the .failed transition the underlying AVPlayer is healthy and stays that way:

    [FreezeDiag] trigger=failed kind=aether-native
      state=failed(loadFailed("The requested URL was not found on this server."))
      engineClock=27.300 avpClock=27.345 tcs=2 rate=1.0 waitReason=nil
      seekable=[0.0-7080.0] loaded=[0.0-32.2]
    

    tcs=2 (playing), rate=1.0, and the loopback keeps serving segments straight past it — engineClock and the subtitle cues keep advancing, and the title plays through to the end underneath. memprobes at t=30/60/90/120/150s are all healthy (avBufAhead positive, packetsWritten climbing). So from the host side the published .failed is spurious: the AVPlayerItem goes .status = .failed (or the engine publishes .failed) on the transient in-range miss, but AVPlayer.timeControlStatus never leaves .playing.

    We've worked around it host-side — we now suppress surfacing the failure to the UI while currentAVPlayer.timeControlStatus == .playing (a genuine stall reads .waiting/.paused and still fails through), so it no longer blocks watchability. Flagging it because the engine declaring a terminal .failed while the player demonstrably keeps playing looks like a state-machine inconsistency worth closing on your side — either don't publish .failed while the AVPlayer keeps playing, or recover the published state back to .playing once it does.

    Tie-in to this issue: it's the same in-range loopback 404, on plain DV-P7 playback at ~27s (no seek). Your in-range-miss → 503 fix (244c874) should prevent the AVPlayerItem error in the first place, which would also eliminate this spurious .failed. But the observation is independent of the 404 — an AVIOReader range-read reconnect ("The network connection was lost.") produced the same .failed-while-playing in a second run at ~28s. Note neither run logged a [HLSLocalServer] -> 503 / in-range-miss line, so on our pin this 404 still isn't taking the 244c874 path (consistent with the earlier capture).

  6. superuser404notfound commented on Jun 19, 2026

    @superuser404notfound
    OwnerAuthor

    @rrgomes The spurious-.failed-while-playing finding is the load-bearing one, and it is fixed engine-side now. Thank you for separating it out, that is the right call.

    The state-machine inconsistency (fixed: 426b45c on main)

    You diagnosed it exactly. NativeAVPlayerHost's status observer was the sole runtime source of the published failure, and it surfaced item.status == .failed unconditionally as a terminal engine .error. AVPlayer flips item.status to .failed on transient errors it then self-heals (an in-range loopback 404 it re-requests, or your AVIOReader range-read reconnect), so item.error is non-nil while the player keeps playing straight through from buffer. Publishing that as terminal aborts a session that is demonstrably still running.

    Fix: a genuine fatal failure leaves the player stopped, so the publish is now gated on timeControlStatus. If the player is not playing, the failure surfaces immediately (your "genuine stall reads .waiting/.paused and still fails through" path is preserved). If it is still .playing, the failure is deferred and re-checked after a 5s settle: still playing means it recovered (suppressed, logged deferred failure cleared); stopped means it was real (surfaced, logged deferred failure confirmed). No genuine failure is masked: a startup failure never reached .playing, and a mid-playback fatal stops the player and surfaces on confirmation. A monotonic token plus an item-identity guard cancel a stale confirmation across a new failure or item swap.

    This means you can drop your host-side suppression: the engine no longer declares terminal failure while the AVPlayer keeps playing. It also de-fangs the in-range 404's user impact, since that 404 was only fatal because of this same publish path.

    The 404 itself (Finding A) is still blind

    The 426b45c fix makes the in-range 404 non-fatal, but it does not explain why a request 404s on plain playback, and I would still like to close that. The 2d2845a arrival diagnostics are in your pin, but the last capture pivoted to the state-machine finding and did not include the arrival sequence. On 426b45c (which keeps 2d2845a's arrival lines), the same plain DV-P7 run should now play through rather than abort, and the .info mirror should show:

    1. The last [HLSLocalServer] GET /... arrival before the (now non-fatal) .failed. Is it /segN.mp4, /init.mp4, or /media.m3u8? That names the 404 code path.
    2. The [HLSLocalServer] first request headers line.
    3. If it is /segN.mp4, the segmentCount= on its -> 404/-> 503 response, to confirm whether classifySegmentResponse is hitting .notFound because segmentCount reads <= 0 at that instant.

    The seg0 served loaded=[0.0-32.2] over an advertised 4.0s nominal (an 8x opening GOP) is still my prime structural suspect for a producer-cut-vs-EXTINF mismatch, and the arrival sequence right after seg0 is where that would surface.

    Pin: AetherEngine main 426b45c.

  7. rrgomes commented on Jun 19, 2026

    @rrgomes
    Contributor

    Retested on 426b45c. The DV-P7 title (plain playback, from the start) now plays straight through — ran to 60s clean, seg0–seg16 served in order at a steady 4s cadence, no 404. seg0 was a normal ~4s segment, not the 32s opening GOP from the earlier captures, so Finding A's in-range 404 didn't reproduce this run (consistent with it tracking the abnormal opening GOP).

    The spurious terminal .failed still fires, though. At avpClock=27.3s a .failed surfaced while the AVPlayer kept playing perfectly — clock 24.3→27.3→28.3s smooth, tcs=2/rate=1.0, segments still flowing (seg7 at 32s, seg8 at 36s) — invisible to the user only because we suppress it host-side while timeControlStatus == .playing. Your 426b45c [NativeAVPlayerHost] … deferring possibly-spurious failure line did not fire for it, so this one isn't coming through NativeAVPlayerHost's item.status observer — it's reaching the host via the engine's top-level playback-state publisher. No loopback 404 or other logged error at 27.3s (trigger may be at .verbose), but several AVIOReader "Persistent conn ended: cancelled" reconnects earlier in the session match the "network connection was lost" trigger you noted. So 426b45c closed the item-status path, but a second spurious-.failed path (the overall engine state going .failed while the AVPlayer plays) is still open. We'll keep our host suppression meanwhile. Happy to capture the actual Finding-A 404 arrivals whenever the long-opening-GOP plan recurs.

  8. superuser404notfound commented on Jun 19, 2026

    @superuser404notfound
    OwnerAuthor

    @rrgomes Nailed it, and the missing log line was the tell. The second spurious .failed was not a separate path: it was 426b45c's immediate-surface branch. That branch (timeControlStatus != .playing at the .failed instant) sets failureMessage with no log, so the absence of the "deferring" line read as "different path" when it was actually the same item.status observer taking the unlogged route.

    Root cause: the .failed KVO and the timeControlStatus KVO are not synchronized. A self-healing transient (in-range loopback 404, or your AVIOReader range-read reconnect) fires .failed during a brief .waitingToPlayAtSpecifiedRate blip while the clock never stops, so a single instantaneous timeControlStatus sample at the failure instant is unreliable for the genuine-vs-spurious decision. 426b45c trusted that one sample, so the transient slipped straight through to a terminal publish.

    Fix: d24fd84 on main

    Discriminate on whether playback was ever established, not on an instantaneous transport sample:

    • New hasEverPlayed latch, set on the first .playing transition (reset with the item on a reused host).
    • Before it: a .failed is a genuine startup failure (no recovery expected) and surfaces promptly, same as before.
    • After it: every .failed is treated as possibly-spurious and deferred. At the 5s confirmation a recovered player is one that is .playing or whose renderedTime advanced past the failure point (> 0.5s). Clock progress closes the same instantaneous-sample race on the confirmation side too, so a recovery that happens to dip at the 5s mark is not misread as fatal. Only a player both stopped and not advanced after the settle surfaces the failure.

    Net: no transient that keeps the clock moving can publish terminal .error anymore, regardless of what timeControlStatus reads at any single instant. Genuine startup failures still surface fast (they never reached .playing); a genuine mid-playback fatal stops the clock and surfaces on confirmation. You can keep your host-side suppression as a belt-and-suspenders, but it should now be a no-op.

    One thing your capture confirmed for me along the way: the AVIOReader "Persistent conn ended ... reconnecting" reconnects are the recoverable path, not the fatal readFailed, so for VOD they never set engine state directly. That ruled out a genuinely independent producer-side .failed and pointed back at the publish gate.

    Pin: AetherEngine main d24fd84.

    Finding A (the in-range 404 itself) did not reproduce on your run, consistent with it tracking the abnormal ~32s opening GOP rather than steady-state playback. Whenever that long-opening-GOP plan recurs, the last [HLSLocalServer] GET /... arrival before the (now non-fatal) .failed plus its segmentCount= is still what I need to close it. No rush, since it is no longer fatal to watchability.

  9. superuser404notfound commented on Jun 24, 2026

    @superuser404notfound
    OwnerAuthor

    @rrgomes Any news about this?

  10. rrgomes commented on Jun 24, 2026

    @rrgomes
    Contributor

    Was blocked on the same 3.11.6 pin; now on 3.13.3. In a rapid WT seek-burst stress today I saw a cluster of [Demuxer] Seek … failed: -1 under the burst (~56 in one session, including one phantom target nobody requested), but not the 404 loadFailed signature from this issue, and playback recovered rather than wedging. So I can't confirm the 404 wedge still reproduces on 3.13.3 yet — I'll run a targeted repro of the exact sequence and report back either way.

  11. added a commit that references this issue on Jun 25, 2026
  12. superuser404notfound commented on Jun 26, 2026

    @superuser404notfound
    OwnerAuthor

    @rrgomes Thanks for the update. One thing worth flagging before the targeted repro: you're on 3.13.3, and the loopback-HLS seek-burst work landed on the 4.x line, not the 3.13.x maintenance line, so this issue and its two siblings can't really be exercised on 3.13.3 yet:

    The only source-breaking change between 3.13.x and current is the new PlaybackState.ended case (#63). If your host can absorb that, bumping to 4.5.1 would let you retest #38 / #50 / #65 together against the actually-fixed code rather than the 3.13.3 baseline.

    Separately, the "phantom target nobody requested" in the burst is interesting on its own: that smells like a seek issued from stale state, which is exactly what several of the 4.2.x fixes target. If it resurfaces on 4.5.1, a trace of the Seek ... failed: -1 cluster including the unrequested target's value would help a lot.

  13. superuser404notfound commented on Jul 31, 2026

    @superuser404notfound
    OwnerAuthor

    Checking back on this one. The current release is 6.3.0, and this issue plus its two siblings are still measured against 3.13.3, where none of the fixes exist.

    The migration cost has stayed small, which is worth stating precisely since it is the thing that has been holding the retest. Between 3.13.x and 6.3.0 there are exactly three source-breaking changes:

    1. PlaybackState gains .ended (4.0.0). An exhaustive switch without @unknown default needs the new case.
    2. setNativeSubtitleForPiP(_:) renamed to setNativeSubtitleRendering(_:) (5.0.0). Pure rename, no behavior change.
    3. The tvOS floor moved to 17.0 (6.0.0), a correction to a manifest that claimed 16.0 while the binaries never supported it.

    Nothing else was removed or renamed in three major versions.

    If the seek-burst wedge no longer reproduces on a current pin, closing this is fine and a fresh issue with the trace is the better home for anything that resurfaces. If it does still reproduce, the Seek ... failed: -1 cluster including the unrequested target's value is the artifact that would move it forward.

  14. rrgomes commented on Jul 31, 2026

    @rrgomes
    Contributor

    We are not on 3.13.3 any more — that reading is out of date. This fork has been on the 4.x/5.x/6.x line for some time and is currently pinned to 6.2.1, so all three fixes have been in place here for a while.

    The seek-burst wedge has not recurred. The only loadFailed entries in our retained logs are our own host-side error type — a debug lever and our engine-wedge escalation — not the 404 path this issue describes, and the most recent is 2026-07-22, before the current pin.

    Happy for this to be closed. If it resurfaces we will open a fresh issue with the Seek ... failed: -1 cluster and the unrequested target's value.

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