Skip to content

fix(diagnostics): preserve the custom-source probe failure cause - #745

Merged
superuser404notfound merged 1 commit into
superuser404notfound:mainfrom
yucelokan:fix/custom-source-probe-error-cause
Oct 13, 2026
Merged

superuser404notfound merged 1 commit into
superuser404notfound:mainfrom
yucelokan:fix/custom-source-probe-error-cause

Conversation

@yucelokan

@yucelokan yucelokan commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Preserve the original probe error when a custom source cannot open. Hosts observing the terminal state can inspect the underlying domain/code instead of losing the cause behind a generic message.

What changed

  • Pass the captured probe failure into the existing customSourceProbeFailed publication.
  • Exercise an empty MPEG-TS custom reader through the real load path and assert that errorInfo is populated before the terminal state callback.
  • Document the existing error contract; no new public API.

Test plan

  • Device / OS: Apple Silicon Mac, macOS 27.0.1; Xcode 27.0 / Swift 6.4.
  • Source media: empty in-memory custom reader with mpegts hint; deliberately no decodable video/audio/HDR. This verifies the failed-probe path, not format support.
  • Result: Prior PR revision: full swift test --jobs 4 --disable-automatic-resolution passed (764 XCTest cases, one skipped; 4,298 Swift Testing cases reported, with fixture-dependent skips). swift build --jobs 4 --disable-automatic-resolution, doc-link checks and git diff --check also passed.
  • Physical-device integration: the combined downstream fork was also run on a real iPhone (iOS 26.6.1) and Apple TV (tvOS 27.0) on 12 October 2026, using live MPEG-TS / H.264 High / AAC-LC stereo / SDR. Those successful playback sessions are integration evidence; they did not intentionally trigger this failed-probe case.

Current-main integration, 12 October 2026

Rebased this standalone PR onto upstream main 004eea20 (FFmpegBuild 3.7.1). Its complete macOS package/CLI/example build, documentation links and whitespace checks passed locally; the full-suite figures above describe the previous PR revision. Current-head CI supplies the full tests and platform matrix.

Additional integrated-fork device sessions used Apple TV / tvOS 27.0 and iPad / iOS 26.6.1 concurrently: private MPEG-TS channels, H.264 High Level 4.0 / 1920×1080 / 25 fps / SDR + AAC-LC stereo 48 kHz. Four repeated-source intervals were removed without sampled backward clocks, restarts or software fallback. Video-only gaps exposed an outgoing-PES interleaving edge case; that correction and its diagnostics are kept in #747. These are integrated device results, not isolated trigger coverage for every PR.

Current-head CI: fd9c9212 passed all four checks: macOS full/strict-pool tests, iOS Simulator plus release CLI, tvOS/visionOS Simulator, and documentation links.

Checklist

  • CHANGELOG.md updated
  • Commit messages follow Conventional Commits (fix(...))
  • The fix lives in the engine, not in a host-side workaround
  • Public API changes are intentional and documented

Four-device integration follow-up (12 October 2026)

The integrated downstream build containing this PR was exercised on an iPhone/iOS 26.6.1, iPad/iPadOS 26.6.1, Apple TV/tvOS 27.0 and a Mac running the iPad-compatible app/macOS 27.0.1. The sanitized device, media and scenario report covers 8,246 current-build diagnostic records, 27 verified replay removals, live seeking and VOD/PiP use.

The remaining decoded-video boundary defects and recovery correction are in #747; this PR's code and standalone validation remain unchanged. These integration logs are not an isolated physical-device proof of this PR's specific failure path. No private source URLs, credentials or media are included.

@yucelokan
yucelokan force-pushed the fix/custom-source-probe-error-cause branch from cf169da to fd9c921 Compare October 12, 2026 12:20
yucelokan added a commit to yucelokan/AetherEngine that referenced this pull request Oct 12, 2026
Integrate the published release and FFmpegBuild 3.7.1 while retaining the
independently offered probe diagnostics, callback-priority, live replay and
playlist-renewal contributions. Preserve upstream dependency ranges and
exclude unreleased main-only changes.

Keep the final cadence-aware outgoing-PES correction and scope native frame
diagnostics to APIs available on each platform, including visionOS.
All runtime source differences are covered by PRs superuser404notfound#745 through superuser404notfound#748.

Validation: 778 XCTest cases (one optional skip), 4,360 Swift Testing cases,
99 strict-pool regressions, and iOS/tvOS/visionOS library builds passed.
@superuser404notfound
superuser404notfound merged commit 4a5b758 into superuser404notfound:main Oct 13, 2026
4 checks passed
superuser404notfound pushed a commit that referenced this pull request Oct 13, 2026
The PR branched before 7.35.0 was cut, so the merge put its line under
that release's Fixed section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WJcXkGQrMiBPixVEFTSBJS
@superuser404notfound

Copy link
Copy Markdown
Owner

Merged in 4a5b758, thank you. The one-line change is exactly where the cause was being dropped, and the test drives the real load path, which is the part that matters here.

One follow-up on our side: the branch predated the 7.35.0 cut, so the CHANGELOG line landed under 7.35.0 after the merge. 67fdcee moves it to Unreleased / Fixed. It ships with the next release.

yucelokan added a commit to yucelokan/AetherEngine that referenced this pull request Oct 13, 2026
Merge upstream main through the post-release superuser404notfound#748 integration, including maintainer follow-ups to superuser404notfound#708–superuser404notfound#717 and superuser404notfound#745–superuser404notfound#748. Runtime sources and tests match upstream; retain only fork provenance and GPL text. Full engine suite, strict-pool replay/recovery/origin tests and iOS/tvOS library builds passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants