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

Closed
opened 2026-10-24 21:33:40 +00:00 by Amoenus · 0 comments
Amoenus commented 2026-10-24 21:33:40 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-24T21:33:40Z.


Current proposal — checked 2 November 2026

#10760 remains open and mergeable at b2ab7b2dc6. Its current description carries the capture-output correction and its source-pinned qualification. The newer head supersedes the former 6d26a5b8 reference; this sweep checks metadata/report state and does not independently rerun its current code. The issue stays open pending merge. Older hosted build logs below retain their original c4ad483347 source pin; no current-head full-suite, title or performance result is inferred from them.

Earlier 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.

  • Linux job: all16 agc_capture_trace_* tests pass, including drop/count/shutdown and host/project-runtime write/flush failure cases. Full CTest:2483passed,97skipped,0failed; job succeeds.
  • Windows job: the same16 capture tests pass. Full CTest:1848passed,832skipped,1failed (guest_raise_exception, 0xc0000409, sceKernelRaiseException: cannot suspend the target thread); job/run fail. This evidence does not establish why that separate test fails or qualify #12069.

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).

Previous evidence and source-pinned history

Prior current-candidate summary — 27 October 2026

The maintainer contract remains: a diagnostic trace must not stop or stall the game. Overflow drops new records and reports counts; writer/flush failure disables tracing and logs an error. #10760 implements that drop-and-count proposal.

The candidate is now c4ad483347359e4df0951220d4ca6394a052bc47, rebased onto main801d after #11157. The author reports debt-only conflict resolution, unchanged capture implementation/fixtures,17/17 local Windows capture/public-header checks and a separate matched eight-test CPU comparison. The public-header audit took60.78s locally; this does not establish the CI timing requirement.

Earlier hosted Linux and Windows builds compiled the product/libs and passed all16 capture tests per platform, then failed the same public-header audit reproduced on tested main. #11718 fixed that declaration on later main; the source audit subsequently passed. These are distinct pins, not a fresh full-CI pass. The author has requested a new maintainer run. Keep open pending merge/qualification; these are contributor results, not independent local runs or a new Sonic result by us. AI-assisted maintenance: yes (Codex).

What happens

With APS5_CAPTURE_TRACE=1 and shader/draw correlation enabled, Sonic reaches PRESS START and then exits with Capture trace queue exceeded 16 MiB while writing its text trace to a writable SMB share. This is a diagnostic-path stop, separate from the title's existing descriptor blocker #3036.

Title, test or build step

Sonic Unleashed Recompiled, PPSA99902; retained application/bundled-module conversion. Dump metadata declares contentVersion 01.003.000 (masterVersion 01.03). Public-source-to-dump version match remains unverified. No controller input sent in the failing run. Bring-up: #4443.

AnyPS5 commit

Frozen fork composition 5fd69399558c, based on main c8d34aa8f4d8058d57169cc1e423ba6db00faaf0; all additional changes. Not an unchanged-main game run. The capture writer header is identical on main and the composition. No claim that #5431 introduced its queue bound.

System

Windows 11 Enterprise 26200; NVIDIA GeForce RTX 5080, driver 610.62 / 32.0.16.1062; MinGW-w64 GCC 15.2.0. Vulkan required, actual selected adapter verified, Khronos validation 1.4.363.0 loaded. No AMD title test for this observation.

Steps to reproduce

  1. Use the retained PPSA99902 application/modules with the composition's rebuilt native libraries and an isolated copy of the initial writable profile. App/native hashes verified before and after.
  2. From the normal runtime directory, launch app.exe with:
$env:APS5_CAPTURE_TRACE = '1'
$env:APS5_TRACE_SHADER_CORRELATION = '1'
$env:APS5_CAPTURE_TRACE_PATH = '\\NAS\share\capture-trace.log'
$env:ANYPS5_GPU = 'NVIDIA GeForce RTX 5080'
$env:ANYPS5_REQUIRE_VULKAN = '1'
$env:VK_INSTANCE_LAYERS = 'VK_LAYER_KHRONOS_validation'
.\app.exe

The SMB path above is a placeholder for the existing writable test share. Sparse upstream frame dumping and ordinary failure logging were also enabled; full recorded settings and artifact identities are linked below. App shader cache/journal initially absent; restored initial guest RADV cache; host driver cache uncontrolled.

Observed once: natural abort after 36.042 seconds, exit 0xc0000409; neither time nor disk cap fired. Last sparse frame014 shows PRESS START. One separate non-capture run stalled after the skip and reached its1800-second cap. A further run on the same source with aggregate wait/driver logs and summary-only profiling reached tutorial NOW LOADING, then naturally aborted at known #3036 after336.222s. Neither result establishes the cause of this capture overflow or a corrective effect of diagnostics. Current bring-up report.

Log

[gpu] driver failure: Capture trace queue exceeded 16 MiB
[videoout] presentation failed: Capture trace queue exceeded 16 MiB
  what():  Capture trace queue exceeded 16 MiB
FATAL: abort() (SIGABRT) on thread 31496

What was checked

  • 98,273,102 bytes / 1,130,141 complete text records written before exit; 679,163 packet, 334,191 buffer-read, 15,733 draw-attempt, 31,466 draw-selected, 15,730 draw-recorded, 3,117 submit-confirmed. Counts describe this capture, not a speed benchmark.
  • Zero Vulkan validation errors/VUIDs or submission watchdogs; ten validation warnings. All 374 pinned application/module/native/root-DLL hashes match after exit.
  • The main writer explicitly throws when its pending queue exceeds 16 MiB. Direct throwing Log callers remain in packet execution and presentation. Best-effort correlation helpers do not make the entire capture non-fatal. The first throwing call is not isolated here.
  • Exact-error and related open/closed issue/PR searches found no matching report. #5786 is a different performance-event buffer. #5431/#5238/#5166 reviewed for diagnostic context.

Question: Is fatal queue overflow the intended policy for opt-in diagnostic capture? Bounded backpressure or explicitly stopping capture could preserve the diagnostic limitation without masking the title's actual blocker. lgqdaxia now proposes bounded backpressure in #10760. Our independent synthetic validation passes its 11 CPU fixtures and rejects two invalid-worker controls, using standalone host-runtime executables. Full configured-runtime/title validation and the blocking-policy decision remain open; this is not a verified fix for the original game run.

Limits: one observed failure on a composed fork; repeatability, unchanged-main game execution, local-disk output, and AMD behavior untested. SMB throughput as the cause is a hypothesis, not established. No regression attribution to #5431, and no fix for #3036 claimed.

Curated evidence and manifest. Full raw trace stays private; no game binaries, serialized shader requests, or memory payloads attached.

AI-assisted: yes (Codex); author responsible.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6017846187 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/10753). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-24T21:33:40Z. --- <!-- codex-10753-current-proposal-20261101 --> ## Current proposal — checked 2 November 2026 #10760 remains open and mergeable at b2ab7b2dc61b35a3b2db107341b3c4ef624fbe9d. Its [current description](https://github.com/boykopovar/AnyPS5/pull/10760) carries the capture-output correction and its source-pinned qualification. The newer head supersedes the former 6d26a5b8 reference; this sweep checks metadata/report state and does not independently rerun its current code. The issue stays open pending merge. Older hosted build logs below retain their original c4ad483347 source pin; no current-head full-suite, title or performance result is inferred from them. ## Earlier independently checked hosted evidence — 28 October 2026 I checked the [eligibility log](https://github.com/boykopovar/AnyPS5/actions/runs/40572948350/job/122431720981): this run selects only #10760 at `c4ad483347359e4df0951220d4ca6394a052bc47`, merged for CI into main `d13b3d7c55a433c7a5040076d849dbe59fad4b53`. - [Linux job](https://github.com/boykopovar/AnyPS5/actions/runs/40572948350/job/122431779547): all16 `agc_capture_trace_*` tests pass, including drop/count/shutdown and host/project-runtime write/flush failure cases. Full CTest:2483passed,97skipped,0failed; job succeeds. - [Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/40572948350/job/122431779437): the same16 capture tests pass. Full CTest:1848passed,832skipped,1failed (`guest_raise_exception`, `0xc0000409`, `sceKernelRaiseException: cannot suspend the target thread`); job/run fail. This evidence does not establish why that separate test fails or qualify #12069. 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). <details> <summary>Previous evidence and source-pinned history</summary> ### Prior current-candidate summary — 27 October 2026 The [maintainer contract](https://github.com/boykopovar/AnyPS5/issues/10753#issuecomment-6404591066) remains: a diagnostic trace must not stop or stall the game. Overflow drops new records and reports counts; writer/flush failure disables tracing and logs an error. #10760 implements that drop-and-count proposal. The candidate is now `c4ad483347359e4df0951220d4ca6394a052bc47`, rebased onto main801d after #11157. [The author reports](https://github.com/boykopovar/AnyPS5/pull/10760#issuecomment-6438508285) debt-only conflict resolution, unchanged capture implementation/fixtures,17/17 local Windows capture/public-header checks and a separate matched eight-test CPU comparison. The public-header audit took60.78s locally; this does not establish the CI timing requirement. [Earlier hosted Linux and Windows builds](https://github.com/boykopovar/AnyPS5/pull/10760#issuecomment-6436691380) compiled the product/libs and passed all16 capture tests per platform, then failed the same public-header audit reproduced on tested main. #11718 fixed that declaration on later main; the source audit subsequently passed. These are distinct pins, not a fresh full-CI pass. The author has requested a new maintainer run. Keep open pending merge/qualification; these are contributor results, not independent local runs or a new Sonic result by us. AI-assisted maintenance: yes (Codex). ### What happens With `APS5_CAPTURE_TRACE=1` and shader/draw correlation enabled, Sonic reaches PRESS START and then exits with `Capture trace queue exceeded 16 MiB` while writing its text trace to a writable SMB share. This is a **diagnostic-path stop**, separate from the title's existing descriptor blocker #3036. ### Title, test or build step Sonic Unleashed Recompiled, PPSA99902; retained application/bundled-module conversion. Dump metadata declares contentVersion `01.003.000` (masterVersion `01.03`). Public-source-to-dump version match remains unverified. No controller input sent in the failing run. Bring-up: #4443. ### AnyPS5 commit Frozen fork composition [5fd69399558c](https://github.com/Amoenus/AnyPS5/commit/5fd69399558cef512531fc0122d5be3e0f6a83bd), based on main `c8d34aa8f4d8058d57169cc1e423ba6db00faaf0`; [all additional changes](https://github.com/Amoenus/AnyPS5/compare/c8d34aa8f4d8058d57169cc1e423ba6db00faaf0...5fd69399558cef512531fc0122d5be3e0f6a83bd). **Not an unchanged-main game run.** The capture writer header is identical on main and the composition. No claim that #5431 introduced its queue bound. ### System Windows 11 Enterprise 26200; NVIDIA GeForce RTX 5080, driver 610.62 / 32.0.16.1062; MinGW-w64 GCC 15.2.0. Vulkan required, actual selected adapter verified, Khronos validation 1.4.363.0 loaded. No AMD title test for this observation. ### Steps to reproduce 1. Use the retained PPSA99902 application/modules with the composition's rebuilt native libraries and an isolated copy of the initial writable profile. App/native hashes verified before and after. 2. From the normal runtime directory, launch `app.exe` with: ```powershell $env:APS5_CAPTURE_TRACE = '1' $env:APS5_TRACE_SHADER_CORRELATION = '1' $env:APS5_CAPTURE_TRACE_PATH = '\\NAS\share\capture-trace.log' $env:ANYPS5_GPU = 'NVIDIA GeForce RTX 5080' $env:ANYPS5_REQUIRE_VULKAN = '1' $env:VK_INSTANCE_LAYERS = 'VK_LAYER_KHRONOS_validation' .\app.exe ``` The SMB path above is a placeholder for the existing writable test share. Sparse upstream frame dumping and ordinary failure logging were also enabled; full recorded settings and artifact identities are linked below. App shader cache/journal initially absent; restored initial guest RADV cache; host driver cache uncontrolled. Observed once: natural abort after **36.042 seconds**, exit `0xc0000409`; neither time nor disk cap fired. Last sparse frame014 shows PRESS START. One separate non-capture run stalled after the skip and reached its1800-second cap. A further run on the same source with aggregate wait/driver logs and summary-only profiling reached tutorial NOW LOADING, then naturally aborted at known #3036 after336.222s. Neither result establishes the cause of this capture overflow or a corrective effect of diagnostics. [Current bring-up report](https://github.com/boykopovar/AnyPS5/discussions/4443). ### Log ```text [gpu] driver failure: Capture trace queue exceeded 16 MiB [videoout] presentation failed: Capture trace queue exceeded 16 MiB what(): Capture trace queue exceeded 16 MiB FATAL: abort() (SIGABRT) on thread 31496 ``` ### What was checked - 98,273,102 bytes / 1,130,141 complete text records written before exit; 679,163 `packet`, 334,191 `buffer-read`, 15,733 `draw-attempt`, 31,466 `draw-selected`, 15,730 `draw-recorded`, 3,117 `submit-confirmed`. Counts describe this capture, not a speed benchmark. - Zero Vulkan validation errors/VUIDs or submission watchdogs; ten validation warnings. All 374 pinned application/module/native/root-DLL hashes match after exit. - [The main writer](https://github.com/boykopovar/AnyPS5/blob/c8d34aa8f4d8058d57169cc1e423ba6db00faaf0/core/libs/prx/libSceAgcDriver/Execution/include/CaptureTrace.hpp#L71) explicitly throws when its pending queue exceeds 16 MiB. Direct throwing `Log` callers remain in packet execution and presentation. Best-effort correlation helpers do not make the entire capture non-fatal. The first throwing call is not isolated here. - Exact-error and related open/closed issue/PR searches found no matching report. #5786 is a different performance-event buffer. #5431/#5238/#5166 reviewed for diagnostic context. **Question:** Is fatal queue overflow the intended policy for opt-in diagnostic capture? Bounded backpressure or explicitly stopping capture could preserve the diagnostic limitation without masking the title's actual blocker. lgqdaxia now proposes bounded backpressure in #10760. Our [independent synthetic validation](https://github.com/boykopovar/AnyPS5/pull/10760#issuecomment-6393432798) passes its 11 CPU fixtures and rejects two invalid-worker controls, using standalone host-runtime executables. Full configured-runtime/title validation and the blocking-policy decision remain open; this is not a verified fix for the original game run. **Limits:** one observed failure on a composed fork; repeatability, unchanged-main game execution, local-disk output, and AMD behavior untested. SMB throughput as the cause is a hypothesis, not established. No regression attribution to #5431, and no fix for #3036 claimed. [Curated evidence and manifest](https://gist.github.com/Amoenus/8f99dce2d83b921daa8e1914f33d9b30#file-sonic-mainc8d34-trace-queue-md). Full raw trace stays private; no game binaries, serialized shader requests, or memory payloads attached. AI-assisted: yes (Codex); author responsible. </details>
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#10753
No description provided.