fix(agc,videoout): report output file failures without stream exceptions #14982

Merged
JJenkx merged 5 commits from upstream-pr/14982 into main 2026-11-13 06:09:03 +00:00
JJenkx commented 2026-11-02 07:48:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-02T07:48:40Z.


What

Four file writers in libSceAgcDriver and libSceVideoOut turned on std::ofstream::exceptions(badbit | failbit) and relied on the stream to throw when an open, write, flush or close failed. On Windows that exception cannot reach the writer's own catch.

  • std::ios_base::failure is thrown inside libstdc++-6.dll (basic_ios::clear), and unwinding it needs SEH unwind data (.pdata) for every frame it crosses.

  • With the DWARF-exception MinGW toolchain, core/libs/CMakeLists.txt builds these libraries with -fno-asynchronous-unwind-tables, so their frames have none.

  • The exception therefore stops at the first project frame. libc's crash report ends the process with FATAL: C++ exception St13__ios_failure raised on thread N cannot be delivered: ...+0x... has no unwind data, the same path undeliverable_host_exception checks for bad_alloc.

An exception thrown by project code is delivered normally on Windows, as the existing std::system_error case of ReplaceGzipFile shows. So each writer now checks the stream state itself after each open, write, flush and close, and throws std::ios_base::failure from its own frame. This is the same exception type the stream threw before, so the existing catches and messages are unchanged.

The four writers:

  • TraceFile::WriteGzip and TraceFile::AppendLine: the trace and APS5_TRACE_BENCH files.

  • Screenshot::Write was a fifth; since main 7c0784a081 it writes through an exclusive create and a write loop that throw from project code, so this PR no longer changes it.

  • FrameTimingLog.

  • VideoOut Telemetry::Writer.

Before this change, on Windows a full disk, a locked file or a directory at the path took the whole process down at the throw. Now the failure reaches the code that already handles it. For example, the benchmark writer prints [trace] writing ... failed and rethrows, FrameTimingLog stores the failure for the next Enqueue, and the telemetry writer stops with its message.

The test this unblocks: ReplaceGzipFile's write-failure case, a directory at <name>.tmp, ran only off Windows for this reason. It now runs on Windows too, catches std::ios_base::failure specifically, and its debt entry is removed.

Tested

Linux refresh, 2026-11-12: head c2b9a58a878dca65e5fe09c4b2b8ebbcb7284221 integrates main 4f9f5fffc91e5ec4cd29cb8bba9c3a991f09af48. The conflict resolution retains both the explicit stream-open check and main's Libc::StartHostJThread worker creation in FrameTimingLog. This PR's production/test added and removed lines are unchanged. A subsequent merge preview against main a221a742da421fc7b3b3f7c139346fe1b8642058 is clean; that preview tree was not executed.

Fresh Linux/RADV RX 6650 XT coverage, with frozen SDK banks and the same PerformanceTrace.cpp fixture source on both arms:

  • 26 cases ×3 per arm: 78/78 pass on main production + the matched fixture, and 78/78 on this change. Zero skips. Selection: the existing output/trace/screenshot/telemetry pattern, including main's new screenshot-trigger case, plus agc_driver_gcn_display_present_trigger and video_out_flip_present.
  • The two actual Vulkan presentation/native-capture cases each pass 3/3 on each arm. ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, validation 1.4.363, VK_LOADER_DEBUG=layer; each physical case shows validation insertion on every repetition, and both full logs contain 0 VUID errors. Other cases exercise file output, CPU screenshot handling and window/caption behavior; they are not counted as physical rendering cases.
  • Both SDK/relinker builds completed (824 frozen outputs per arm), with fixture/provider hashes unchanged through testing. All CMake wrappers, library search paths and writable output directories map to the frozen arm/private staging. Conventions and whitespace checks pass.

The initial staged-main run omitted CMake-created output directories and failed five file cases opening their paths; it is excluded. The final r2 results above recreate the expected layout, preserve the intentionally missing open-failure parent and pass the complete set. No production changes were made to satisfy those staging failures.

Exact pins, source-preservation/resolution proof, builds, complete verbose logs, JUnit and isolated commands, SHA-256 4d9078aaa2859011e532480562bd034d8d0e2fdf6951aa802ba5b93aa9cb1b38; archive and all 33 members downloaded/hash-verified. No fresh Windows, macOS, native-title or FPS result. Linux does not reproduce the original Windows DWARF exception-unwind defect; the earlier Windows negative control remains separately pinned evidence.

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7 (DWARF exceptions, the CI toolchain), Release, rebased onto main 947ebf3d2c. That main already fixed CaptureTrace the same way (03267ec5aa6), so that writer is no longer part of this PR. The results below are from the rebased head.

  • Control: agc_performance_trace with this PR's test and main's TraceFile.cpp fails with FATAL: C++ exception St13__ios_failure raised on thread ... cannot be delivered: ... agc_performance_trace_tests.exe+0xb7db has no unwind data. That address is basic_ios::clear's return into TraceFile::WriteGzip, which has no .pdata entry.

  • The test reproduces the shipped library's setup. agc_performance_trace_tests.exe is linked like libSceAgcDriver.prx: both run configure_windows_unwind and both import basic_ios::clear from libstdc++-6.dll (checked with objdump -p). So the control's failure is the library's behaviour, not something only the test executable does.

  • This PR: agc_performance_trace passes 3/3 with the case enabled.

  • Affected tests, 3 repetitions each: all 23 tests matching performance_trace|screenshot|capture_trace|telemetry|frame_timing|undeliverable pass, except video_out_telemetry_caption, which skips here because the display was off.

  • Full host CTest run with Vulkan hidden: 3573/3574 pass. The one failure, ngs2_pitchshift, also fails on main and is fixed by #12864; the GPU tests skip.

  • tools/check_conventions.py --base origin/main passes.

Not run in the author’s Windows qualification above: Linux or macOS, where libstdc++ exceptions already unwind through these frames. That qualification did not execute GPU tests. Independent Linux reports below have their own source pins, selection and limitations; macOS remains untested.

Independent reports on this head:

  • @TechLevelZero's NVIDIA CI (report), NVIDIA RTX 2000 Ada Generation, head 43182c3ac6 merged onto main 1d91f29: 2,620 passed · 4 failed (0 new, 2 also fail on main, 2 unstable on main) · 44 skipped (ANYPS5_REQUIRE_VULKAN=1); validation: ✅ no new validation IDs vs main (981 tests run on the GPU).

Updated independent Linux coverage — 2026-11-06

TechLevelZero's new report tests the current PR head 25265fbdde059d5ec2cd9f560a0e0ccf8cd9d6d4 merged onto main 82fcf46d250e0ec2f436ceffd607dd2ff04c62d7, Release with SPIRV-Tools enabled, NVIDIA RTX 2000 Ada Generation / driver 595.99.02 on Linux. Of 2,965 selected tests, 2,905 passed, four failed and 56 skipped. Three failures also occur on main; the fourth (agc_driver_pipeline_journal) is reported unstable on main. The report records no new validation IDs against main across 979 GPU tests; existing validation IDs remain. Raw build and test logs.

These are attributed contributor measurements on the stated integration, not a fresh local run or an all-green/full-suite claim. The earlier Windows negative control remains the evidence reproducing the output-exception defect. macOS remains untested.

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: none

  • Unblocks: none

  • GPUs tested: AMD Radeon RX 6650 XT, RADV, Linux; validation 1.4.363, two presentation/native-capture cases ×3 on both arms. Independent NVIDIA coverage retains the pins listed above.

  • AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5116829971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14982). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-02T07:48:40Z. --- ### What Four file writers in `libSceAgcDriver` and `libSceVideoOut` turned on `std::ofstream::exceptions(badbit | failbit)` and relied on the stream to throw when an open, write, flush or close failed. On Windows that exception cannot reach the writer's own `catch`. - `std::ios_base::failure` is thrown inside `libstdc++-6.dll` (`basic_ios::clear`), and unwinding it needs SEH unwind data (`.pdata`) for every frame it crosses. - With the DWARF-exception MinGW toolchain, `core/libs/CMakeLists.txt` builds these libraries with `-fno-asynchronous-unwind-tables`, so their frames have none. - The exception therefore stops at the first project frame. libc's crash report ends the process with `FATAL: C++ exception St13__ios_failure raised on thread N cannot be delivered: ...+0x... has no unwind data`, the same path `undeliverable_host_exception` checks for `bad_alloc`. An exception thrown by project code is delivered normally on Windows, as the existing `std::system_error` case of `ReplaceGzipFile` shows. So each writer now checks the stream state itself after each open, write, flush and close, and throws `std::ios_base::failure` from its own frame. This is the same exception type the stream threw before, so the existing catches and messages are unchanged. The four writers: - `TraceFile::WriteGzip` and `TraceFile::AppendLine`: the trace and `APS5_TRACE_BENCH` files. - `Screenshot::Write` was a fifth; since main `7c0784a081` it writes through an exclusive create and a write loop that throw from project code, so this PR no longer changes it. - `FrameTimingLog`. - VideoOut `Telemetry::Writer`. Before this change, on Windows a full disk, a locked file or a directory at the path took the whole process down at the throw. Now the failure reaches the code that already handles it. For example, the benchmark writer prints `[trace] writing ... failed` and rethrows, `FrameTimingLog` stores the failure for the next `Enqueue`, and the telemetry writer stops with its message. The test this unblocks: `ReplaceGzipFile`'s write-failure case, a directory at `<name>.tmp`, ran only off Windows for this reason. It now runs on Windows too, catches `std::ios_base::failure` specifically, and its debt entry is removed. ### Tested <!-- codex-pr14982-refresh-20261112 --> **Linux refresh, 2026-11-12:** head `c2b9a58a878dca65e5fe09c4b2b8ebbcb7284221` integrates main `4f9f5fffc91e5ec4cd29cb8bba9c3a991f09af48`. The conflict resolution retains both the explicit stream-open check and main's `Libc::StartHostJThread` worker creation in `FrameTimingLog`. This PR's production/test added and removed lines are unchanged. A subsequent merge preview against main `a221a742da421fc7b3b3f7c139346fe1b8642058` is clean; that preview tree was not executed. Fresh Linux/RADV **RX 6650 XT** coverage, with frozen SDK banks and the same `PerformanceTrace.cpp` fixture source on both arms: - **26 cases ×3 per arm: 78/78 pass on main production + the matched fixture, and 78/78 on this change. Zero skips.** Selection: the existing output/trace/screenshot/telemetry pattern, including main's new screenshot-trigger case, plus `agc_driver_gcn_display_present_trigger` and `video_out_flip_present`. - The **two actual Vulkan presentation/native-capture cases** each pass 3/3 on each arm. `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, validation **1.4.363**, `VK_LOADER_DEBUG=layer`; each physical case shows validation insertion on every repetition, and both full logs contain **0 VUID errors**. Other cases exercise file output, CPU screenshot handling and window/caption behavior; they are not counted as physical rendering cases. - Both SDK/relinker builds completed (824 frozen outputs per arm), with fixture/provider hashes unchanged through testing. All CMake wrappers, library search paths and writable output directories map to the frozen arm/private staging. Conventions and whitespace checks pass. The initial staged-main run omitted CMake-created output directories and failed five file cases opening their paths; it is excluded. The final `r2` results above recreate the expected layout, preserve the intentionally missing open-failure parent and pass the complete set. No production changes were made to satisfy those staging failures. [Exact pins, source-preservation/resolution proof, builds, complete verbose logs, JUnit and isolated commands](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr14982-c2b9-main4f9f-output-linux-20261112.tar.gz), SHA-256 `4d9078aaa2859011e532480562bd034d8d0e2fdf6951aa802ba5b93aa9cb1b38`; archive and all 33 members downloaded/hash-verified. **No fresh Windows, macOS, native-title or FPS result.** Linux does not reproduce the original Windows DWARF exception-unwind defect; the earlier Windows negative control remains separately pinned evidence. Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7 (DWARF exceptions, the CI toolchain), Release, rebased onto `main` `947ebf3d2c`. That `main` already fixed `CaptureTrace` the same way (`03267ec5aa6`), so that writer is no longer part of this PR. The results below are from the rebased head. - **Control:** `agc_performance_trace` with this PR's test and `main`'s `TraceFile.cpp` fails with `FATAL: C++ exception St13__ios_failure raised on thread ... cannot be delivered: ... agc_performance_trace_tests.exe+0xb7db has no unwind data`. That address is `basic_ios::clear`'s return into `TraceFile::WriteGzip`, which has no `.pdata` entry. - **The test reproduces the shipped library's setup.** `agc_performance_trace_tests.exe` is linked like `libSceAgcDriver.prx`: both run `configure_windows_unwind` and both import `basic_ios::clear` from `libstdc++-6.dll` (checked with `objdump -p`). So the control's failure is the library's behaviour, not something only the test executable does. - **This PR:** `agc_performance_trace` passes 3/3 with the case enabled. - **Affected tests,** 3 repetitions each: all 23 tests matching `performance_trace|screenshot|capture_trace|telemetry|frame_timing|undeliverable` pass, except `video_out_telemetry_caption`, which skips here because the display was off. - **Full host CTest run** with Vulkan hidden: 3573/3574 pass. The one failure, `ngs2_pitchshift`, also fails on `main` and is fixed by #12864; the GPU tests skip. - `tools/check_conventions.py --base origin/main` passes. **Not run in the author’s Windows qualification above:** Linux or macOS, where libstdc++ exceptions already unwind through these frames. That qualification did not execute GPU tests. Independent Linux reports below have their own source pins, selection and limitations; macOS remains untested. **Independent reports** on this head: - @TechLevelZero's NVIDIA CI ([report](https://github.com/boykopovar/AnyPS5/pull/14982#issuecomment-6587580721)), NVIDIA RTX 2000 Ada Generation, head `43182c3ac6` merged onto `main` `1d91f29`: 2,620 passed · 4 failed (**0 new**, 2 also fail on main, 2 unstable on main) · 44 skipped (`ANYPS5_REQUIRE_VULKAN=1`); validation: ✅ no new validation IDs vs main (981 tests run on the GPU). <!-- codex-independent-linux-14982-20261106 --> **Updated independent Linux coverage — 2026-11-06** [TechLevelZero's new report](https://github.com/boykopovar/AnyPS5/pull/14982#issuecomment-6678425608) tests the current PR head `25265fbdde059d5ec2cd9f560a0e0ccf8cd9d6d4` merged onto main `82fcf46d250e0ec2f436ceffd607dd2ff04c62d7`, Release with SPIRV-Tools enabled, NVIDIA RTX 2000 Ada Generation / driver 595.99.02 on Linux. Of 2,965 selected tests, 2,905 passed, four failed and 56 skipped. Three failures also occur on main; the fourth (`agc_driver_pipeline_journal`) is reported unstable on main. The report records no new validation IDs against main across 979 GPU tests; existing validation IDs remain. [Raw build and test logs](https://gist.github.com/TechLevelZero/841e21c8cab64ba4bb46182be2449601). These are attributed contributor measurements on the stated integration, not a fresh local run or an all-green/full-suite claim. The earlier Windows negative control remains the evidence reproducing the output-exception defect. macOS remains untested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 6650 XT, RADV, Linux; validation 1.4.363, two presentation/native-capture cases ×3 on both arms. Independent NVIDIA coverage retains the pins listed above. - [x] AI-assisted: yes
BunnyFl commented 2026-11-02 11:09:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T11:09:52Z.

Review: APPROVED


Looks right, and I reproduced both the crash and the fix on Windows.

Each writer now checks the stream after each open, write, flush and close, and throws std::ios_base::failure from its own frame. The stream state is sticky, so checking after close() also catches an earlier failed write, and WriteGzip's per-chunk check covers the header write before the loop. The exception type is unchanged, so the existing catches still match.

Tested on Windows 11, WinLibs GCC 15.2.0 (DWARF MinGW), Release, with head 43182c3ac6 merged onto main:

  • agc_performance_trace, video_out_telemetry and video_out_telemetry_caption pass.
  • With only TraceFile.cpp put back to main's version, the re-enabled ReplaceGzipFile write-failure case ends the process with FATAL: C++ exception St13__ios_failure raised on thread … cannot be delivered: … agc_performance_trace_tests.exe+0xb7db has no unwind data, exactly the failure you describe.

No GPU path changes, so I didn't run a validation-layer comparison.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5735645847 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14982#pullrequestreview-5735645847). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-02T11:09:52Z. **Review:** APPROVED --- Looks right, and I reproduced both the crash and the fix on Windows. Each writer now checks the stream after each open, write, flush and close, and throws `std::ios_base::failure` from its own frame. The stream state is sticky, so checking after `close()` also catches an earlier failed write, and `WriteGzip`'s per-chunk check covers the header write before the loop. The exception type is unchanged, so the existing catches still match. Tested on Windows 11, WinLibs GCC 15.2.0 (DWARF MinGW), Release, with head `43182c3ac6` merged onto `main`: - `agc_performance_trace`, `video_out_telemetry` and `video_out_telemetry_caption` pass. - With only `TraceFile.cpp` put back to `main`'s version, the re-enabled `ReplaceGzipFile` write-failure case ends the process with `FATAL: C++ exception St13__ios_failure raised on thread … cannot be delivered: … agc_performance_trace_tests.exe+0xb7db has no unwind data`, exactly the failure you describe. No GPU path changes, so I didn't run a validation-layer comparison.
BunnyFl commented 2026-11-06 01:56:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-06T01:56:58Z.

Review: APPROVED


Re-checked — approved

@JJenkx thanks for the refresh and for the two runs. Re-checked at head 25265fbdde, which is the merge on top of 43182c3ac6, the head I approved on 11-02.

What moved after that approval. I compared the two heads file by file:

  • Execution/src/Screenshot.cpp at this head is byte-identical to main 01f804bb2f, so none of this PR's writing is left in it and it is out of the diff. Keeping main's exclusive _wopen/open version looks right to me: it already throws from project code, which is what this PR wanted for that file.
  • Execution/src/TraceFile.cpp, libSceVideoOut/include/FrameTimingLog.hpp and libSceVideoOut/src/Telemetry.cpp are byte-identical to 43182c3ac6.
  • tests/PerformanceTrace.cpp carries the same change as before: the #ifndef _WIN32 guards are gone and the catch is narrowed to std::ios_base::failure (PerformanceTrace.cpp:611, with the check at :634). Its line numbers moved because main added WindowTrigger above it, at PerformanceTrace.cpp:57 on main 01f804bb2f.
  • The debt entry for the off-Windows rewrite-failure test is still removed. That matches CONTRIBUTING.md ("Documentation": a pull request that closes a gap removes its entry instead of rewriting it), since the test now runs on Windows too.

My run. Head 25265fbdde merged into main 01f804bb2f (merge 2751cbf419), Windows 11, WinLibs GCC, Release, AMD Radeon RX 9070 XT (device 0x7550), driver 32.0.32015.12012, Vulkan validation layer 1.4.363, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest -V:

  • the 23 tests matching performance_trace|screenshot|capture_trace|telemetry|frame_timing|undeliverable: 23 of 23 pass, none skipped;
  • no log line reports the layer missing, and no VUID- or SYNC-HAZARD id appears on either side of the comparison.

Negative control. With TraceFile.cpp, FrameTimingLog.hpp and Telemetry.cpp taken from main and this branch's test kept, agc_performance_trace fails and the other 22 pass. So the test does reach the change, which is what I wanted to see again after the conflict resolution.

Overlap. I ran tools/pr_overlap.py on this head myself. Two open pull requests conflict on lines this one changes. gh pr view reports both as MERGEABLE against main, and neither of their changes contradicts this one. What follows is about rebase order.

  • #7599 (fix(trace): preserve Unicode output paths on Windows) edits the same two regions of TraceFile.cpp: it adds #include <cstdlib> to the include block at TraceFile.cpp:3-10 on main, where this PR adds #include <ios>, and inserts TraceFile::Directory() directly after namespace AgcDriver { at TraceFile.cpp:15 on main, where this PR inserts its anonymous namespace holding RequireGood. It also adds a Directory() case to tests/PerformanceTrace.cpp. Whichever lands second needs a two-hunk rebase.
  • #7622 (fix(runtime): isolate host worker MXCSR) changes FrameTimingLog.hpp three lines below this PR's edit: it replaces the std::jthread at FrameTimingLog.hpp:28 on main with Libc::StartHostJThread. One thing to watch on that rebase: #7622's copy still carries file.exceptions(std::ios::badbit | std::ios::failbit) at FrameTimingLog.hpp:25 on main, the line this PR removes, so a resolution that keeps #7622's side of the constructor wholesale would bring the MinGW unwind problem back.

A further 48 open pull requests share files with this one but could not be compared, because each conflicts with the base; every shared path reported for them is docs/dev/debt/libSceAgcDriver.md.

Approving again at this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5794748484 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14982#pullrequestreview-5794748484). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-06T01:56:58Z. **Review:** APPROVED --- # Re-checked — approved @JJenkx thanks for the refresh and for the two runs. Re-checked at head `25265fbdde`, which is the merge on top of `43182c3ac6`, the head I approved on 11-02. **What moved after that approval.** I compared the two heads file by file: - `Execution/src/Screenshot.cpp` at this head is byte-identical to `main` `01f804bb2f`, so none of this PR's writing is left in it and it is out of the diff. Keeping `main`'s exclusive `_wopen`/`open` version looks right to me: it already throws from project code, which is what this PR wanted for that file. - `Execution/src/TraceFile.cpp`, `libSceVideoOut/include/FrameTimingLog.hpp` and `libSceVideoOut/src/Telemetry.cpp` are byte-identical to `43182c3ac6`. - `tests/PerformanceTrace.cpp` carries the same change as before: the `#ifndef _WIN32` guards are gone and the catch is narrowed to `std::ios_base::failure` (`PerformanceTrace.cpp:611`, with the check at `:634`). Its line numbers moved because `main` added `WindowTrigger` above it, at `PerformanceTrace.cpp:57` on `main` `01f804bb2f`. - The debt entry for the off-Windows rewrite-failure test is still removed. That matches `CONTRIBUTING.md` ("Documentation": a pull request that closes a gap removes its entry instead of rewriting it), since the test now runs on Windows too. **My run.** Head `25265fbdde` merged into `main` `01f804bb2f` (merge `2751cbf419`), Windows 11, WinLibs GCC, Release, AMD Radeon RX 9070 XT (device `0x7550`), driver `32.0.32015.12012`, Vulkan validation layer 1.4.363, with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ctest -V`: - the 23 tests matching `performance_trace|screenshot|capture_trace|telemetry|frame_timing|undeliverable`: **23 of 23 pass, none skipped**; - no log line reports the layer missing, and no `VUID-` or `SYNC-HAZARD` id appears on either side of the comparison. **Negative control.** With `TraceFile.cpp`, `FrameTimingLog.hpp` and `Telemetry.cpp` taken from `main` and this branch's test kept, `agc_performance_trace` fails and the other 22 pass. So the test does reach the change, which is what I wanted to see again after the conflict resolution. **Overlap.** I ran `tools/pr_overlap.py` on this head myself. Two open pull requests conflict on lines this one changes. `gh pr view` reports both as MERGEABLE against `main`, and neither of their changes contradicts this one. What follows is about rebase order. - **#7599** (`fix(trace): preserve Unicode output paths on Windows`) edits the same two regions of `TraceFile.cpp`: it adds `#include <cstdlib>` to the include block at `TraceFile.cpp:3-10` on `main`, where this PR adds `#include <ios>`, and inserts `TraceFile::Directory()` directly after `namespace AgcDriver {` at `TraceFile.cpp:15` on `main`, where this PR inserts its anonymous namespace holding `RequireGood`. It also adds a `Directory()` case to `tests/PerformanceTrace.cpp`. Whichever lands second needs a two-hunk rebase. - **#7622** (`fix(runtime): isolate host worker MXCSR`) changes `FrameTimingLog.hpp` three lines below this PR's edit: it replaces the `std::jthread` at `FrameTimingLog.hpp:28` on `main` with `Libc::StartHostJThread`. One thing to watch on that rebase: #7622's copy still carries `file.exceptions(std::ios::badbit | std::ios::failbit)` at `FrameTimingLog.hpp:25` on `main`, the line this PR removes, so a resolution that keeps #7622's side of the constructor wholesale would bring the MinGW unwind problem back. A further 48 open pull requests share files with this one but could not be compared, because each conflicts with the base; every shared path reported for them is `docs/dev/debt/libSceAgcDriver.md`. Approving again at this head.
Sign in to join this conversation.
No reviewers
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!14982
No description provided.