Repository navigation
fix(agc): stop the profile output at shutdown only if it was created - #2112
Merged
oneandonlydean merged 1 commit intoOct 9, 2026
Merged
Conversation
This was referenced Oct 9, 2026
Collaborator
|
Thanks, this is the fix for the Windows |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LeandroLP23
force-pushed
the
fix/agc-profile-output-shutdown
branch
from
October 9, 2026 09:27
c54b31e to
9842768
Compare
Contributor
Author
|
Rebased onto |
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Since #1367,
guest_video_out_wqhd_detectionfails on a Windows host whose Vulkan has noVK_KHR_surface, as on the CI runner:The test returns its skip code 77, but the process then exits with
0x20474343, an unhandled GCC C++ exception. #1367 starts the AGC driver on the first VideoOut call, so its shutdown now runs at exit even when the window could not be created. The shutdown calledProfileOutput_nid_no_patch().Stop(), which constructs the profile output if nothing printed to it yet, and its constructor starts the writer thread during process exit, where creating the thread throws.The shutdown now stops the profile output only if it was created.
The offscreen SDL driver failing to create a Vulkan window on Windows (@popcoder565 on #1225) is a separate effect of #1367; this only makes the skip path exit cleanly.
Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release,
main6cc0503:guest_video_out_wqhd_detection_no_vulkan, new and Windows-only: the same test withVK_DRIVER_FILESandVK_ICD_FILENAMESpointing to a missing manifest. It fails onmain(exit0x20474343after the skip message) and is skipped with this change.guest_video_out_wqhd_detectionstill passes on an AMD Radeon 860M.tools/check_conventions.pypasses.main6cc0503 doesn't build its AGC driver tests without #2093, so the fork CI run is on this branch with #2093 merged: https://github.com/LeandroLP23/AnyPS5/actions/runs/37906483462, all jobs pass (Windows 495/495, bothguest_video_out_wqhd_detectionentries skipped).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)main)