Skip to content

fix(tests): exercise no-Vulkan shutdown during DLL teardown - #14215

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
angrysandhill:fix/14149-shutdown-regression
Nov 1, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
angrysandhill:fix/14149-shutdown-regression

Conversation

@angrysandhill

Copy link
Copy Markdown
Contributor

What

The no-Vulkan WQHD regression test returned 77 through WindowsTestExit, which calls libc termination before DLL detach. Consequently it no longer exercised the AGC destructor or caught the original profile-output thread creation during process exit.

Build the existing test source as a separate Windows executable without that wrapper and route only the no-Vulkan case through it. Reuse the existing dependencies, unwind configuration, timeout, skip code and test environment.

 guest_video_out_wqhd_detection_no_vulkan
-  wrapped main -> libc termination -> TerminateProcess
+  unwrapped main -> DLL teardown -> Driver::~Driver -> stop

Fixes #14149.

Tested

Windows 10 Home 10.0.19045, AMD Ryzen 7 5800X, 32 GiB RAM; WinLibs GCC 15.2.0 UCRT POSIX (release 15.2.0posix-14.0.0-ucrt-r7), CMake 4.3.1, Ninja 1.13.2, Python 3.14.5. Tests ran at medium integrity. No retail title was used.

  • Release focused build of guest_video_out_wqhd_detection_tests and guest_video_out_wqhd_detection_exit_tests passed.
  • Fresh baseline: main at 8a4fc62318a4b73b6895bf20a024c625efeb7c3b. Candidate: a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b. Both run the same focused CTest pattern with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and the same local validation-layer build (Khronos nightly commit 16a40098c4279a6caf24204bf388c744bc6c30cf). No VUID- errors or missing-requested-layer warnings in either log.
  • Three consecutive candidate CTest runs: normal WQHD test passed; no-Vulkan case completed with expected skip code 77. Teardown must complete before CTest receives that skip code; a teardown failure fails the test instead.
  • Initial reproduction/mutation evidence was captured on b08c539c505c48341146c705bc72d9b603cdb3a7, before rebasing. Driver/Lifecycle.cpp is unchanged between that base and the current base. A stop probe ending the process with code 42 was missed by the original wrapped no-Vulkan test and detected by the unwrapped one.
  • Restoring the historical ProfileOutput_nid_no_patch().Stop() call makes the existing wrapped case still skip, while the unwrapped case fails with St12system_error during DLL teardown in 3/3 runs. The final registered guest_video_out_wqhd_detection_no_vulkan case also detects that mutation (0.13 s). The mutation and probes were removed and the clean driver rebuilt.
  • The clean unwrapped executable also completed 100 consecutive missing-ICD runs without crash or timeout (8.74 s total, before rebase).
  • python tools/check_conventions.py --base origin/main and git diff --check pass.
  • python tools/pr_overlap.py --branch fix/14149-shutdown-regression --base main --repo boykopovar/AnyPS5 --jobs 6 inspected 1,697 open PRs. It reported five unverified shared-file comparisons because those PRs conflict with the base. I manually reviewed their VideoOut CMake diffs: feat(aot): consolidate native ARM64 compiler, runtime and consumers #5021 (native graphics gating), feat(pad): complete DualSense adaptive trigger support #10112 (DualSense status test), build(videoout): link one SDL copy on macOS #11119 (macOS SDL linking), feat(videoout): add ANYPS5_FPS_LIMIT to cap the rate the window presents #12536 (FPS limit test), and feat(libSceVideoOut): opt-in host pause with a key or on focus loss #12863 (host pause). None changes this WQHD block or implements this shutdown fix. No dependency was found.

Elevated Vulkan loaders may ignore the missing-ICD overrides and take the successful-open path; the missing-device reproduction here was verified at medium integrity. Full repository CI has not been run locally; this evidence covers the focused build and tests.

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: guest_video_out_wqhd_detection_no_vulkan no longer reaches the AGC driver shutdown it was added for #14149
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 6750 XT, Windows driver 32.0.21045.16010, Windows 10 Home 10.0.19045
  • AI-assisted: yes
Fresh main baseline
UpdateCTestConfiguration  from :C:/tmp/anyps5-14149/build/DartConfiguration.tcl
Test project C:/tmp/anyps5-14149/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 2646
    Start 2646: guest_video_out_wqhd_detection

2646: Test command: C:\tmp\anyps5-14149\build\tests\guest_video_out_wqhd_detection_tests.exe
2646: Working Directory: C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut
2646: Environment variable modifications: 
2646:  PATH=path_list_prepend:C:/tmp/anyps5-14149/build/core/libs/libs/unpatched
2646: Test timeout computed to be: 20
2646: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
2646: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 5800X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
2646: [src/VulkanDevice.cpp:1176 VulkanDevice] VulkanDevice constructor window=000000fc009ff3f0
2646: [src/VulkanDevice.cpp:1185 VulkanDevice] Vulkan loader loaded library=00007ffc46f90000
2646: [src/VulkanDevice.cpp:1201 VulkanDevice] Presentation window context=00000255ddd9a020 extent=1920x1080 extensions=2
2646: [src/VulkanDevice.cpp:1225 VulkanDevice] Vulkan instance created instance=00000255dddf9fd0
2646: [src/VulkanDevice.cpp:1230 VulkanDevice] Vulkan surface created surface=0000010000000001 window=00000255ddd9a020
2646: [src/VulkanDevice.cpp:1236 VulkanDevice] Physical device count=1
2646: [src/VulkanDevice.cpp:1270 VulkanDevice] Physical device candidate=00000295ea77f090 name=AMD Radeon RX 6750 XT api=0x40413b type=2
2646: [src/VulkanDevice.cpp:1318 VulkanDevice] Physical device selected physical=00000295ea77f090 queueFamily=0
2646: [src/VulkanDevice.cpp:1332 VulkanDevice] Selected GPU name=AMD Radeon RX 6750 XT vendor=0x1002 device=0x73df subgroup=64
2646: [src/VulkanDevice.cpp:1334 VulkanDevice] Memory heap 0 size=12016.0 MiB flags=0x3
2646: [src/VulkanDevice.cpp:1334 VulkanDevice] Memory heap 1 size=16326.4 MiB flags=0x0
2646: [src/VulkanDevice.cpp:1334 VulkanDevice] Memory heap 2 size=256.0 MiB flags=0x3
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 0 heap=0 flags=0x1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 1 heap=1 flags=0x6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 2 heap=2 flags=0x7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 3 heap=1 flags=0xe
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 4 heap=0 flags=0xc1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 5 heap=1 flags=0xc6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 6 heap=2 flags=0xc7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 7 heap=1 flags=0xce
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 8 heap=0 flags=0x1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 9 heap=1 flags=0x6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 10 heap=2 flags=0x7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 11 heap=1 flags=0xe
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 12 heap=0 flags=0xc1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 13 heap=1 flags=0xc6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 14 heap=2 flags=0xc7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 15 heap=1 flags=0xce
2646: [src/VulkanDevice.cpp:1433 VulkanDevice] Shader clock driver=1 narrowSubgroupClock=0
2646: [gpu] largest sample location grids (vkGetPhysicalDeviceMultisamplePropertiesEXT): 1 samples 2x2, 2 samples 2x2, 4 samples 2x2, 8 samples 2x2; maxSampleLocationGridSize for every count 2x2
2646: [src/VulkanDevice.cpp:1807 VulkanDevice] Vulkan features tessellationAvailable=1 mesh=1 depthClip=1 depthRangeUnrestricted=1 pipelineLibrary=1
2646: [src/VulkanDevice.cpp:2069 VulkanDevice] Wave32 programs run on subgroups of 32: compute 1, mesh 0
2646: [src/VulkanDevice.cpp:2199 VulkanDevice] Presentation queue family=0 index=2
2646: [src/VulkanDevice.cpp:2222 VulkanDevice] Vulkan device ready device=00000295ea8b0e10 queue=00000295ea9668c0 family=0
2646: [write-watch] host imports of write-watched memory keep the write watch: yes (4096 of 4096 scratch pages reported written at the import, 0 by its 4-byte settle read, 0 after it, 0 after a full GPU read, 0 after a second, 0 after a GPU write, 1 after a CPU store); direct host imports of private memory are settled and stay watched, separate shared aliases retain guest write tracking
2646: [src/VulkanDevice.cpp:2266 VulkanDevice] Surface capabilities drawable=1109x624 min=1109x624 max=1109x624 minImages=2 maxImages=16 usage=0x9f
2646: [src/VulkanDevice.cpp:2308 VulkanDevice] Swapchain created swapchain=0000200000000020 extent=1109x624 images=3
2646: [float-controls] f32 denormal flush: hardware (0 of 5472 probe results differ from the emulated flush, 398 ms)
1/2 Test #2646: guest_video_out_wqhd_detection .............   Passed    0.75 sec
test 2647
    Start 2647: guest_video_out_wqhd_detection_no_vulkan

2647: Test command: C:\tmp\anyps5-14149\build\tests\guest_video_out_wqhd_detection_tests.exe
2647: Working Directory: C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut
2647: Environment variables: 
2647:  VK_DRIVER_FILES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2647:  VK_ICD_FILENAMES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2647: Environment variable modifications: 
2647:  PATH=path_list_prepend:C:/tmp/anyps5-14149/build/core/libs/libs/unpatched
2647: Test timeout computed to be: 20
2647: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
2647: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 5800X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
2647: skipped, no display or Vulkan device: DisplayWindow: Installed Vulkan doesn't implement the VK_KHR_surface extension
2/2 Test #2647: guest_video_out_wqhd_detection_no_vulkan ...***Skipped   0.09 sec

The following tests passed:
	guest_video_out_wqhd_detection
	guest_video_out_wqhd_detection_no_vulkan

100% tests passed, 0 tests failed out of 2

Total Test time (real) =   1.24 sec

The following tests did not run:
	2647 - guest_video_out_wqhd_detection_no_vulkan (Skipped)
Rebased candidate, first of three clean runs
UpdateCTestConfiguration  from :C:/tmp/anyps5-14149/build/DartConfiguration.tcl
Test project C:/tmp/anyps5-14149/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 2646
    Start 2646: guest_video_out_wqhd_detection

2646: Test command: C:\tmp\anyps5-14149\build\tests\guest_video_out_wqhd_detection_tests.exe
2646: Working Directory: C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut
2646: Environment variable modifications: 
2646:  PATH=path_list_prepend:C:/tmp/anyps5-14149/build/core/libs/libs/unpatched
2646: Test timeout computed to be: 20
2646: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
2646: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 5800X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
2646: [src/VulkanDevice.cpp:1176 VulkanDevice] VulkanDevice constructor window=000000fc009ff600
2646: [src/VulkanDevice.cpp:1185 VulkanDevice] Vulkan loader loaded library=00007ffc46f90000
2646: [src/VulkanDevice.cpp:1201 VulkanDevice] Presentation window context=0000023e3a21e6d0 extent=1920x1080 extensions=2
2646: [src/VulkanDevice.cpp:1225 VulkanDevice] Vulkan instance created instance=0000027e3db448f0
2646: [src/VulkanDevice.cpp:1230 VulkanDevice] Vulkan surface created surface=0000010000000001 window=0000023e3a21e6d0
2646: [src/VulkanDevice.cpp:1236 VulkanDevice] Physical device count=1
2646: [src/VulkanDevice.cpp:1270 VulkanDevice] Physical device candidate=0000027e3db443e0 name=AMD Radeon RX 6750 XT api=0x40413b type=2
2646: [src/VulkanDevice.cpp:1318 VulkanDevice] Physical device selected physical=0000027e3db443e0 queueFamily=0
2646: [src/VulkanDevice.cpp:1332 VulkanDevice] Selected GPU name=AMD Radeon RX 6750 XT vendor=0x1002 device=0x73df subgroup=64
2646: [src/VulkanDevice.cpp:1334 VulkanDevice] Memory heap 0 size=12016.0 MiB flags=0x3
2646: [src/VulkanDevice.cpp:1334 VulkanDevice] Memory heap 1 size=16326.4 MiB flags=0x0
2646: [src/VulkanDevice.cpp:1334 VulkanDevice] Memory heap 2 size=256.0 MiB flags=0x3
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 0 heap=0 flags=0x1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 1 heap=1 flags=0x6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 2 heap=2 flags=0x7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 3 heap=1 flags=0xe
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 4 heap=0 flags=0xc1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 5 heap=1 flags=0xc6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 6 heap=2 flags=0xc7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 7 heap=1 flags=0xce
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 8 heap=0 flags=0x1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 9 heap=1 flags=0x6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 10 heap=2 flags=0x7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 11 heap=1 flags=0xe
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 12 heap=0 flags=0xc1
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 13 heap=1 flags=0xc6
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 14 heap=2 flags=0xc7
2646: [src/VulkanDevice.cpp:1335 VulkanDevice] Memory type 15 heap=1 flags=0xce
2646: [src/VulkanDevice.cpp:1433 VulkanDevice] Shader clock driver=1 narrowSubgroupClock=0
2646: [gpu] largest sample location grids (vkGetPhysicalDeviceMultisamplePropertiesEXT): 1 samples 2x2, 2 samples 2x2, 4 samples 2x2, 8 samples 2x2; maxSampleLocationGridSize for every count 2x2
2646: [src/VulkanDevice.cpp:1807 VulkanDevice] Vulkan features tessellationAvailable=1 mesh=1 depthClip=1 depthRangeUnrestricted=1 pipelineLibrary=1
2646: [src/VulkanDevice.cpp:2069 VulkanDevice] Wave32 programs run on subgroups of 32: compute 1, mesh 0
2646: [src/VulkanDevice.cpp:2199 VulkanDevice] Presentation queue family=0 index=2
2646: [src/VulkanDevice.cpp:2222 VulkanDevice] Vulkan device ready device=0000027e47649c10 queue=0000027e476ff6c0 family=0
2646: [write-watch] host imports of write-watched memory keep the write watch: yes (4096 of 4096 scratch pages reported written at the import, 0 by its 4-byte settle read, 0 after it, 0 after a full GPU read, 0 after a second, 0 after a GPU write, 1 after a CPU store); direct host imports of private memory are settled and stay watched, separate shared aliases retain guest write tracking
2646: [src/VulkanDevice.cpp:2266 VulkanDevice] Surface capabilities drawable=1109x624 min=1109x624 max=1109x624 minImages=2 maxImages=16 usage=0x9f
2646: [src/VulkanDevice.cpp:2308 VulkanDevice] Swapchain created swapchain=0000200000000020 extent=1109x624 images=3
2646: [float-controls] f32 denormal flush: hardware (0 of 5472 probe results differ from the emulated flush, 380 ms)
1/2 Test #2646: guest_video_out_wqhd_detection .............   Passed    0.70 sec
test 2647
    Start 2647: guest_video_out_wqhd_detection_no_vulkan

2647: Test command: C:\tmp\anyps5-14149\build\tests\guest_video_out_wqhd_detection_exit_tests.exe
2647: Working Directory: C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut
2647: Environment variables: 
2647:  VK_DRIVER_FILES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2647:  VK_ICD_FILENAMES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2647: Environment variable modifications: 
2647:  PATH=path_list_prepend:C:/tmp/anyps5-14149/build/core/libs/libs/unpatched
2647: Test timeout computed to be: 20
2647: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
2647: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 5800X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
2647: skipped, no display or Vulkan device: DisplayWindow: Installed Vulkan doesn't implement the VK_KHR_surface extension
2/2 Test #2647: guest_video_out_wqhd_detection_no_vulkan ...***Skipped   0.09 sec

The following tests passed:
	guest_video_out_wqhd_detection
	guest_video_out_wqhd_detection_no_vulkan

100% tests passed, 0 tests failed out of 2

Total Test time (real) =   1.18 sec

The following tests did not run:
	2647 - guest_video_out_wqhd_detection_no_vulkan (Skipped)
Original regression: wrapped case skips, unwrapped case fails (initial base)
UpdateCTestConfiguration  from :C:/tmp/anyps5-14149/build/DartConfiguration.tcl
Test project C:/tmp/anyps5-14149/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 2641
    Start 2641: guest_video_out_wqhd_detection_no_vulkan

2641: Test command: C:\tmp\anyps5-14149\build\tests\guest_video_out_wqhd_detection_tests.exe
2641: Working Directory: C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut
2641: Environment variables: 
2641:  VK_DRIVER_FILES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2641:  VK_ICD_FILENAMES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2641: Environment variable modifications: 
2641:  PATH=path_list_prepend:C:/tmp/anyps5-14149/build/core/libs/libs/unpatched
2641: Test timeout computed to be: 20
2641: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
2641: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 5800X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
2641: skipped, no display or Vulkan device: DisplayWindow: Installed Vulkan doesn't implement the VK_KHR_surface extension
1/2 Test #2641: guest_video_out_wqhd_detection_no_vulkan ........***Skipped   0.08 sec
test 2642
    Start 2642: guest_video_out_wqhd_detection_exit_no_vulkan

2642: Test command: C:\tmp\anyps5-14149\build\tests\guest_video_out_wqhd_detection_exit_tests.exe
2642: Working Directory: C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut
2642: Environment variables: 
2642:  VK_DRIVER_FILES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2642:  VK_ICD_FILENAMES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2642: Environment variable modifications: 
2642:  PATH=path_list_prepend:C:/tmp/anyps5-14149/build/core/libs/libs/unpatched
2642: Test timeout computed to be: 20
2642: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
2642: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 5800X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
2642: skipped, no display or Vulkan device: DisplayWindow: Installed Vulkan doesn't implement the VK_KHR_surface extension
2642: 
2642: FATAL: C++ exception St12system_error raised on thread 37220 cannot be delivered: 0x00007ffbb646b4ca libSceAgcDriver.prx+0xe3b4ca has no unwind data
2642:   stack return address candidates:
2642:     [rsp+0x18] 0x00007ffc7d495ba1 ntdll.dll+0x25ba1
2642:     [rsp+0x30] 0x00007ffc7aab5369 KERNELBASE.dll+0x25369
2642:     [rsp+0x48] 0x00007ffc7aec3440 ucrtbase.dll+0x13440
2642:     [rsp+0x60] 0x00007ffbbbf606f0 libstdc++-6.dll+0xc06f0
2642:     [rsp+0x78] 0x00007ffc7aebfde6 ucrtbase.dll+0xfde6
2642:     [rsp+0xa0] 0x00007ffbbbf606f0 libstdc++-6.dll+0xc06f0
2642:     [rsp+0xa8] 0x00007ffbbbddd0b7 libgcc_s_seh-1.dll+0x1d0b7
2642:     [rsp+0xb8] 0x00007ffbbbddce30 libgcc_s_seh-1.dll+0x1ce30
2642:     [rsp+0xd8] 0x00007ffbbbddc5b1 libgcc_s_seh-1.dll+0x1c5b1
2642:     [rsp+0x108] 0x00007ffbbbfdc949 libstdc++-6.dll+0x13c949
2642:     [rsp+0x118] 0x00007ffc7aebf05b ucrtbase.dll+0xf05b
2642:     [rsp+0x148] 0x00007ffbbbfe1f4e libstdc++-6.dll+0x141f4e
2642:     [rsp+0x1a8] 0x00007ffbbbfe1fe7 libstdc++-6.dll+0x141fe7
2642:     [rsp+0x1c0] 0x00007ffbbbfdd4c0 libstdc++-6.dll+0x13d4c0
2642:     [rsp+0x1d8] 0x00007ffbb646b4ca libSceAgcDriver.prx+0xe3b4ca
2642:     [rsp+0x258] 0x00007ffbb56b2f3f libSceAgcDriver.prx+0x82f3f
2642:     [rsp+0x2a8] 0x00007ffc7d495ba1 ntdll.dll+0x25ba1
2642:     [rsp+0x320] 0x00007ffbb56312ef libSceAgcDriver.prx+0x12ef
2642:     [rsp+0x348] 0x00007ffbb56b3232 libSceAgcDriver.prx+0x83232
2642:     [rsp+0x368] 0x00007ffc26fa494c libwinpthread-1.dll+0x494c
2642:     [rsp+0x3b8] 0x00007ffbb56312ef libSceAgcDriver.prx+0x12ef
2642:     [rsp+0x3d8] 0x00007ffc7aec42d6 ucrtbase.dll+0x142d6
2642:     [rsp+0x3f8] 0x00007ffc7aec60ae ucrtbase.dll+0x160ae
2642:     [rsp+0x428] 0x00007ffc7aec41fb ucrtbase.dll+0x141fb
2642:     [rsp+0x458] 0x00007ffc7aec41b4 ucrtbase.dll+0x141b4
2642:     [rsp+0x488] 0x00007ffbb56312a4 libSceAgcDriver.prx+0x12a4
2642:     [rsp+0x4e8] 0x00007ffbb63be86e libSceAgcDriver.prx+0xd8e86e
2642:     [rsp+0x518] 0x00007ffc7d489a26 ntdll.dll+0x19a26
2642:     [rsp+0x558] 0x00007ffbb56313e6 libSceAgcDriver.prx+0x13e6
2642:     [rsp+0x578] 0x00007ffbb63be839 libSceAgcDriver.prx+0xd8e839
2642:     [rsp+0x598] 0x00007ffc7d489a1d ntdll.dll+0x19a1d
2642:     [rsp+0x5c8] 0x00007ffc7d4cf341 ntdll.dll+0x5f341
2/2 Test #2642: guest_video_out_wqhd_detection_exit_no_vulkan ...***Failed    0.22 sec

The following tests passed:
	guest_video_out_wqhd_detection_no_vulkan

50% tests passed, 1 tests failed out of 2

Total Test time (real) =   0.45 sec

The following tests did not run:
	2641 - guest_video_out_wqhd_detection_no_vulkan (Skipped)

The following tests FAILED:
	2642 - guest_video_out_wqhd_detection_exit_no_vulkan (Failed)
Errors while running CTest
Output from these tests are in: C:/tmp/anyps5-14149/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Historical mutation detected by final test registration (initial base)
UpdateCTestConfiguration  from :C:/tmp/anyps5-14149/build/DartConfiguration.tcl
Test project C:/tmp/anyps5-14149/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 2641
    Start 2641: guest_video_out_wqhd_detection_no_vulkan

2641: Test command: C:\tmp\anyps5-14149\build\tests\guest_video_out_wqhd_detection_exit_tests.exe
2641: Working Directory: C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut
2641: Environment variables: 
2641:  VK_DRIVER_FILES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2641:  VK_ICD_FILENAMES=C:/tmp/anyps5-14149/build/core/libs/prx/libSceVideoOut/missing_icd.json
2641: Environment variable modifications: 
2641:  PATH=path_list_prepend:C:/tmp/anyps5-14149/build/core/libs/libs/unpatched
2641: Test timeout computed to be: 20
2641: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
2641: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 5800X 8-Core Processor: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
2641: skipped, no display or Vulkan device: DisplayWindow: Installed Vulkan doesn't implement the VK_KHR_surface extension
2641: 
2641: FATAL: C++ exception St12system_error raised on thread 33552 cannot be delivered: 0x00007ffbb646b4ca libSceAgcDriver.prx+0xe3b4ca has no unwind data
2641:   stack return address candidates:
2641:     [rsp+0x18] 0x00007ffc7d495ba1 ntdll.dll+0x25ba1
2641:     [rsp+0x30] 0x00007ffc7aab5369 KERNELBASE.dll+0x25369
2641:     [rsp+0x48] 0x00007ffc7aec3440 ucrtbase.dll+0x13440
2641:     [rsp+0x60] 0x00007ffbbc5f06f0 libstdc++-6.dll+0xc06f0
2641:     [rsp+0x78] 0x00007ffc7aebfde6 ucrtbase.dll+0xfde6
2641:     [rsp+0xa0] 0x00007ffbbc5f06f0 libstdc++-6.dll+0xc06f0
2641:     [rsp+0xa8] 0x00007ffbbc2cd0b7 libgcc_s_seh-1.dll+0x1d0b7
2641:     [rsp+0xb8] 0x00007ffbbc2cce30 libgcc_s_seh-1.dll+0x1ce30
2641:     [rsp+0xd8] 0x00007ffbbc2cc5b1 libgcc_s_seh-1.dll+0x1c5b1
2641:     [rsp+0x108] 0x00007ffbbc66c949 libstdc++-6.dll+0x13c949
2641:     [rsp+0x118] 0x00007ffc7aebf05b ucrtbase.dll+0xf05b
2641:     [rsp+0x148] 0x00007ffbbc671f4e libstdc++-6.dll+0x141f4e
2641:     [rsp+0x1a8] 0x00007ffbbc671fe7 libstdc++-6.dll+0x141fe7
2641:     [rsp+0x1c0] 0x00007ffbbc66d4c0 libstdc++-6.dll+0x13d4c0
2641:     [rsp+0x1d8] 0x00007ffbb646b4ca libSceAgcDriver.prx+0xe3b4ca
2641:     [rsp+0x258] 0x00007ffbb56b2f3f libSceAgcDriver.prx+0x82f3f
2641:     [rsp+0x2a8] 0x00007ffc7d495ba1 ntdll.dll+0x25ba1
2641:     [rsp+0x320] 0x00007ffbb56312ef libSceAgcDriver.prx+0x12ef
2641:     [rsp+0x348] 0x00007ffbb56b3232 libSceAgcDriver.prx+0x83232
2641:     [rsp+0x368] 0x00007ffc270b494c libwinpthread-1.dll+0x494c
2641:     [rsp+0x3b8] 0x00007ffbb56312ef libSceAgcDriver.prx+0x12ef
2641:     [rsp+0x3d8] 0x00007ffc7aec42d6 ucrtbase.dll+0x142d6
2641:     [rsp+0x3f8] 0x00007ffc7aec60ae ucrtbase.dll+0x160ae
2641:     [rsp+0x428] 0x00007ffc7aec41fb ucrtbase.dll+0x141fb
2641:     [rsp+0x458] 0x00007ffc7aec41b4 ucrtbase.dll+0x141b4
2641:     [rsp+0x488] 0x00007ffbb56312a4 libSceAgcDriver.prx+0x12a4
2641:     [rsp+0x4e8] 0x00007ffbb63be86e libSceAgcDriver.prx+0xd8e86e
2641:     [rsp+0x518] 0x00007ffc7d489a26 ntdll.dll+0x19a26
2641:     [rsp+0x558] 0x00007ffbb56313e6 libSceAgcDriver.prx+0x13e6
2641:     [rsp+0x578] 0x00007ffbb63be839 libSceAgcDriver.prx+0xd8e839
2641:     [rsp+0x598] 0x00007ffc7d489a1d ntdll.dll+0x19a1d
2641:     [rsp+0x5c8] 0x00007ffc7d4cf341 ntdll.dll+0x5f341
1/1 Test #2641: guest_video_out_wqhd_detection_no_vulkan ...***Failed    0.13 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.27 sec

The following tests FAILED:
	2641 - guest_video_out_wqhd_detection_no_vulkan (Failed)
Errors while running CTest
Output from these tests are in: C:/tmp/anyps5-14149/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
100-run clean missing-ICD stress summary (initial base)
Unwrapped no-Vulkan stress: 100 runs; failures=0; elapsed=8.74s
[]

@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 CMake change gives the no-Vulkan test an unwrapped Windows executable so it can cover DLL teardown; the source and supplied focused Windows evidence support that purpose.

What I ran

Reviewed head a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b. Current main was cc26ab44380db3cd7b53715b84f13945227ce28b; the PR API still reports base SHA 14b9cc5a8c6bef60cd82b5e3b067139b549380a8. The current-main merge preview was clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5; no compiler or build was run locally.

git diff --check cc26ab44380db3cd7b53715b84f13945227ce28b...a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b
python3 tools/check_conventions.py --base refs/remotes/upstream/main --head a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b --title 'fix(tests): exercise no-Vulkan shutdown during DLL teardown' --body /tmp/anyps5-14215-body.md
python3 tools/pr_stack_check.py 14215 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-14215-latest

Results

Check Result
git diff --check Passed; no output.
Repository conventions and PR template Passed.
Current-main merge preview Clean; no declared dependency.
Hosted checks Conventions, intake, and labels were pending at the last check.
Focused Windows build and CTest Author-reported pass on the exact PR head; not run locally.
Unedited output from local checks

git diff --check produced no output and exited successfully.

All conventions checks passed.
# PR stack check — fresh

Target: https://github.com/boykopovar/AnyPS5/pull/14215
Target branch tip: `cc26ab44380db3cd7b53715b84f13945227ce28b`
All heads unchanged: **True**
Dependency order: #14215

## Individual merge previews

- PR #14215: **clean** against current base; head `a568bd9d04e3f3a25eddbb5f0c4fa7ff4fd7ee6b`; changed paths: none reported

## Dependency relationships

No declared PR dependencies were found in the target PR chain.

## Limits

Merge previews apply each exact PR head independently to the current base. A dependency head that is absent from its dependent is reported separately from merge conflicts; file overlap is only a signal and does not prove a conflict. This tool does not build, resolve conflicts, publish comments, or update branches.

Negative control

The author reports that restoring the historical profile-output Stop() call made the unwrapped no-Vulkan test fail during DLL teardown in three of three runs. I did not reproduce that mutation locally.

Sources

Not verified

  • I did not build or run CTest locally; the focused Windows results and teardown mutation are author-reported, not independently reproduced.
  • Linux/macOS behavior and console behavior were not exercised. The added registration is Windows-only.
  • The repository precheck's test-quality helper could not run because that helper script is not present in the isolated PR snapshot; this CMake-only change does not modify a C++ test source.

@github-actions github-actions Bot added build prx fix error Closes an issue (Fixes #N) labels Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

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 5021 core/libs/prx/libSceVideoOut/CMakeLists.txt
PR 10112 core/libs/prx/libSceVideoOut/CMakeLists.txt
PR 11119 core/libs/prx/libSceVideoOut/CMakeLists.txt
PR 12863 core/libs/prx/libSceVideoOut/CMakeLists.txt

@oneandonlydean oneandonlydean self-assigned this Nov 1, 2026
@oneandonlydean
oneandonlydean merged commit 5123e46 into boykopovar:main Nov 1, 2026
3 checks passed
@Betr0x Betr0x mentioned this pull request Nov 1, 2026
12 tasks done
@angrysandhill
angrysandhill deleted the fix/14149-shutdown-regression branch November 22, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build fix error Closes an issue (Fixes #N) prx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

guest_video_out_wqhd_detection_no_vulkan no longer reaches the AGC driver shutdown it was added for

3 participants