video_out_flip_overlay and video_out_flip_padstatus lose the device on a GTX 1070 (Windows, NVIDIA 582.78): write invalid at 0x0 #19798

Closed
opened 2026-11-13 23:09:44 +00:00 by tesivo · 0 comments
tesivo commented 2026-11-13 23:09:44 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tesivo on 2026-11-13T23:09:44Z.


What happens

video_out_flip_overlay and video_out_flip_padstatus stop with VK_ERROR_DEVICE_LOST ("vkQueueSubmit clear: Vulkan result -4", device fault "write invalid at 0x0") on the first present; every other video_out_flip test passes.

Title, test or build step

ctest: video_out_flip_overlay, video_out_flip_padstatus

AnyPS5 commit

19b5d78fff (main, 2026-11-14), no pull requests on top. Also reproduced on 3a0a54bbd8.

System

Windows 10.0.26340 (Insider build), WinLibs GCC 15.2.0 r7 (x86_64-ucrt-posix-seh), NVIDIA GeForce GTX 1070 (Pascal, driver 582.78, Vulkan 1.4.312)

Host report

AnyPS5 host report (format 1)
commit: 19b5d78fff77
[system]
os: Windows 10.0.26340
cpu: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
cpu_threads: 8
memory_mib: 16348
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: NVIDIA GeForce GTX 1070
type: discrete
vendor_id: 0x10de
device_id: 0x1b81
vulkan_api: 1.4.312
driver: NVIDIA
driver_info: 582.78
driver_version: 582.78.0.0
driver_version_raw: 0x91938000
subgroup_size: 32
device_local_mib: 8067
present_modes: fifo, fifo_latest_ready, fifo_relaxed, immediate, mailbox
[vulkan]
(all required extensions and features present)
VK_EXT_mesh_shader: extension optional missing
VK_KHR_fragment_shader_barycentric: extension optional missing
VK_KHR_present_mode_fifo_latest_ready: extension optional missing
(all other optional extensions present)

Steps to reproduce

ctest --test-dir build -R "^video_out_flip_(overlay|padstatus|labels)$" -j 1

Both overlay tests fail in about 3-4 s with exit code 0xc0000409 (the uncaught std::runtime_error); video_out_flip_labels passes. Results are the same run alone or with -j 8.

What I checked:

  • VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (VK_LOADER_DEBUG=layer confirms the insertion): no validation error or warning before the loss.
  • APS5_GPU_CHECKPOINTS=1: "no checkpoint reached" on the main, present, settle and sparse queues.
  • GPU-assisted validation (VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT, APS5_NO_SHADER_CACHE=1): the layer's own pre-submission command buffer already fails ("Failed to submit per pre submission command buffer"), so the device seems lost before the presentation submit that reports it.
  • APS5_NO_GPL=1: same failure.

The two failing tests are the ones where PerformanceOverlay records a render pass on the swapchain image (Record / RecordRects); the other flip tests only blit. As far as I can tell these tests do not run in CI (#6899), so this hardware path may not have been exercised.

Log

[mouse] video driver windows: guest 259x137 presented at 1100x582, delta scale 0.2355 x 0.2354
[device-fault] gpu NVIDIA GeForce GTX 1070 vendor 0x10de device 0x1b81 driver NVIDIA 582.78 commit 19b5d78fff77
[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 0:
[device-fault] write invalid at 0x0 (precision 0x1000)
[device-fault] queue present
[device-fault] queue settle
[device-fault] queue sparse
[gpu] driver failure: vkQueueSubmit clear: Vulkan result -4
[videoout] presentation failed: vkQueueSubmit clear: Vulkan result -4
terminate called after throwing an instance of 'std::runtime_error'
  what():  vkQueueSubmit clear: Vulkan result -4
[pm4 ring] queue 0x0 #1 serial 1 t=0.0 ms: 6 dwords from 0x729a1fe9c0, first 6 kept
[pm4 ring]   +0x0000 FLIP 00000001 00000000 00000001 00000001 00000000

What was checked

issue-overlay.log

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6381663159 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/19798). Originally posted by [tesivo](https://github.com/tesivo) on 2026-11-13T23:09:44Z. --- ### What happens video_out_flip_overlay and video_out_flip_padstatus stop with VK_ERROR_DEVICE_LOST ("vkQueueSubmit clear: Vulkan result -4", device fault "write invalid at 0x0") on the first present; every other video_out_flip test passes. ### Title, test or build step ctest: video_out_flip_overlay, video_out_flip_padstatus ### AnyPS5 commit 19b5d78fff (main, 2026-11-14), no pull requests on top. Also reproduced on 3a0a54bbd8. ### System Windows 10.0.26340 (Insider build), WinLibs GCC 15.2.0 r7 (x86_64-ucrt-posix-seh), NVIDIA GeForce GTX 1070 (Pascal, driver 582.78, Vulkan 1.4.312) ### Host report ```text AnyPS5 host report (format 1) commit: 19b5d78fff77 [system] os: Windows 10.0.26340 cpu: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz cpu_threads: 8 memory_mib: 16348 cpu_gate: passed [sdl] linked: 2.33.0 compiled: 2.33.0 [gpu] device: NVIDIA GeForce GTX 1070 type: discrete vendor_id: 0x10de device_id: 0x1b81 vulkan_api: 1.4.312 driver: NVIDIA driver_info: 582.78 driver_version: 582.78.0.0 driver_version_raw: 0x91938000 subgroup_size: 32 device_local_mib: 8067 present_modes: fifo, fifo_latest_ready, fifo_relaxed, immediate, mailbox [vulkan] (all required extensions and features present) VK_EXT_mesh_shader: extension optional missing VK_KHR_fragment_shader_barycentric: extension optional missing VK_KHR_present_mode_fifo_latest_ready: extension optional missing (all other optional extensions present) ``` ### Steps to reproduce ctest --test-dir build -R "^video_out_flip_(overlay|padstatus|labels)$" -j 1 Both overlay tests fail in about 3-4 s with exit code 0xc0000409 (the uncaught std::runtime_error); video_out_flip_labels passes. Results are the same run alone or with -j 8. What I checked: - VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (VK_LOADER_DEBUG=layer confirms the insertion): no validation error or warning before the loss. - APS5_GPU_CHECKPOINTS=1: "no checkpoint reached" on the main, present, settle and sparse queues. - GPU-assisted validation (VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT, APS5_NO_SHADER_CACHE=1): the layer's own pre-submission command buffer already fails ("Failed to submit per pre submission command buffer"), so the device seems lost before the presentation submit that reports it. - APS5_NO_GPL=1: same failure. The two failing tests are the ones where PerformanceOverlay records a render pass on the swapchain image (Record / RecordRects); the other flip tests only blit. As far as I can tell these tests do not run in CI (#6899), so this hardware path may not have been exercised. ### Log ```text [mouse] video driver windows: guest 259x137 presented at 1100x582, delta scale 0.2355 x 0.2354 [device-fault] gpu NVIDIA GeForce GTX 1070 vendor 0x10de device 0x1b81 driver NVIDIA 582.78 commit 19b5d78fff77 [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 0: [device-fault] write invalid at 0x0 (precision 0x1000) [device-fault] queue present [device-fault] queue settle [device-fault] queue sparse [gpu] driver failure: vkQueueSubmit clear: Vulkan result -4 [videoout] presentation failed: vkQueueSubmit clear: Vulkan result -4 terminate called after throwing an instance of 'std::runtime_error' what(): vkQueueSubmit clear: Vulkan result -4 [pm4 ring] queue 0x0 #1 serial 1 t=0.0 ms: 6 dwords from 0x729a1fe9c0, first 6 kept [pm4 ring] +0x0000 FLIP 00000001 00000000 00000001 00000001 00000000 ``` ### What was checked [issue-overlay.log](https://github.com/user-attachments/files/34829266/issue-overlay.log)
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#19798
No description provided.