RX 7800 XT (Navi 32, RDNA3, 16 GB): "Illegal opcode in command stream" at an indirect mesh ExecuteIndirect when the "2 years ago" prologue cutscene starts; ring reset fails, MODE1 reset #250

Open
opened 2026-12-02 21:07:32 +00:00 by github-bot · 2 comments
Owner

@⁠Appelschorle187 on GitHub · 2026-12-02 21:06 UTC · original

System

  • Ryzen 7 5800X, RX 7800 XT 16 GB (Navi 32, GFX11), 16 GB system RAM
  • Ubuntu 26.04, kernel 7.0.0-44-generic, linux-firmware 20260319 (MEC 0xa78, ME 0x9a6, PFP 0xa50, MES 0x86)
  • VIctory-xmem 8585cd4 (also reproduced on 241c79e), Mesa 26.3.1 (deps/mesa fec8830), vkd3d-proton deps/vkd3d 71cae09, wine-devel 11.23
  • CONSOLE=series-s, VICTORY_OUTPUT=1920x1080, KEEP_FREE=8192 (Series X runs out of memory on this machine)

What happens

The game runs fine (~100 fps) up to the prologue text "2 years ago...". When the text fades and the scene starts, the GPU hangs:

[drm:gfx_v11_0_bad_op_irq [amdgpu]] *ERROR* Illegal opcode in command stream
amdgpu: ring gfx_0.0.0 timeout, signaled seq=173485, emitted seq=173488
amdgpu:  Process main pid 17381 thread vkd3d_queue pid 17628
amdgpu: MES failed to respond to msg=RESET
amdgpu: Ring gfx_0.0.0 reset failed
amdgpu: MODE1 reset
amdgpu: VRAM is lost due to GPU reset!

Depending on the run, the whole PC freezes (hard reboot) or the desktop session is killed. It reproduces every time (10 runs). The amdgpu devcoredumps show no page fault; the CP is stuck inside an IB2.

What I ruled out

Setting Result
VICTORY_BVH_BUILDER=0 (no RT) same crash
VICTORY_MESH_ONE_DIM=0 same crash
RADV_DEBUG=syncshaders same crash (one run got past it once, not reproducible)
shaders bound right before the crash differ from run to run, no single common hash
memory no OOM at the crash; game ~4.6 GB, KEEP_FREE=8192

Breadcrumbs (exact, with RADV_DEBUG=syncshaders)

vkd3d-proton built with -Denable_trace=true (the setup.sh release build does not compile breadcrumbs in, so VKD3D_CONFIG=breadcrumbs silently does nothing there), plus VKD3D_CONFIG=breadcrumbs VKD3D_DEBUG=err VICTORY_D3D12_DRED=light, diag build.

Found pending command list context 4532 in executable state, TOP_OF_PIPE marker 264, BOTTOM_OF_PIPE marker 263.
===== Potential crash region BEGIN =====
Command: top_marker  264
Command: set_shader_hash  hash: 0be2357d10f6f928, stage: 80   (mesh)
Command: set_shader_hash  hash: 19fd833884779922, stage: 10   (pixel)
Command: root_const  (x40)
Tag: ExecuteIndirect [MaxCommandCount, ArgBuffer cookie, ArgBuffer offset, Count cookie, Count offset]
  1, cookie 28589, offset 15968, count cookie 0, count offset 0
Command: execute_indirect
Command: bottom_marker  264
===== Potential crash region END =====

The same command list had already run 256 identical one-record mesh ExecuteIndirects from the same argument buffer (offsets 0 to 15936, stride 32) without problems. The hang is at the 257th. An earlier run without syncshaders showed the same pattern with a different mesh shader (vkd3d hash 6ae438875194330d, argument buffer offset 27776, after 28 good ones). The game's own counter just before the crash: indirect mesh dispatches: the largest group count asked for 0 (run: at most 65535). In every run, new mesh pipelines were bound for the first time right before the crash.

So it is always one indirect mesh draw from the clamped argument buffer, and the shader alone is not the cause.

Full logs, the breadcrumb report and the devcoredumps are available on request.

**@⁠Appelschorle187** on GitHub · 2026-12-02 21:06 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/250) ## System - Ryzen 7 5800X, RX 7800 XT 16 GB (Navi 32, GFX11), 16 GB system RAM - Ubuntu 26.04, kernel 7.0.0-44-generic, linux-firmware 20260319 (MEC 0xa78, ME 0x9a6, PFP 0xa50, MES 0x86) - VIctory-xmem 8585cd4 (also reproduced on 241c79e), Mesa 26.3.1 (deps/mesa fec8830), vkd3d-proton deps/vkd3d 71cae09, wine-devel 11.23 - `CONSOLE=series-s`, `VICTORY_OUTPUT=1920x1080`, `KEEP_FREE=8192` (Series X runs out of memory on this machine) ## What happens The game runs fine (~100 fps) up to the prologue text "2 years ago...". When the text fades and the scene starts, the GPU hangs: ``` [drm:gfx_v11_0_bad_op_irq [amdgpu]] *ERROR* Illegal opcode in command stream amdgpu: ring gfx_0.0.0 timeout, signaled seq=173485, emitted seq=173488 amdgpu: Process main pid 17381 thread vkd3d_queue pid 17628 amdgpu: MES failed to respond to msg=RESET amdgpu: Ring gfx_0.0.0 reset failed amdgpu: MODE1 reset amdgpu: VRAM is lost due to GPU reset! ``` Depending on the run, the whole PC freezes (hard reboot) or the desktop session is killed. It reproduces every time (10 runs). The amdgpu devcoredumps show no page fault; the CP is stuck inside an IB2. ## What I ruled out | Setting | Result | |---|---| | `VICTORY_BVH_BUILDER=0` (no RT) | same crash | | `VICTORY_MESH_ONE_DIM=0` | same crash | | `RADV_DEBUG=syncshaders` | same crash (one run got past it once, not reproducible) | | shaders bound right before the crash | differ from run to run, no single common hash | | memory | no OOM at the crash; game ~4.6 GB, `KEEP_FREE=8192` | ## Breadcrumbs (exact, with `RADV_DEBUG=syncshaders`) vkd3d-proton built with `-Denable_trace=true` (the `setup.sh` release build does not compile breadcrumbs in, so `VKD3D_CONFIG=breadcrumbs` silently does nothing there), plus `VKD3D_CONFIG=breadcrumbs VKD3D_DEBUG=err VICTORY_D3D12_DRED=light`, diag build. ``` Found pending command list context 4532 in executable state, TOP_OF_PIPE marker 264, BOTTOM_OF_PIPE marker 263. ===== Potential crash region BEGIN ===== Command: top_marker 264 Command: set_shader_hash hash: 0be2357d10f6f928, stage: 80 (mesh) Command: set_shader_hash hash: 19fd833884779922, stage: 10 (pixel) Command: root_const (x40) Tag: ExecuteIndirect [MaxCommandCount, ArgBuffer cookie, ArgBuffer offset, Count cookie, Count offset] 1, cookie 28589, offset 15968, count cookie 0, count offset 0 Command: execute_indirect Command: bottom_marker 264 ===== Potential crash region END ===== ``` The same command list had already run 256 identical one-record mesh ExecuteIndirects from the same argument buffer (offsets 0 to 15936, stride 32) without problems. The hang is at the 257th. An earlier run without syncshaders showed the same pattern with a different mesh shader (vkd3d hash 6ae438875194330d, argument buffer offset 27776, after 28 good ones). The game's own counter just before the crash: `indirect mesh dispatches: the largest group count asked for 0 (run: at most 65535)`. In every run, new mesh pipelines were bound for the first time right before the crash. So it is always one indirect mesh draw from the clamped argument buffer, and the shader alone is not the cause. Full logs, the breadcrumb report and the devcoredumps are available on request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 21:07:32 +00:00
Author
Owner

@⁠Appelschorle187 on GitHub · 2026-12-02 21:08 UTC · original

Also tried VICTORY_PAGES=0 (as in #239): same crash at the same spot ("Illegal opcode in command stream" at 22:08:01, this time the gfx ring reset succeeded instead of a MODE1 reset). So page moving is not the cause here.

**@⁠Appelschorle187** on GitHub · 2026-12-02 21:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/250#issuecomment-7358860636) Also tried `VICTORY_PAGES=0` (as in #239): same crash at the same spot ("Illegal opcode in command stream" at 22:08:01, this time the gfx ring reset succeeded instead of a MODE1 reset). So page moving is not the cause here.
Author
Owner

@⁠Bushyon on GitHub · 2026-12-03 20:47 UTC · original

@⁠Appelschorle187 this is probably related to drm/amd#5711. It's not exclusive to this title, and it has been in the works for some time now.

**@⁠Bushyon** on GitHub · 2026-12-03 20:47 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/250#issuecomment-7391803107) @⁠Appelschorle187 this is probably related to [drm/amd#5711](https://gitlab.freedesktop.org/drm/amd/-/work_items/5711). It's not exclusive to this title, and it has been in the works for some time now.
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#250
No description provided.