AGC: deterministic VK_ERROR_DEVICE_LOST on the first story load since #10472 (PPSA06866); APS5_NO_IMAGE_SLABS=1 avoids it #22216

Closed
opened 2026-11-17 09:18:31 +00:00 by phoenix-31 · 0 comments
phoenix-31 commented 2026-11-17 09:18:31 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by phoenix-31 on 2026-11-17T09:18:31Z.


What happens

The GPU device is lost on the first story load, "compute shader 0x2876200: AGC graphics: vkWaitForFences recorder: Vulkan result -4"; bisected to the merge of #10472.

Title, test or build step

PPSA06866 (Divinity: Original Sin II Definitive Edition) 01.007.000

AnyPS5 commit

main deb7699779 plus two local changes this title needs to get this far: NoStoreSinceLastCollect from b411d5f6ca (blocker 4 in #13726) and HTILE-only publication from 5679a021b4. The crash is the same with the HTILE change switched off.

System

Windows 11 Home 10.0.26300, RTX 4060 Ti 8 GB (NVIDIA 610.60), WinLibs GCC 15.2.0

Host report

AnyPS5 host report (format 1)
commit: deb76997791e
[system]
os: Windows 10.0.26300
cpu: Intel(R) Core(TM) i7-14700KF
cpu_threads: 28
memory_mib: 16105
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: NVIDIA GeForce RTX 4060 Ti
type: discrete
vendor_id: 0x10de
device_id: 0x2803
vulkan_api: 1.4.341
driver: NVIDIA
driver_info: 610.60
driver_version: 610.60.0.0
driver_version_raw: 0x988f0000
subgroup_size: 32
device_local_mib: 7949
candidates: NVIDIA GeForce RTX 4060 Ti
present_modes: unknown
present_mode_requested: default
[vulkan]
VK_KHR_8bit_storage: extension required present
VK_KHR_buffer_device_address: extension required present
VK_KHR_shader_float_controls: extension required present
bufferDeviceAddress: feature required present
fragmentStoresAndAtomics: feature required present
samplerAnisotropy: feature required present
shaderInt64: feature required present
shaderSignedZeroInfNanPreserveFloat32: feature required present
storageBuffer8BitAccess: feature required present
textureCompressionBC: feature required present
vertexPipelineStoresAndAtomics: feature required present
VK_EXT_external_memory_host: extension optional present
VK_EXT_fragment_shader_interlock: extension optional present
VK_EXT_hdr_metadata: extension optional present
VK_EXT_memory_budget: extension optional present
VK_EXT_mesh_shader: extension optional present
VK_EXT_present_mode_fifo_latest_ready: extension optional present
VK_EXT_provoking_vertex: extension optional present
VK_EXT_sample_locations: extension optional present
VK_EXT_sampler_filter_minmax: extension optional present
VK_EXT_shader_demote_to_helper_invocation: extension optional present
VK_EXT_shader_image_atomic_int64: extension optional present
VK_KHR_draw_indirect_count: extension optional present
VK_KHR_driver_properties: extension optional present
VK_KHR_fragment_shader_barycentric: extension optional present
VK_KHR_maintenance5: extension optional present
VK_KHR_present_mode_fifo_latest_ready: extension optional present
VK_KHR_shader_atomic_int64: extension optional present
VK_KHR_shader_clock: extension optional present
VK_KHR_shader_terminate_invocation: extension optional present
VK_KHR_spirv_1_4: extension optional present
[shader_cache]
state: present
size_mib: 52
[environment]
ANYPS5_GPU: 4060
ANYPS5_HOST_REPORT: 1
APS5_LOG_TIMESTAMPS: 1
APS5_PAD_INPUT_FILE: <path>
APS5_PROFILE_DRAW: 1
APS5_TRACE_SUMMARY_EVERY: 10

Steps to reproduce

  1. Unwrap eboot.bin and the three sce_module PRX with tools/unwrap_self.py, then relinker --windows --registry src\eboot.elf app.exe.
  2. Run app.exe > run.log 2>&1 with APS5_PROFILE_DRAW=1 APS5_LOG_TIMESTAMPS=1 APS5_TRACE_SUMMARY_EVERY=10 ANYPS5_HOST_REPORT=1 ANYPS5_GPU=4060. Default settings.
  3. Start a new game (Cross through the menus), or Continue a save.
  4. The device is lost on the load that opens /temp0/Temp/Story/story_generated.div: 66 to 274 s after launch on the new-game route, 86 s with Continue.

Log

[device-fault] gpu NVIDIA GeForce RTX 4060 Ti vendor 0x10de device 0x2803 driver NVIDIA 610.60 commit deb76997791e dirty
[device-fault] queue main
[device-fault] no per-submit marker (submit serial unknown; markers need APS5_GPU_CHECKPOINTS on the main queue)
[device-fault] result 5:
[device-fault] instruction pointer fault at 0x28015ad10 (precision 0x10)
[device-fault] live resource 0x391b00000 size 0xff0000 texture
[device-fault] write invalid at 0x781e80000 (precision 0x1000)
[device-fault] live resource 0x3aa200000 size 0x2af000 texture
[gpu] driver failure: compute shader 0x2876200: AGC graphics: vkWaitForFences recorder: Vulkan result -4
terminate called after throwing an instance of 'std::runtime_error'
  what():  compute shader 0x2876200: AGC graphics: vkWaitForFences recorder: Vulkan result -4

What was checked

  • Same every run: 4 of 4 runs on deb7699779, three on the new-game route and one with Continue (that one failed in vkQueueSubmit with the same result). Every run reports an invalid GPU write, and the new-game runs name the same live texture at 0x391b00000. APS5_GPU_CHECKPOINTS=1 reached no checkpoint.
  • Workaround: with APS5_NO_IMAGE_SLABS=1 on the same build, the title loads into play (one run).
  • Older builds: XatiX's test branches on main from 31 October (2e499428ca) and 3 November (e3f99a64da) load into play on this machine, one run each.
  • Bisect: first-parent main from 04a9eb4fa2 to deb7699779. Last good eecbc4f185, first bad aa5186e240 (merge of #10472), no commits between. 3 good and 10 bad verdicts, consistent on both sides; one commit failed to build and was skipped. Each verdict is one run.
  • Bisect setup: every commit carried the stencil copy (c4f8fcdbef) and the blocker 4 and 6 commits (b411d5f6ca, 65936fa414), because the title stops before this load without them. "Good" means still running 300 s after launch, after the story load.
  • Not tested: another GPU, or a card with more than 8 GB of VRAM.

htile run
no slabs run

AI-assisted: yes. The bisect scripts and this report were prepared with Claude; the runs are mine.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6441313050 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/22216). Originally posted by [phoenix-31](https://github.com/phoenix-31) on 2026-11-17T09:18:31Z. --- ### What happens The GPU device is lost on the first story load, "compute shader 0x2876200: AGC graphics: vkWaitForFences recorder: Vulkan result -4"; bisected to the merge of #10472. ### Title, test or build step PPSA06866 (Divinity: Original Sin II Definitive Edition) 01.007.000 ### AnyPS5 commit main deb7699779 plus two local changes this title needs to get this far: NoStoreSinceLastCollect from b411d5f6ca (blocker 4 in #13726) and HTILE-only publication from 5679a021b4. The crash is the same with the HTILE change switched off. ### System Windows 11 Home 10.0.26300, RTX 4060 Ti 8 GB (NVIDIA 610.60), WinLibs GCC 15.2.0 ### Host report ```text AnyPS5 host report (format 1) commit: deb76997791e [system] os: Windows 10.0.26300 cpu: Intel(R) Core(TM) i7-14700KF cpu_threads: 28 memory_mib: 16105 cpu_gate: passed [sdl] linked: 2.33.0 compiled: 2.33.0 [gpu] device: NVIDIA GeForce RTX 4060 Ti type: discrete vendor_id: 0x10de device_id: 0x2803 vulkan_api: 1.4.341 driver: NVIDIA driver_info: 610.60 driver_version: 610.60.0.0 driver_version_raw: 0x988f0000 subgroup_size: 32 device_local_mib: 7949 candidates: NVIDIA GeForce RTX 4060 Ti present_modes: unknown present_mode_requested: default [vulkan] VK_KHR_8bit_storage: extension required present VK_KHR_buffer_device_address: extension required present VK_KHR_shader_float_controls: extension required present bufferDeviceAddress: feature required present fragmentStoresAndAtomics: feature required present samplerAnisotropy: feature required present shaderInt64: feature required present shaderSignedZeroInfNanPreserveFloat32: feature required present storageBuffer8BitAccess: feature required present textureCompressionBC: feature required present vertexPipelineStoresAndAtomics: feature required present VK_EXT_external_memory_host: extension optional present VK_EXT_fragment_shader_interlock: extension optional present VK_EXT_hdr_metadata: extension optional present VK_EXT_memory_budget: extension optional present VK_EXT_mesh_shader: extension optional present VK_EXT_present_mode_fifo_latest_ready: extension optional present VK_EXT_provoking_vertex: extension optional present VK_EXT_sample_locations: extension optional present VK_EXT_sampler_filter_minmax: extension optional present VK_EXT_shader_demote_to_helper_invocation: extension optional present VK_EXT_shader_image_atomic_int64: extension optional present VK_KHR_draw_indirect_count: extension optional present VK_KHR_driver_properties: extension optional present VK_KHR_fragment_shader_barycentric: extension optional present VK_KHR_maintenance5: extension optional present VK_KHR_present_mode_fifo_latest_ready: extension optional present VK_KHR_shader_atomic_int64: extension optional present VK_KHR_shader_clock: extension optional present VK_KHR_shader_terminate_invocation: extension optional present VK_KHR_spirv_1_4: extension optional present [shader_cache] state: present size_mib: 52 [environment] ANYPS5_GPU: 4060 ANYPS5_HOST_REPORT: 1 APS5_LOG_TIMESTAMPS: 1 APS5_PAD_INPUT_FILE: <path> APS5_PROFILE_DRAW: 1 APS5_TRACE_SUMMARY_EVERY: 10 ``` ### Steps to reproduce 1. Unwrap `eboot.bin` and the three `sce_module` PRX with `tools/unwrap_self.py`, then `relinker --windows --registry src\eboot.elf app.exe`. 2. Run `app.exe > run.log 2>&1` with `APS5_PROFILE_DRAW=1 APS5_LOG_TIMESTAMPS=1 APS5_TRACE_SUMMARY_EVERY=10 ANYPS5_HOST_REPORT=1 ANYPS5_GPU=4060`. Default settings. 3. Start a new game (Cross through the menus), or Continue a save. 4. The device is lost on the load that opens `/temp0/Temp/Story/story_generated.div`: 66 to 274 s after launch on the new-game route, 86 s with Continue. ### Log ```text [device-fault] gpu NVIDIA GeForce RTX 4060 Ti vendor 0x10de device 0x2803 driver NVIDIA 610.60 commit deb76997791e dirty [device-fault] queue main [device-fault] no per-submit marker (submit serial unknown; markers need APS5_GPU_CHECKPOINTS on the main queue) [device-fault] result 5: [device-fault] instruction pointer fault at 0x28015ad10 (precision 0x10) [device-fault] live resource 0x391b00000 size 0xff0000 texture [device-fault] write invalid at 0x781e80000 (precision 0x1000) [device-fault] live resource 0x3aa200000 size 0x2af000 texture [gpu] driver failure: compute shader 0x2876200: AGC graphics: vkWaitForFences recorder: Vulkan result -4 terminate called after throwing an instance of 'std::runtime_error' what(): compute shader 0x2876200: AGC graphics: vkWaitForFences recorder: Vulkan result -4 ``` ### What was checked - **Same every run:** 4 of 4 runs on deb7699779, three on the new-game route and one with Continue (that one failed in `vkQueueSubmit` with the same result). Every run reports an invalid GPU write, and the new-game runs name the same live texture at 0x391b00000. `APS5_GPU_CHECKPOINTS=1` reached no checkpoint. - **Workaround:** with `APS5_NO_IMAGE_SLABS=1` on the same build, the title loads into play (one run). - **Older builds:** XatiX's test branches on `main` from 31 October (2e499428ca) and 3 November (e3f99a64da) load into play on this machine, one run each. - **Bisect:** first-parent `main` from 04a9eb4fa2 to deb7699779. Last good eecbc4f185, first bad aa5186e240 (merge of #10472), no commits between. 3 good and 10 bad verdicts, consistent on both sides; one commit failed to build and was skipped. Each verdict is one run. - **Bisect setup:** every commit carried the stencil copy (c4f8fcdbef) and the blocker 4 and 6 commits (b411d5f6ca, 65936fa414), because the title stops before this load without them. "Good" means still running 300 s after launch, after the story load. - **Not tested:** another GPU, or a card with more than 8 GB of VRAM. [htile run](https://github.com/user-attachments/files/34962612/run.log) [no slabs run](https://github.com/user-attachments/files/34962658/run.log) AI-assisted: yes. The bisect scripts and this report were prepared with Claude; the runs are mine.
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#22216
No description provided.