Skip to content

fix(agc): keep capture trace output nonfatal - #10760

Merged
oneandonlydean merged 5 commits into
boykopovar:mainfrom
lgqdaxia:codex/fix-capture-trace-backpressure
Nov 2, 2026
Merged

oneandonlydean merged 5 commits into
boykopovar:mainfrom
lgqdaxia:codex/fix-capture-trace-backpressure

Conversation

@lgqdaxia

@lgqdaxia lgqdaxia commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

What

Capture tracing can throw when its 16 MiB pending queue fills, or stop the process when file output fails. This implements the drop-and-count policy requested in #10753.

  • A full queue drops new records and counts them. The next drained batch writes capture-trace-dropped records=N; normal shutdown writes capture-trace-summary dropped=N. Accepted records and loss markers keep their order. After a drop, new records remain rejected until the next drain.
  • A failed write or flush disables tracing, clears the pending queue and reports one error to stderr. Later calls return without queueing output. Direct stream-state checks also cover the project's runtime without relying on exception unwinding. Oversized formatted records count as lost.
  • The pending queue remains bounded at 16 MiB; the writer can hold another batch plus marker overhead. A native file I/O call that never returns can still delay shutdown while it joins the writer. That limitation remains in the debt entry; no I/O cancellation is claimed.

This rebase resolves a context conflict in the technical-debt list and retains both the new upstream entry and this PR's trace-output limitation. The capture header, both C++ fixtures, failure wrapper and tests/cmake/agc_capture_trace_tests.cmake are byte-identical to previous published head 6d26a5b8eb. All five topic commits are retained; the production behavior is unchanged. The AGC root CMake file and all upstream debt content are retained.

AI-assisted: Codex

Tested

Current local validation is for head b2ab7b2dc61b35a3b2db107341b3c4ef624fbe9d, based on main e53aff3f560e05730a608f7fb3084f2010abfacb.

  • Windows 11, WinLibs GCC 15.2.0/UCRT r7, CMake 4.3.1, Ninja Release: regenerated the real project configuration with BUILD_TESTING=ON. tools/check_test_registration.py passes, checking 1,694 test executables. Built all three capture-trace targets and their dependencies, including the project's libc.
  • 16 capture-trace CTests plus public_headers pass (17/17), zero skipped. This includes host-runtime and project-runtime write/flush failure cases. Total CTest time was 44.42 s. This is a focused build/test run, not a full product build or complete CTest suite. These CPU fixtures do not initialize Vulkan; no GPU execution or performance result is claimed.
  • All five implementation/test/registration files are byte-identical to old head 6d26a5b8ebaa75a2e3c517c809ea045b1b6b47b4. Removing this PR's single trace-output debt entry reproduces main's debt file byte-for-byte. Conventions, whitespace checks and a merge-tree check against the stated main pass.

The earlier isolated host-runtime comparison remains pinned to main 9fe758d7520eb0c33f3df8bef539064b40bd523f and head 6d26a5b8eb: eight common capture tests passed 8/8 on each. That is historical comparison evidence, separate from the current configured project-runtime tests above.

Historical hosted evidence remains pinned to its original versions: Build 40572948350 tested old head c4ad483347 merged into main d13b3d7c55. Both platforms built the product/libraries and passed all 16 capture tests. Linux recorded 2483 passed / 97 skipped; Windows recorded 1848 passed / 832 skipped / 1 failed (guest_raise_exception). The overall run failed.

The independent Windows comparison and NVIDIA contributor report in this discussion also concern old head c4ad483347. They are not new-head validation or full upstream CI approval. No full hosted CI, new Linux/macOS runtime, game capture, real SMB throughput or cancellation of permanently blocked native I/O is claimed for this rebase.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: Fixes AGC: capture-trace queue overflow aborts PPSA99902 at title screen (SMB output) #10753
  • Unblocks: none
  • GPUs tested: n/a; current validation is CPU-only capture logging
  • AI-assisted: yes; Codex

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The happy-path backpressure test is useful, and I verified that the worker’s 100 ms timed wait drains a full queue even when it is below the normal 64 KiB notify threshold. I found an unhandled writer-error path in the new wait protocol:

  1. run() swaps pending into batch and notifies spaceAvailable.
  2. A waiting producer wakes and can fill pending back to the limit.
  3. If output.write() or output.flush() then throws, the catch calls std::terminate() and the worker exits without notifying spaceAvailable again.
  4. The producer’s predicate only checks queue size, so it can remain blocked forever; the destructor can also wait indefinitely if this occurs during shutdown.

The PR says file-write errors retain their existing behavior, but the new condition-variable wait adds a stranded-waiter case on that existing fatal path. Please either make writer failure a synchronized terminal predicate that wakes all waiters (and ensure shutdown handles it consistently), or demonstrate with a deterministic failing stream test that this state cannot occur. Please add a focused regression for writer failure; the current test only exercises a recovering sink. I have not modified your branch.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7622 core/libs/prx/libSceAgcDriver/Execution/include/CaptureTrace.hpp L60-61
PR 12452 docs/dev/debt/libSceAgcDriver.md L120-121
PR 12567 docs/dev/debt/libSceAgcDriver.md L120-121
PR 14982 core/libs/prx/libSceAgcDriver/Execution/include/CaptureTrace.hpp L60, L94-96

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6987 docs/dev/debt/libSceAgcDriver.md
PR 6989 docs/dev/debt/libSceAgcDriver.md
PR 6995 docs/dev/debt/libSceAgcDriver.md
PR 7002 docs/dev/debt/libSceAgcDriver.md
PR 7085 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 8707 docs/dev/debt/libSceAgcDriver.md
PR 9020 docs/dev/debt/libSceAgcDriver.md
PR 9318 docs/dev/debt/libSceAgcDriver.md
PR 9335 docs/dev/debt/libSceAgcDriver.md
PR 9356 docs/dev/debt/libSceAgcDriver.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9508 docs/dev/debt/libSceAgcDriver.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9672 docs/dev/debt/libSceAgcDriver.md
PR 9673 docs/dev/debt/libSceAgcDriver.md
PR 9675 docs/dev/debt/libSceAgcDriver.md
PR 9700 docs/dev/debt/libSceAgcDriver.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9891 docs/dev/debt/libSceAgcDriver.md
PR 9892 docs/dev/debt/libSceAgcDriver.md
PR 9895 docs/dev/debt/libSceAgcDriver.md
PR 9898 docs/dev/debt/libSceAgcDriver.md
PR 9915 docs/dev/debt/libSceAgcDriver.md
PR 9950 docs/dev/debt/libSceAgcDriver.md
PR 10049 docs/dev/debt/libSceAgcDriver.md
PR 10064 docs/dev/debt/libSceAgcDriver.md
PR 10193 docs/dev/debt/libSceAgcDriver.md
PR 10233 docs/dev/debt/libSceAgcDriver.md
PR 10256 docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10743 docs/dev/debt/libSceAgcDriver.md
PR 11825 docs/dev/debt/libSceAgcDriver.md
PR 11998 docs/dev/debt/libSceAgcDriver.md
PR 12120 docs/dev/debt/libSceAgcDriver.md
PR 12568 docs/dev/debt/libSceAgcDriver.md
PR 12840 docs/dev/debt/libSceAgcDriver.md
PR 13599 docs/dev/debt/libSceAgcDriver.md
PR 13707 docs/dev/debt/libSceAgcDriver.md
PR 13793 docs/dev/debt/libSceAgcDriver.md
PR 13809 docs/dev/debt/libSceAgcDriver.md
PR 13858 docs/dev/debt/libSceAgcDriver.md
PR 13863 docs/dev/debt/libSceAgcDriver.md
PR 13920 docs/dev/debt/libSceAgcDriver.md
PR 13928 docs/dev/debt/libSceAgcDriver.md
PR 13929 docs/dev/debt/libSceAgcDriver.md
PR 13963 docs/dev/debt/libSceAgcDriver.md
PR 14005 docs/dev/debt/libSceAgcDriver.md
PR 14212 docs/dev/debt/libSceAgcDriver.md
PR 14302 docs/dev/debt/libSceAgcDriver.md
PR 14311 docs/dev/debt/libSceAgcDriver.md
PR 14344 docs/dev/debt/libSceAgcDriver.md
PR 14943 docs/dev/debt/libSceAgcDriver.md
PR 14944 docs/dev/debt/libSceAgcDriver.md

@lgqdaxia

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Thanks for asking for this check. I added write-failure and flush-failure tests in 58afe45.

Each test holds the writer, fills the queue, starts four producers, and checks that none can finish. It then makes the stream return a short write or a failed flush. To pass, the child must reach the real writer catch, call the saved original terminate handler, and exit with the same result as an abort control. A random crash or timeout does not count.

All 11 capture-trace tests pass locally on Windows, and both new cases passed 10 consecutive runs. I also tried a temporary copy where the catch returns instead of calling terminate: both tests failed through the watchdog, with the producers still waiting.

One clarification: std::terminate() ends the whole process; it does not just exit the writer thread. I kept the existing fatal file-error policy, since this test did not reproduce a surviving process stuck on that path.

There is a coverage limit: these are host-runtime component tests using the production header. With the project's current Windows libc linked, my separate probe exits earlier with has no unwind data, before reaching this catch. I have documented that in the PR and am not counting it as successful catch-path coverage under the project's runtime. I have not tested a game or a real SMB share.

This investigation and the new tests were AI-assisted with Codex.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rechecked exact head 58afe4560099d805edf020ae603e84a5fec063d6. The added writer-failure tests address the stranded-producer concern: they fill the bounded queue, verify four producers remain blocked, then trigger both a short write and a failed flush through the production CaptureTrace::run() catch and require the saved terminate handler to abort. The fixture distinguishes setup failure, watchdog exit, handler return, and the abort control result. The PR also clearly limits this evidence: the failure target uses the host C++ runtime; the separate probe with the project's Windows libc did not reach the catch, and that path is not claimed as covered.

I independently compiled CaptureTrace.cpp and CaptureTraceFailure.cpp from this exact head on Linux with g++ -std=c++20 -Wall -Wextra -Werror -pthread. The queue-backpressure case passed, and the CMake failure harness passed both write and flush modes. tools/check_conventions.py --base upstream/main --head upstream/pr/10760 and git diff --check pass. Hosted conventions and labels pass; the product build/test jobs are skipped by path filters, so I am not claiming hosted product coverage. The author reports the full Windows library/relinker builds and focused Windows suite in the PR description.

@lgqdaxia
lgqdaxia marked this pull request as ready for review October 24, 2026 23:49
@github-actions github-actions Bot added the fix error Closes an issue (Fixes #N) label Oct 24, 2026
@oneandonlydean oneandonlydean self-assigned this Oct 25, 2026
@Amoenus

Amoenus commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Independently checked hosted evidence — 28 October 2026

I checked the eligibility log: this run selects only #10760 at c4ad483347359e4df0951220d4ca6394a052bc47, merged for CI into main d13b3d7c55a433c7a5040076d849dbe59fad4b53.

This is an independent inspection of the hosted logs, not a new local execution, full green CI, GPU/Sonic validation or performance measurement. It supersedes the request for a first new hosted run, while retaining the unsuccessful overall Windows result. The maintainer's drop-and-count/nonfatal-writer contract is settled; #10760 remains the proposed fix and the issue remains open pending merge. AI-assisted:yes(Codex).

Earlier standalone validation, at its original proposal/head

Independent synthetic validation of 58afe4560099, from the reporter of #10753:

  • Windows 11 Enterprise 26200, WinLibs GCC 15.2.0/UCRT r7: 11/11 CPU fixtures pass, maximum CTest 1.48 s. This includes the paused-writer/four-producer recovery/order case and both write/flush failure wrappers with their abort controls.
  • A separate deliberately invalid header copy changes the worker's fatal catch to return. Both unchanged failure wrappers reject it after their watchdog; that mutation was used only as a negative test control.

I compiled your pinned public header/fixtures as standalone host-runtime executables, with no AnyPS5 replacement libc or driver linkage. Scratch files were on our NAS, but the paused/failing sinks are synthetic buffers: this is not an SMB-throughput test, full configured PR build, game/GPU validation, or approval of the logging policy. Your documented possibility of stalled callers/shutdown remains a maintainer decision in #10753. No composition branch was changed for this check.

AI-assisted: yes (Codex).

@janzezno

Copy link
Copy Markdown
Contributor

@lgqdaxia #11157 (Linux frame capture) and this PR touch the same spot in docs/dev/debt/libSceAgcDriver.md: your "Capture trace output" entry goes in right above the "Frame capture" entry, and #11157 rewrites that entry. Nothing else overlaps, and neither change depends on the other.

I'm happy with either order: whichever merges second rebases and keeps both entries (yours first, then the rewritten "Frame capture" one). No Depends on either way. If that works for you, I'll record it in #11157's Overlap line.

Unrelated small thing I noticed while reading it: the entry is followed by an empty line, which splits the Functional list in two when rendered.

@lgqdaxia

Copy link
Copy Markdown
Contributor Author

Agreed, @janzezno. I checked #11157's changed files and patches: the production changes are independent, and the CMake test additions are in separate sections.

Let's keep both PRs independent, with no Depends on, and let whichever is ready first merge. The second branch rebases and retains both debt entries, with Capture trace output immediately above the updated Frame capture entry. I'll handle that rebase for #10760 if it merges second. You can record this agreement in #11157's overlap note.

I also removed the extra blank line in 29c4b17a3c. That commit only deletes the blank line; production and test sources are unchanged. Conventions and git diff --check pass.

AI-assisted: Codex

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@lgqdaxia Thanks for picking this up. I've answered the policy question on #10753: a trace must never stop or stall the program, so when the queue is full it should drop new records and count them rather than wait. Could you change the PR to:

  • drop records once the queue is full, keep a dropped count, and write it into the trace (a marker when output resumes and a total at shutdown);
  • end tracing with a logged error on a write or flush failure instead of stopping the process;
  • adapt the tests: a paused writer with a full queue must not block the callers, and the trace must record how many records were lost.

The queue limit can stay as it is.

@lgqdaxia
lgqdaxia force-pushed the codex/fix-capture-trace-backpressure branch from 29c4b17 to efb3dc3 Compare October 25, 2026 23:29
lgqdaxia added a commit to lgqdaxia/AnyPS5 that referenced this pull request Oct 25, 2026
Follow the capture policy requested in boykopovar#10753 and boykopovar#10760. Keep queue callers running, record loss markers and totals, and disable failed output without relying on stream exceptions.

AI-assisted: Codex
@lgqdaxia lgqdaxia changed the title fix(agc): wait when the capture trace queue is full fix(agc): keep capture trace output nonfatal Oct 25, 2026
@lgqdaxia

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Updated in efb3dc3e36 and rebased onto main 1997e647f9.

The queue now drops new records and counts them. When the writer resumes, the trace gets a capture-trace-dropped records=N marker; normal shutdown writes capture-trace-summary dropped=N. The pending limit stays at 16 MiB. The tests hold the writer paused and require all four callers to return before it is released, then check the exact lost count and record order. A two-period case checks 257 + 69 = 326 at shutdown.

Write and flush errors now stop tracing and log one error instead of terminating the process. I changed this to direct stream-state checks, so it does not need the exception path that had limited the earlier Windows tests. Both failures now pass with the host runtime and the project's own Windows libc, including later calls doing no more output and normal destruction.

Full Windows library/relinker builds and 18 selected checks pass. Linux actual-header host components pass 14/14, plus a real /dev/full failure check. The PR body now describes the current behavior and test limits. These are CPU checks, not game, GPU or real SMB validation. A permanently stuck native write can still delay shutdown's join; that limitation remains in the debt entry.

AI-assisted: Codex

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 26, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@lgqdaxia Thanks for the drop-and-count rework. CI on efb3dc3e36 (run 40277848421) fails on both Linux and Windows before any test runs, at the test registration check:

error: agc_capture_trace_failure_tests is built but no ctest test runs it
error: agc_capture_trace_runtime_failure_tests is built but no ctest test runs it

The four agc_capture_trace_{write,flush}_failure[_runtime] tests do run them, but only through -DFIXTURE=$<TARGET_FILE:...> (core/libs/prx/libSceAgcDriver/CMakeLists.txt:633 and :640). tools/check_test_registration.py skips any argument that starts with -, so it never sees those two executables. Could you pass the fixture as a plain argument after the script instead, e.g. -P ".../tests/CaptureTraceFailure.cmake" "$<TARGET_FILE:agc_capture_trace_failure_tests>", and read it from CMAKE_ARGV<n> in CaptureTraceFailure.cmake? Any form where the executable path appears as a plain add_test argument will do.

The branch also conflicts with main again, so please rebase while you're at it. python3 tools/check_test_registration.py build on a configured build should then report nothing new, and we'll rerun full CI on the new head.

@lgqdaxia
lgqdaxia force-pushed the codex/fix-capture-trace-backpressure branch from efb3dc3 to 48f7852 Compare October 26, 2026 08:41
lgqdaxia added a commit to lgqdaxia/AnyPS5 that referenced this pull request Oct 26, 2026
Follow the capture policy requested in boykopovar#10753 and boykopovar#10760. Keep queue callers running, record loss markers and totals, and disable failed output without relying on stream exceptions.

AI-assisted: Codex
@lgqdaxia

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Thanks, you're right. The fixtures ran locally, but I had missed running the registration audit.

Fixed in 48f785262b. Both add_test commands now pass the executable, mode and output directory as plain arguments after -P CaptureTraceFailure.cmake; the script reads CMAKE_ARGV3 through CMAKE_ARGV5.

I reproduced the two registration errors before the change. After reconfiguring, the full Windows build's registration audit reports 1383 test executables, 0 unregistered. Rebuilt the three capture targets and their dependencies; all 16 capture CTests pass, including all four host/project-runtime write/flush cases. On WSL Linux, the actual source and wrapper also pass both host failure tests with a spaced output path; this is component coverage, not a full Linux product build.

Rebased onto main b27cc8416f and kept its updated debt text. The capture header and C++ fixtures are unchanged from efb3dc3e36. Conventions and diff checks pass. The PR body separates these new checks from the earlier broader build results; the new head is ready for full CI.

AI-assisted: Codex

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 26, 2026
@lgqdaxia

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Following up on Build 40458520694: Linux and Windows both passed the registration audit, completed the product compilation and libs build, and passed all 16 capture-trace tests on each platform.

Both jobs failed the same public-header declaration audit, leaving 64 dependent checks per platform not run. The same failure reproduces on the unmodified tested main 32906a0659a5, without this PR.

#11718 has since fixed that duplicate declaration. The source-only audit passes on main 81267b2204e4; that does not establish a new product build or full CI pass. I've updated the PR's test summary with these results and limits. The capture branch is unchanged at 48f785262b5d.

If another run is not already queued, could you start a new full CI run on this head against the fixed main when capacity allows?

AI-assisted: Codex

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 27, 2026
@lgqdaxia

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Rebased onto main 801d5b9bc110 after #11157 merged. The new head is c4ad483347359e4df0951220d4ca6394a052bc47.

The manual conflicts were only in the debt file. Both the updated Linux frame-capture entry and our trace-output entry are retained. The capture header, C++ fixtures and failure wrapper are unchanged from 48f785262b5d.

On the rebased Windows project configuration, the registration audit passes; all three capture targets build, and 16 capture tests plus the public-header audit pass (17/17). The public-header audit took 60.78 s locally. A separate CPU-only host comparison passes the same eight common tests on main and the change. These checks do not establish a full product build, GPU/game validation or a new hosted CI pass.

I've updated the PR's validation summary and kept the previous hosted results clearly marked as historical. If a run on this new head is not already queued, could you start a new full CI run when capacity allows?

AI-assisted: Codex

lgqdaxia added a commit to lgqdaxia/AnyPS5 that referenced this pull request Oct 27, 2026
Follow the capture policy requested in boykopovar#10753 and boykopovar#10760. Keep queue callers running, record loss markers and totals, and disable failed output without relying on stream exceptions.

AI-assisted: Codex
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 27, 2026
@lgqdaxia

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Following up on Build 40572948350, which has now finished on current head c4ad483347359e4df0951220d4ca6394a052bc47 merged into main d13b3d7c55a433c7a5040076d849dbe59fad4b53:

  • Linux and Windows completed product compilation and libs, and both passed all 16 capture-trace tests.
  • Linux's CTest records 2483 passed, 97 skipped, 0 failed; the Linux job succeeded.
  • Windows records 1848 passed, 832 skipped, 1 failed. The failure is guest_raise_exception (exit 0xc0000409), with sceKernelRaiseException: cannot suspend the target thread.

The earlier run 40528015978 has the same diagnostic; I checked its eligibility log and it selects only #10743, without this PR. This matches the symptom described in the existing #12069 Windows thread-exit fix proposal. I have not locally reproduced that race or tested #12069, so I am not claiming that proposed fix or a combined stack is validated.

I have updated the PR's validation summary and left the capture branch unchanged. The overall Build remains failed; the skipped checks and passing capture tests are not a full CI or GPU/game pass.

AI-assisted: Codex

@lgqdaxia

Copy link
Copy Markdown
Contributor Author

@oneandonlydean The Windows thread-exit fix in #12069, which targets the diagnostic seen in Build 40572948350, has now merged into main as e4a00a5ddb8581a1c198682b406bf6a33b467149.

Our capture head is unchanged at c4ad483347359e4df0951220d4ca6394a052bc47. If another full run on this head is not already queued, could you rerun full CI against the updated main when capacity allows? That combination still needs fresh verification.

AI-assisted: Codex

@chitters2004

Copy link
Copy Markdown
Contributor

@oneandonlydean @lgqdaxia, a Windows run of this head on main with #12069 in it, in case it saves a CI round.

Windows 11 26220, Ryzen 7 5800X, RTX 3080, WinLibs GCC 15.2, Release, full builds with submodules at their pinned commits, validation layers on, ctest -R "capture_trace|^guest_raise_exception$" -V:

capture-trace tests guest_raise_exception
main bb04a4f1ea 8/8 aborted, 0xc0000409
c4ad483347 merged into it (5f5e0be7d8) 16/16 aborted, 0xc0000409

guest_raise_exception fails the same way with and without this PR. The earlier diagnostic, cannot suspend the target thread, no longer appears, so #12069 did fix that. The abort now is address waking round N: the handler did not run within 5 s, which is #11813, a main issue in sceKernelSyncOnAddressWake raise delivery that #12005 proposes to fix. This PR doesn't touch libkernel, so I don't think that failure should hold it.

AI-assisted: yes (Claude Code)

@TechLevelZero

TechLevelZero commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head c4ad483 merged onto main 6b48aee · tested 2026-10-31 01:46 UTC · 26 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,416 passed · 4 failed (0 new, 3 also fail on main, 1 unstable on main) · 42 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,462 of 3,041 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (916 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_bda_device 54.7 s, ⚠️ agc_driver_graphics_maps_fallback 31.0 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_submit_progress: failed in 6 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (8, not in the main baseline's validation pass)
agc_capture_trace_flush_failure
agc_capture_trace_flush_failure_runtime
agc_capture_trace_format_overflow
agc_capture_trace_queue_drop
agc_capture_trace_queue_drop_cumulative
agc_capture_trace_queue_drop_shutdown
agc_capture_trace_write_failure
agc_capture_trace_write_failure_runtime
Validation IDs already present on main (4 IDs in 422 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (422 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_array_layer_target_cpu, agc_driver_bda_span_reads_draw_pipeline, agc_driver_bindless_images, agc_driver_branch_past_endpgm, and 414 more
VUID-vkCmdCopyImage-srcImage-01548 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-vkCmdCopyImage-srcImage-01551 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
Skipped (42)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fresh: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or plat
Reproduce
git fetch origin c4ad483347359e4df0951220d4ca6394a052bc47 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827
git checkout 6b48aee5d2ea9fce6155163d78f8ce8dc84f7827 && git merge --no-ff c4ad483347359e4df0951220d4ca6394a052bc47
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 31, 2026
@lgqdaxia
lgqdaxia force-pushed the codex/fix-capture-trace-backpressure branch from c4ad483 to 6d26a5b Compare October 31, 2026 21:02
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 31, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

The exact head bounds capture-trace queue growth, records losses in order, and disables tracing after output failures; the relevant focused tests are registered, and I found no blocking issue.

What I ran

Reviewed head 6d26a5b8ebaa75a2e3c517c809ea045b1b6b47b4. The PR's API base is 684dfc1d561d09a8c35c7c153c95bcfed7e49896; a merge preview against current main 6190e0efeb2e686e763a00518547b593f23ff163 was clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No build or C++ test binary was run locally.

git diff --check 684dfc1d561d09a8c35c7c153c95bcfed7e49896...6d26a5b8ebaa75a2e3c517c809ea045b1b6b47b4
python3 tools/check_conventions.py --base 684dfc1d561d09a8c35c7c153c95bcfed7e49896 --head 6d26a5b8ebaa75a2e3c517c809ea045b1b6b47b4
python3 tools/pr_stack_check.py 10760 --repo boykopovar/AnyPS5
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/prx/libSceAgcDriver/tests/CaptureTrace.cpp core/libs/prx/libSceAgcDriver/tests/CaptureTraceFailure.cmake core/libs/prx/libSceAgcDriver/tests/CaptureTraceFailure.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_capture_trace_tests.cmake

Results

Check Result
Diff and conventions Passed.
Current-main merge preview Clean; no declared dependency.
Test registration and assertions The heuristic flagged two C++ test paths because it searches for literal source paths. I verified the fragment is included through the tests/cmake/*.cmake CMake glob and registers both executables; queue tests check bounds, loss counts, record ordering, recovery and shutdown.
Hosted CI Current-head conventions and labels checks pass. No product build/test job is present in the hosted snapshot.
Focused Windows validation The PR description reports the three capture targets built and 17/17 capture/header CTests passed on this head; it also reports eight common capture tests passing on both main and this head. These are author-reported, not runs I independently performed.
Precheck helper availability The precheck's isolated snapshot did not contain workspace-only pr_abi_audit.py and pr_test_quality.py; those two helper invocations failed to start. ABI auditing is not applicable to these non-export changes.
Test-quality heuristic output
{
  "findings": [
    {
      "path": "core/libs/prx/libSceAgcDriver/tests/CaptureTrace.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    },
    {
      "path": "core/libs/prx/libSceAgcDriver/tests/CaptureTraceFailure.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

Sources

Not verified

I did not build locally or run the C++ tests, and did not independently verify Linux/macOS, GPU, or console behavior. The author-reported Windows and paired common-test results above remain unverified by me.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 6d26a5b merged onto main 3741ca9 · tested 2026-11-01 09:13 UTC · 19 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,479 passed · 6 failed (0 new, 3 also fail on main, 3 unstable on main) · 44 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,529 of 3,121 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (937 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 79.0 s, ⚠️ agc_driver_lookup_log_fits_build 42.5 s, ⚠️ agc_driver_graphics_maps_fallback 33.5 s, ⚠️ agc_driver_image_table 30.4 s
Intermittent validation messages (1, seen once in the parallel run, not reproduced when the test was re-run alone 2 times; not counted against this PR)
agc_driver_depth_clear_hle: VUID-vkCmdCopyBuffer-commonparent (6x)
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_clear_hle: failed in 2 of the last 10 main runs
agc_submit_progress: failed in 6 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 8 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (5 IDs in 486 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (486 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 478 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (44)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fresh: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_f
Reproduce
git fetch origin 6d26a5b8ebaa75a2e3c517c809ea045b1b6b47b4 3741ca9327246d0df81638726a986cef862b6db5
git checkout 3741ca9327246d0df81638726a986cef862b6db5 && git merge --no-ff 6d26a5b8ebaa75a2e3c517c809ea045b1b6b47b4
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 1, 2026
lgqdaxia and others added 5 commits November 1, 2026 12:33
Wait for the writer to take a batch instead of throwing when the pending queue is full. Add a controlled-sink test with four producers and check that records stay complete and ordered.

AI-assisted: yes
Remove the extra blank line between capture trace output and frame capture. The independent changes in boykopovar#11157 may merge in either order; the second branch keeps both entries when rebasing.

AI-assisted: Codex
Follow the capture policy requested in boykopovar#10753 and boykopovar#10760. Keep queue callers running, record loss markers and totals, and disable failed output without relying on stream exceptions.

AI-assisted: Codex
@lgqdaxia
lgqdaxia force-pushed the codex/fix-capture-trace-backpressure branch from 6d26a5b to b2ab7b2 Compare November 1, 2026 11:41
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 1, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head b2ab7b2 merged onto main f2d874c · tested 2026-11-01 22:48 UTC · 22 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,505 passed · 6 failed (0 new, 4 also fail on main, 2 unstable on main) · 46 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,557 of 3,168 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (944 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ agc_driver_lookup_log_fits_build 90.3 s, ⚠️ agc_driver_graphics_maps_fallback 31.0 s
Intermittent validation messages (1, seen once in the parallel run, not reproduced when the test was re-run alone 2 times; not counted against this PR)
agc_driver_depth_clear_hle: VUID-vkCmdCopyBuffer-commonparent (6x)
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_depth_clear_hle: failed in 1 of the last 10 main runs
agc_driver_pipeline_journal: failed in 1 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_dcc_keys_first_write
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (5 IDs in 484 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (484 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 476 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (46)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_pipeline_binary_vulkan: skipped, the device lacks VK_KHR_pipeline_binary
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fps_limit: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL
Reproduce
git fetch origin b2ab7b2dc61b35a3b2db107341b3c4ef624fbe9d f2d874c1fdccf781c0fa5d86619bb5dd8894b958
git checkout f2d874c1fdccf781c0fa5d86619bb5dd8894b958 && git merge --no-ff b2ab7b2dc61b35a3b2db107341b3c4ef624fbe9d
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@oneandonlydean
oneandonlydean merged commit d4ee73b into boykopovar:main Nov 2, 2026
3 of 4 checks passed
@lgqdaxia
lgqdaxia deleted the codex/fix-capture-trace-backpressure branch November 28, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs fix error Closes an issue (Fixes #N)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGC: capture-trace queue overflow aborts PPSA99902 at title screen (SMB output)

7 participants