RX 6800 XT: RADV command submission failures, D3D12 device removal and 0xc0000005 crash #147

Open
opened 2026-12-02 01:45:43 +00:00 by github-bot · 3 comments
Owner

@⁠sabogalc on GitHub · 2026-12-02 01:41 UTC · original

play-20261201-195339.log

victory-20261201-200757-32.crash.log

Summary

VIctory crashed during gameplay with an unhandled access violation, accompanied by RADV GPU command-submission failures and a D3D12 device removal.

The crash occurred while running the default configuration. I did not explicitly enable FSR or configure any FSR preset.

This may be related to existing RX 6800 XT reports #57, #82 and #89, but the immediate failure signature is different.

The main observations are:

  • Unhandled 0xc0000005 exception reading address 0x8 at ntdll.dll+0x3de5c.
  • RADV reports insufficient memory for command submission.
  • vkd3d-proton reports failed command submissions and Vulkan timeline semaphore waits (vr -4).
  • VIctory reports D3D12 device removal (0x887A0005).
  • The RX 6800 XT is correctly detected as the host D3D12 adapter.
  • The integrated Radeon 840M is also detected by Vulkan/RADV.
  • Unified memory initialization reports only 4080 MiB available for the title despite the RX 6800 XT having 16 GiB VRAM.
  • The Linux kernel log contains no matching amdgpu timeout, GPU reset or OOM messages during the crash window.

I would appreciate help determining whether this is related to the allocator/resource-management issues being investigated in #57, or a separate GPU submission/resource-management problem.

Environment

  • OS: CachyOS Linux (Arch-based)
  • Kernel: 7.3.6-1-cachyos
  • GPU: AMD Radeon RX 6800 XT 16 GB (Navi 21, PowerColor)
  • Integrated GPU: AMD Radeon 840M
  • CPU: AMD Ryzen AI 5 340 (6 cores / 12 threads)
  • System RAM: 16 GiB (14 GiB reported usable)
  • Swap: 14 GiB
  • Mesa: 3:26.3.1-5
  • RADV: vulkan-radeon 3:26.3.1-5
  • 32-bit Mesa: lib32-mesa 3:26.3.1-1
  • 32-bit RADV: lib32-vulkan-radeon 3:26.3.1-1
  • Wine: 11.23-1.1
  • DXVK: 3.1.1
  • VKD3D-Proton: 3.2.0
  • VIctory-xmem commit: f7f0360
  • Display server: [Wayland/X11]

Both AMD GPUs use the amdgpu kernel driver.

Launch procedure

I followed the standard setup and launch procedure:

./setup.sh
echo 'GAME=/path/to/your/dump' > run.conf
./run.sh shaders
./run.sh play

No custom FSR preset or explicit FSR configuration was supplied. This was intended to be a default-configuration run.

Startup and GPU initialization

The runtime started using:

Runtime: /usr/bin/wine
Binary: /home/Downloads/VIctory-xmem-main/target/x86_64-pc-windows-msvc/release/victory.exe

Build:

b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93

The log confirms that both GPUs are detected:

Found device: Radeon RX 6800/6800 XT / 6900 XT (radv 26.3.1)
Found device: AMD Radeon 840M Graphics (RADV KRACKAN1) (radv 26.3.1)

The host D3D12 adapter is correctly identified as the RX 6800 XT:

host D3D12 adapter
adapter="Radeon RX 6800/6800 XT / 6900 XT"
vendor=0x1002
device=0x73bf
vram_mb=16368

The host D3D12 device initializes successfully:

host D3D12 device ready

VKD3D-Proton reports:

vkd3d-proton - applicationVersion: 3.2.0.

The driver also reports:

Enabling support for SM 6.6.
Enabling support for SM 6.7.
Enabling support for SM 6.8.
DXR support enabled.
DXR 1.1 support enabled.
DX Ultimate supported!

Unified memory and VRAM allocation

Unified memory initialization reports:

unified memory: title graphics memory is the card driver's own, shown to the title where it asks
ram=5
vram=Some(3)
card_mb_for_title=4080

This seems worth investigating because the GPU has approximately 16 GiB of physical VRAM, but the title is initially given approximately 4 GiB.

The log also reports:

vkd3d_memory_info_init_budgets:
Applying resizable BAR budget to memory types: 0x218.

The launch warning reports:

warning: the game may use 5215 MiB of RAM
(13407 MiB available, 8192 kept free);
below 12288 it swaps and stutters.

System memory at the time of the system information collection:

Mem: 14Gi total, 3.4Gi used, 7.9Gi free, 11Gi available
Swap: 14Gi total, 777Mi used

I have not established whether the 4 GiB title allocation is expected behavior or related to the eventual GPU submission failure.

Crash details

Timestamp: 2026-12-02 01:07:57 UTC

VIctory reported an unhandled exception:

0xc0000005 at ntdll.dll+0x3de5c
(read 0x8: nothing mapped there)

Register state:

rax 0x60
rbx 0x7ff76e2b5984
rcx 0x6f208cefde50
rdx 0x8
rsi 0x2
rdi 0x2
rsp 0xde4076eaf0
rbp 0x6f208cf54f38
r8 0x4
r9 0x0
r10 0x0
r11 0x7ff76d8c0000
r12 0xffffffff
r13 0x201e0d0300
r14 0xde4076ec90
r15 0xffffffffffffffc0

Application stack:

#0  ntdll.dll+0x3de5c
#1  ntdll.dll+0x3db2d
#2  victory.exe+0x611e6d
#3  victory.exe+0x617d50
#4  victory.exe+0x1b2e68
#5  victory.exe+0x199309
#6  victory.exe+0x1aaea6
#7  victory.exe+0x1ffad9
#8  victory.exe+0x1b6b41
#9  victory.exe+0x145846
#10 kernel32.dll+0x117b9
#11 ntdll.dll+0x1116f

The exception was reported as both first-chance and unhandled.

Relevant worker-thread observations

Several worker threads were active inside victory-image.

In particular, thread 336 had the following stack:

#0  ntdll.dll+0xec74
#1  kernelbase.dll+0x7753d
#2  victory-image-b99f876b74d4a77f.dll+0x55e9475
#3  victory-image-b99f876b74d4a77f.dll+0x55e8cf8
#4  kernelbase.dll+0x6c526
#5  ntdll.dll+0x54115
#6  ntdll.dll+0x10e6d
#7  ntdll.dll+0x53ae7
#8  ntdll.dll+0x5681a
#9  ntdll.dll+0x10e9e
#10 victory-image-b99f876b74d4a77f.dll+0x2215c35
#11 victory-image-b99f876b74d4a77f.dll+0x2215eca
#12 kernel32.dll+0x117b9
#13 ntdll.dll+0x1116f

Other worker threads also had stacks involving:

victory-image-b99f876b74d4a77f.dll+0x221c3c2
victory-image-b99f876b74d4a77f.dll+0x2215eca

These offsets are interesting because #57 describes a suspected corrupted title-side allocator list and a worker spinning in related code.

However, I have not established that these threads were executing the same allocator-list traversal or that the same corruption occurred here.

GPU errors and device removal

Immediately around the crash, the log reported:

radv/amdgpu: Not enough memory for command submission.

vkd3d-proton subsequently reported:

vkd3d-proton:d3d12_command_queue_execute:
Failed to submit queue(s), vr -4.

vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore:
Failed to wait for Vulkan timeline semaphore, vr -4.

vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore:
Failed to wait for Vulkan timeline semaphore, vr -4.

vkd3d-proton:d3d12_command_queue_execute:
Failed to submit queue(s), vr -4.

VIctory then reported:

host GPU device removed after 3 submissions
sent ahead of 3 lists;

device removed: 0x887A0005

submissions started 3 finished 0

The final host GPU error was:

VIctory: host GPU failure:
host GPU device removed after 3 submissions
sent ahead of 3 lists;
device removed: 0x887A0005

The host GPU diagnostic also stated that the submitting thread was between submissions, with no command list currently running on the card.

I do not know whether these GPU failures triggered the application exception, resulted from it, or represent a separate failure.

Memory observations

The log contains this title memory allocation request:

victory_hle::modules::xmem:
title memory asked for as protection 0x2004,
kind 0x203000, flags 0x283:
1 times, 8 MB,
last 0x1fd000000+0x8c0000

The GPU submission failure raises the possibility of resource or VRAM pressure, although I have not established that this was the cause.

Crash diagnostic debug information

The crash diagnostic contains:

Game Running Time: 0h:0m:0s
Game Timestamp: [T:172801646]
Game State: Game Init [T:172767012]
Frame: 0
Paused: No
Streaming Requests: 0
TileHeap: used (420Mb) - total (6236Mb)

It also reports:

Game Environment: unknown
Game Locale: US
Game SKU: ROW
TitleID: 7952987a
Console Type: Anaconda
Sandbox: RETAIL
Version: 930.048.020-vb_sub_story

#57 - RX 6800 XT / RDNA2: Hang followed by null write

This is particularly interesting because subsequent investigation identified suspected corruption of a title-side doubly linked allocator list.

The investigation describes:

  • 20-byte allocator entries with 16-bit links.
  • A worker spinning while traversing the list at +0x2626877.
  • A subsequent unlink operation encountering an invalid previous link.
  • A watchdog-triggered null write at victory-image+0x2215c35.

My crash has a different immediate exception signature, but some worker-thread stacks contain victory-image+0x2215c35 and victory-image+0x2215eca.

I have not established whether the same underlying allocator issue is involved.

#82 - RX 6800 XT: Crash after 32,848 frames

Another RX 6800 XT crash with 0xc0000005 inside victory-image.

That report also mentions FSR4 pipeline deserialization failures and pipeline creation warnings. My run did not explicitly enable FSR, so I do not know whether those findings are relevant.

#89 - RDNA2 findings and patches

This report documents RX 6800 XT findings involving:

  • FSR 3.1 fallback.
  • Output resolution with FSR.
  • Host/title VRAM allocation.
  • Residency promotion.
  • Thread-pool sizing.

The measurements suggest that the default memory split can significantly constrain title VRAM on a 16 GB card.

I have not tested the patches from that report against this crash.

Questions

  1. Could the application-side exception be related to the allocator corruption investigated in #57?
  2. Can the worker-thread offsets in my dump be compared against the allocator traversal identified in #57?
  3. Could the RADV submission failure and D3D12 device removal indicate a separate resource-management or VRAM issue?
  4. Is the approximately 4 GiB card_mb_for_title allocation expected on a 16 GiB RX 6800 XT?
  5. Could the presence of both the RX 6800 XT and integrated Radeon 840M cause adapter-selection or resource-sharing problems?
  6. Are the memory allocation and thread-pool changes from #89 worth testing against this crash?
  7. Is there a recommended diagnostic configuration to identify which D3D12 command or Vulkan operation caused the device removal?
**@⁠sabogalc** on GitHub · 2026-12-02 01:41 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/147) [play-20261201-195339.log](https://github.com/user-attachments/files/35715557/play-20261201-195339.log) [victory-20261201-200757-32.crash.log](https://github.com/user-attachments/files/35715562/victory-20261201-200757-32.crash.log) ## Summary VIctory crashed during gameplay with an unhandled access violation, accompanied by RADV GPU command-submission failures and a D3D12 device removal. The crash occurred while running the default configuration. I did not explicitly enable FSR or configure any FSR preset. This may be related to existing RX 6800 XT reports #57, #82 and #89, but the immediate failure signature is different. The main observations are: - Unhandled `0xc0000005` exception reading address `0x8` at `ntdll.dll+0x3de5c`. - RADV reports insufficient memory for command submission. - vkd3d-proton reports failed command submissions and Vulkan timeline semaphore waits (vr -4). - VIctory reports D3D12 device removal (`0x887A0005`). - The RX 6800 XT is correctly detected as the host D3D12 adapter. - The integrated Radeon 840M is also detected by Vulkan/RADV. - Unified memory initialization reports only 4080 MiB available for the title despite the RX 6800 XT having 16 GiB VRAM. - The Linux kernel log contains no matching amdgpu timeout, GPU reset or OOM messages during the crash window. I would appreciate help determining whether this is related to the allocator/resource-management issues being investigated in #57, or a separate GPU submission/resource-management problem. ## Environment - OS: CachyOS Linux (Arch-based) - Kernel: 7.3.6-1-cachyos - GPU: AMD Radeon RX 6800 XT 16 GB (Navi 21, PowerColor) - Integrated GPU: AMD Radeon 840M - CPU: AMD Ryzen AI 5 340 (6 cores / 12 threads) - System RAM: 16 GiB (14 GiB reported usable) - Swap: 14 GiB - Mesa: 3:26.3.1-5 - RADV: vulkan-radeon 3:26.3.1-5 - 32-bit Mesa: lib32-mesa 3:26.3.1-1 - 32-bit RADV: lib32-vulkan-radeon 3:26.3.1-1 - Wine: 11.23-1.1 - DXVK: 3.1.1 - VKD3D-Proton: 3.2.0 - VIctory-xmem commit: f7f0360 - Display server: [Wayland/X11] Both AMD GPUs use the `amdgpu` kernel driver. ## Launch procedure I followed the standard setup and launch procedure: ``` ./setup.sh echo 'GAME=/path/to/your/dump' > run.conf ./run.sh shaders ./run.sh play ``` No custom FSR preset or explicit FSR configuration was supplied. This was intended to be a default-configuration run. ## Startup and GPU initialization The runtime started using: ``` Runtime: /usr/bin/wine Binary: /home/Downloads/VIctory-xmem-main/target/x86_64-pc-windows-msvc/release/victory.exe ``` Build: ``` b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93 ``` The log confirms that both GPUs are detected: ``` Found device: Radeon RX 6800/6800 XT / 6900 XT (radv 26.3.1) Found device: AMD Radeon 840M Graphics (RADV KRACKAN1) (radv 26.3.1) ``` The host D3D12 adapter is correctly identified as the RX 6800 XT: ``` host D3D12 adapter adapter="Radeon RX 6800/6800 XT / 6900 XT" vendor=0x1002 device=0x73bf vram_mb=16368 ``` The host D3D12 device initializes successfully: ``` host D3D12 device ready ``` VKD3D-Proton reports: ``` vkd3d-proton - applicationVersion: 3.2.0. ``` The driver also reports: ``` Enabling support for SM 6.6. Enabling support for SM 6.7. Enabling support for SM 6.8. DXR support enabled. DXR 1.1 support enabled. DX Ultimate supported! ``` ## Unified memory and VRAM allocation Unified memory initialization reports: ``` unified memory: title graphics memory is the card driver's own, shown to the title where it asks ram=5 vram=Some(3) card_mb_for_title=4080 ``` This seems worth investigating because the GPU has approximately 16 GiB of physical VRAM, but the title is initially given approximately 4 GiB. The log also reports: ``` vkd3d_memory_info_init_budgets: Applying resizable BAR budget to memory types: 0x218. ``` The launch warning reports: ``` warning: the game may use 5215 MiB of RAM (13407 MiB available, 8192 kept free); below 12288 it swaps and stutters. ``` System memory at the time of the system information collection: ``` Mem: 14Gi total, 3.4Gi used, 7.9Gi free, 11Gi available Swap: 14Gi total, 777Mi used ``` I have not established whether the 4 GiB title allocation is expected behavior or related to the eventual GPU submission failure. ## Crash details Timestamp: `2026-12-02 01:07:57 UTC` VIctory reported an unhandled exception: ``` 0xc0000005 at ntdll.dll+0x3de5c (read 0x8: nothing mapped there) ``` Register state: ``` rax 0x60 rbx 0x7ff76e2b5984 rcx 0x6f208cefde50 rdx 0x8 rsi 0x2 rdi 0x2 rsp 0xde4076eaf0 rbp 0x6f208cf54f38 r8 0x4 r9 0x0 r10 0x0 r11 0x7ff76d8c0000 r12 0xffffffff r13 0x201e0d0300 r14 0xde4076ec90 r15 0xffffffffffffffc0 ``` Application stack: ``` #0 ntdll.dll+0x3de5c #1 ntdll.dll+0x3db2d #2 victory.exe+0x611e6d #3 victory.exe+0x617d50 #4 victory.exe+0x1b2e68 #5 victory.exe+0x199309 #6 victory.exe+0x1aaea6 #7 victory.exe+0x1ffad9 #8 victory.exe+0x1b6b41 #9 victory.exe+0x145846 #10 kernel32.dll+0x117b9 #11 ntdll.dll+0x1116f ``` The exception was reported as both first-chance and unhandled. ## Relevant worker-thread observations Several worker threads were active inside victory-image. In particular, thread 336 had the following stack: ``` #0 ntdll.dll+0xec74 #1 kernelbase.dll+0x7753d #2 victory-image-b99f876b74d4a77f.dll+0x55e9475 #3 victory-image-b99f876b74d4a77f.dll+0x55e8cf8 #4 kernelbase.dll+0x6c526 #5 ntdll.dll+0x54115 #6 ntdll.dll+0x10e6d #7 ntdll.dll+0x53ae7 #8 ntdll.dll+0x5681a #9 ntdll.dll+0x10e9e #10 victory-image-b99f876b74d4a77f.dll+0x2215c35 #11 victory-image-b99f876b74d4a77f.dll+0x2215eca #12 kernel32.dll+0x117b9 #13 ntdll.dll+0x1116f ``` Other worker threads also had stacks involving: ``` victory-image-b99f876b74d4a77f.dll+0x221c3c2 victory-image-b99f876b74d4a77f.dll+0x2215eca ``` These offsets are interesting because #57 describes a suspected corrupted title-side allocator list and a worker spinning in related code. However, I have not established that these threads were executing the same allocator-list traversal or that the same corruption occurred here. ## GPU errors and device removal Immediately around the crash, the log reported: ``` radv/amdgpu: Not enough memory for command submission. ``` vkd3d-proton subsequently reported: ``` vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4. vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4. vkd3d-proton:vkd3d_wait_for_gpu_timeline_semaphore: Failed to wait for Vulkan timeline semaphore, vr -4. vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4. ``` VIctory then reported: ``` host GPU device removed after 3 submissions sent ahead of 3 lists; device removed: 0x887A0005 submissions started 3 finished 0 ``` The final host GPU error was: ``` VIctory: host GPU failure: host GPU device removed after 3 submissions sent ahead of 3 lists; device removed: 0x887A0005 ``` The host GPU diagnostic also stated that the submitting thread was between submissions, with no command list currently running on the card. I do not know whether these GPU failures triggered the application exception, resulted from it, or represent a separate failure. ## Memory observations The log contains this title memory allocation request: ``` victory_hle::modules::xmem: title memory asked for as protection 0x2004, kind 0x203000, flags 0x283: 1 times, 8 MB, last 0x1fd000000+0x8c0000 ``` The GPU submission failure raises the possibility of resource or VRAM pressure, although I have not established that this was the cause. ## Crash diagnostic debug information The crash diagnostic contains: ``` Game Running Time: 0h:0m:0s Game Timestamp: [T:172801646] Game State: Game Init [T:172767012] Frame: 0 Paused: No Streaming Requests: 0 TileHeap: used (420Mb) - total (6236Mb) ``` It also reports: ``` Game Environment: unknown Game Locale: US Game SKU: ROW TitleID: 7952987a Console Type: Anaconda Sandbox: RETAIL Version: 930.048.020-vb_sub_story ``` ## Related issues ### #57 - RX 6800 XT / RDNA2: Hang followed by null write This is particularly interesting because subsequent investigation identified suspected corruption of a title-side doubly linked allocator list. The investigation describes: - 20-byte allocator entries with 16-bit links. - A worker spinning while traversing the list at `+0x2626877`. - A subsequent unlink operation encountering an invalid previous link. - A watchdog-triggered null write at `victory-image+0x2215c35`. My crash has a different immediate exception signature, but some worker-thread stacks contain `victory-image+0x2215c35` and `victory-image+0x2215eca`. I have not established whether the same underlying allocator issue is involved. ### #82 - RX 6800 XT: Crash after 32,848 frames Another RX 6800 XT crash with `0xc0000005` inside `victory-image`. That report also mentions FSR4 pipeline deserialization failures and pipeline creation warnings. My run did not explicitly enable FSR, so I do not know whether those findings are relevant. ### #89 - RDNA2 findings and patches This report documents RX 6800 XT findings involving: - FSR 3.1 fallback. - Output resolution with FSR. - Host/title VRAM allocation. - Residency promotion. - Thread-pool sizing. The measurements suggest that the default memory split can significantly constrain title VRAM on a 16 GB card. I have not tested the patches from that report against this crash. ## Questions 1. Could the application-side exception be related to the allocator corruption investigated in #57? 2. Can the worker-thread offsets in my dump be compared against the allocator traversal identified in #57? 3. Could the RADV submission failure and D3D12 device removal indicate a separate resource-management or VRAM issue? 4. Is the approximately 4 GiB card_mb_for_title allocation expected on a 16 GiB RX 6800 XT? 5. Could the presence of both the RX 6800 XT and integrated Radeon 840M cause adapter-selection or resource-sharing problems? 6. Are the memory allocation and thread-pool changes from #89 worth testing against this crash? 7. Is there a recommended diagnostic configuration to identify which D3D12 command or Vulkan operation caused the device removal?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 01:45:44 +00:00
Author
Owner

@⁠sabogalc on GitHub · 2026-12-02 01:56 UTC · original

I performed another run using:

DRI_PRIME=0 ./run.sh play

The crash now reproduces with the same immediate exception signature described in #57.

Crash details

VIctory reported:

VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there)

Followed by:

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there)

The relevant stack is:

#0  victory-image-b99f876b74d4a77f.dll+0x2215c35
#1  victory-image-b99f876b74d4a77f.dll+0x2215eca
#2  kernel32.dll+0x117b9
#3  ntdll.dll+0x1116f

This is particularly interesting because #57 identifies +0x2215c35 as the location of a watchdog-triggered null write following suspected corruption of a title-side allocator list.

Worker-thread observations

Multiple victory-image worker threads were active with stacks involving:

victory-image-b99f876b74d4a77f.dll+0x221c3c2
victory-image-b99f876b74d4a77f.dll+0x2215eca

Other threads had stacks involving:

victory-image-b99f876b74d4a77f.dll+0x2218c82
victory-image-b99f876b74d4a77f.dll+0x221957f
victory-image-b99f876b74d4a77f.dll+0x23cf4dc
victory-image-b99f876b74d4a77f.dll+0x4e7f358

The crash therefore appears to match the specific null-write location from #57, rather than merely sharing a similar access-violation code.

GPU failure still occurs

Immediately after the exception, RADV reported:

radv/amdgpu: Not enough memory for command submission.

VKD3D-Proton also reported:

vkd3d-proton:d3d12_command_queue_execute:
Failed to submit queue(s), vr -4.

So the GPU command-submission failure remains present.

Additional observations

The thread dump also shows:

  • 8 dstorage worker threads.
  • 10 victory-list workers.
  • 10 victory-pipelines workers.
  • A dedicated victory-submit thread.
  • A victory-heap-sync thread.
  • A victory-pipeline-watch thread.

I'm not sure if any of these thread counts or their interactions contribute to the allocator corruption.

Questions following this reproduction

  1. Does the matching null-write offset (+0x2215c35) confirm that this is the same watchdog/allocator failure path investigated in #57?
  2. Can the other worker-thread offsets be compared with the allocator traversal and unlink operations identified in that investigation?
  3. Could the RADV submission failure be a consequence of the allocator failure, or could GPU resource exhaustion be triggering the allocator corruption?
**@⁠sabogalc** on GitHub · 2026-12-02 01:56 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/147#issuecomment-7332284765) I performed another run using: ``` DRI_PRIME=0 ./run.sh play ``` The crash now reproduces with the same immediate exception signature described in #57. ## Crash details VIctory reported: ``` VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there) ``` Followed by: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there) ``` The relevant stack is: ``` #0 victory-image-b99f876b74d4a77f.dll+0x2215c35 #1 victory-image-b99f876b74d4a77f.dll+0x2215eca #2 kernel32.dll+0x117b9 #3 ntdll.dll+0x1116f ``` This is particularly interesting because #57 identifies `+0x2215c35` as the location of a watchdog-triggered null write following suspected corruption of a title-side allocator list. ## Worker-thread observations Multiple victory-image worker threads were active with stacks involving: ``` victory-image-b99f876b74d4a77f.dll+0x221c3c2 victory-image-b99f876b74d4a77f.dll+0x2215eca ``` Other threads had stacks involving: ``` victory-image-b99f876b74d4a77f.dll+0x2218c82 victory-image-b99f876b74d4a77f.dll+0x221957f victory-image-b99f876b74d4a77f.dll+0x23cf4dc victory-image-b99f876b74d4a77f.dll+0x4e7f358 ``` The crash therefore appears to match the specific null-write location from #57, rather than merely sharing a similar access-violation code. ## GPU failure still occurs Immediately after the exception, RADV reported: ``` radv/amdgpu: Not enough memory for command submission. ``` VKD3D-Proton also reported: ``` vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4. ``` So the GPU command-submission failure remains present. ## Additional observations The thread dump also shows: - 8 dstorage worker threads. - 10 victory-list workers. - 10 victory-pipelines workers. - A dedicated victory-submit thread. - A victory-heap-sync thread. - A victory-pipeline-watch thread. I'm not sure if any of these thread counts or their interactions contribute to the allocator corruption. ## Questions following this reproduction 1. Does the matching null-write offset (`+0x2215c35`) confirm that this is the same watchdog/allocator failure path investigated in #57? 2. Can the other worker-thread offsets be compared with the allocator traversal and unlink operations identified in that investigation? 3. Could the RADV submission failure be a consequence of the allocator failure, or could GPU resource exhaustion be triggering the allocator corruption?
Author
Owner

@⁠GreemSC on GitHub · 2026-12-02 11:21 UTC · original

The "insufficient memory for command submission" part looks like the GTT ceiling, which I hit too (RX 7900 XT 20 GB, 24 GB RAM, d044248):

  • amdgpu caps GTT (system memory the card can use) at half of RAM by default; with 16 GiB of RAM that is ~7.8 GB. Compare cat /sys/class/drm/card*/device/mem_info_gtt_total with mem_info_gtt_used during a run: at the crash, used = total.
  • The title only gets card − 12 GiB of VRAM (CARD_KEPT_FOR_HOST in um.rs, floor 1 GiB), so 4080 MiB on a 16 GB card; the rest of its memory goes to GTT. That is the same signature as #119 (GTT at its ceiling while VRAM has room), where lowering that constant fixed it, and as SlaktarnVI#11.
  • Here, the kernel line amdgpu: [drm] *ERROR* Not enough memory for command submission! came at the same second as the device removal, with GTT at 11,887 of 11,888 MB (details in #165).

Things to try, untested on your card: give the title more VRAM (the constant from #119, or VICTORY_UM_CARD_MB from #165), or raise the GTT cap with the kernel parameters other reports used (amdgpu.gttsize=… ttm.pages_limit=…; with 16 GB of RAM this may just move the problem into swap).

AI assistance: Claude Code (Claude Opus 5.5) wrote this from our own logs and the linked threads.

**@⁠GreemSC** on GitHub · 2026-12-02 11:21 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/147#issuecomment-7343818756) The "insufficient memory for command submission" part looks like the GTT ceiling, which I hit too (RX 7900 XT 20 GB, 24 GB RAM, `d044248`): - amdgpu caps GTT (system memory the card can use) at half of RAM by default; with 16 GiB of RAM that is ~7.8 GB. Compare `cat /sys/class/drm/card*/device/mem_info_gtt_total` with `mem_info_gtt_used` during a run: at the crash, used = total. - The title only gets `card − 12 GiB` of VRAM (`CARD_KEPT_FOR_HOST` in `um.rs`, floor 1 GiB), so 4080 MiB on a 16 GB card; the rest of its memory goes to GTT. That is the same signature as #119 (GTT at its ceiling while VRAM has room), where lowering that constant fixed it, and as SlaktarnVI#11. - Here, the kernel line `amdgpu: [drm] *ERROR* Not enough memory for command submission!` came at the same second as the device removal, with GTT at 11,887 of 11,888 MB (details in #165). Things to try, untested on your card: give the title more VRAM (the constant from #119, or `VICTORY_UM_CARD_MB` from #165), or raise the GTT cap with the kernel parameters other reports used (`amdgpu.gttsize=… ttm.pages_limit=…`; with 16 GB of RAM this may just move the problem into swap). AI assistance: Claude Code (Claude Opus 5.5) wrote this from our own logs and the linked threads.
Author
Owner

@⁠sabogalc on GitHub · 2026-12-05 18:24 UTC · original

Thanks for the additional investigation and for linking the related findings in #57, #119, #147, #165 and the newer RDNA3 reports.

I performed another run using:

env KEEP_FREE=1024 VICTORY_GPU_GUARD=1 ./run.sh play

This time, the crash reproduced with the exact null-write location identified in #57:

0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35
(write 0x0: nothing mapped there)

The worker-thread stacks also contain several of the surrounding offsets discussed in that investigation. This makes a shared failure path considerably more likely, although I cannot independently confirm that the underlying allocator corruption is identical.

The subsequent GTT investigation also provides a plausible explanation for the RADV command-submission failures. My RX 6800 XT has 16 GiB of physical VRAM, but its reported GTT capacity is approximately 7632 MiB.

The CARD_KEPT_FOR_HOST explanation also makes sense of the approximately 4 GiB card_mb_for_title allocation observed in my logs.

The additional reports suggest that there may be several interacting issues:

  • Title-side allocator corruption: My crash reproduces the exact watchdog-triggered null-write location identified in #57.
    GTT exhaustion: RADV's insufficient-memory-for-command-submission error and subsequent D3D12 device removal are consistent with the GTT exhaustion findings in #119, #147 and #165.
  • Page residency under memory pressure: The newer RDNA3 reports suggest that moving pages between VRAM and system memory can introduce additional pressure, particularly when GTT is already close to its limit.
  • GPU page faults: The RX 7700 XT report demonstrates another failure mode involving an SQC data page fault under VRAM pressure with ray tracing enabled.

I cannot establish whether these failures share an underlying cause or whether the GPU submission failures are directly responsible for the title-side allocator exception.

For completeness, my reproduction already used VICTORY_GPU_GUARD=1 with KEEP_FREE=1024, so the GPU memory guard was enabled and the configured system-memory reserve was reduced to 1 GiB. The crash and GPU submission failure nevertheless persisted.

The proposed changes involving CARD_KEPT_FOR_HOST, VICTORY_UM_CARD_MB, GTT limits and page residency may work, however I don't intend to modify my kernel parameters or system-level memory configuration to work around the issue.

I'll keep the issue open in the event anyone else comes across a similar bug or has more information. Hopefully the matching exception address and the additional memory-management findings help connect the different reports.

**@⁠sabogalc** on GitHub · 2026-12-05 18:24 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/147#issuecomment-7443103603) Thanks for the additional investigation and for linking the related findings in #57, #119, #147, #165 and the newer RDNA3 reports. I performed another run using: ``` env KEEP_FREE=1024 VICTORY_GPU_GUARD=1 ./run.sh play ``` This time, the crash reproduced with the exact null-write location identified in #57: ``` 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x2215c35 (write 0x0: nothing mapped there) ``` The worker-thread stacks also contain several of the surrounding offsets discussed in that investigation. This makes a shared failure path considerably more likely, although I cannot independently confirm that the underlying allocator corruption is identical. The subsequent GTT investigation also provides a plausible explanation for the RADV command-submission failures. My RX 6800 XT has 16 GiB of physical VRAM, but its reported GTT capacity is approximately 7632 MiB. The `CARD_KEPT_FOR_HOST` explanation also makes sense of the approximately 4 GiB `card_mb_for_title` allocation observed in my logs. The additional reports suggest that there may be several interacting issues: - **Title-side allocator corruption:** My crash reproduces the exact watchdog-triggered null-write location identified in #57. GTT exhaustion: RADV's insufficient-memory-for-command-submission error and subsequent D3D12 device removal are consistent with the GTT exhaustion findings in #119, #147 and #165. - **Page residency under memory pressure:** The newer RDNA3 reports suggest that moving pages between VRAM and system memory can introduce additional pressure, particularly when GTT is already close to its limit. - **GPU page faults:** The RX 7700 XT report demonstrates another failure mode involving an SQC data page fault under VRAM pressure with ray tracing enabled. I cannot establish whether these failures share an underlying cause or whether the GPU submission failures are directly responsible for the title-side allocator exception. For completeness, my reproduction already used `VICTORY_GPU_GUARD=1` with `KEEP_FREE=1024`, so the GPU memory guard was enabled and the configured system-memory reserve was reduced to 1 GiB. The crash and GPU submission failure nevertheless persisted. The proposed changes involving `CARD_KEPT_FOR_HOST, VICTORY_UM_CARD_MB`, GTT limits and page residency may work, however I don't intend to modify my kernel parameters or system-level memory configuration to work around the issue. I'll keep the issue open in the event anyone else comes across a similar bug or has more information. Hopefully the matching exception address and the additional memory-management findings help connect the different reports.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#147
No description provided.