Regression on 0a4f361: title crashes (null/out-of-range reads) and the indirect clamp reports garbage DrawIndexed/DispatchMesh records #274

Open
opened 2026-12-02 20:33:59 +00:00 by github-bot · 0 comments
Owner

@⁠viktorsparda on GitHub · 2026-12-02 20:32 UTC · original

Regression on 0a4f361: title crashes (null/out-of-range reads) and the indirect clamp reports garbage DrawIndexed/DispatchMesh records

Summary

After updating from 9f73c39 to 0a4f361, the title crashes in every run: twice
while still loading, and once after about 2½ minutes in the world. The
crashes are at different addresses, always access violations inside the title's
own code. In the longer run, vkback's indirect clamp also reported two kinds of
rule-32 errors that no TASKS item or issue covers, both about GPU-built command
records containing invalid data.

The same machine, title and settings ran without a crash on every earlier build
today, including 12 minutes on 9f73c39.

Environment

  • GPU: AMD Radeon RX 9070 XT (RDNA4, Navi 48, GFX1201), the one vkback used
    • Also installed: the Ryzen's integrated Radeon 610M (Raphael), not used
  • Driver: RADV, Mesa 26.3.1 (vulkan-radeon 26.3.1-5), Vulkan 1.4.363
  • Translator host: Host { lanes: 64, rdna: true, min_lanes: 32, denorm: [true, true] }
  • CPU: AMD Ryzen 5 7600X (6 cores / 12 threads)
  • RAM: 32 GB
  • OS: CachyOS, kernel 7.3.6-3-cachyos, KDE Plasma on Wayland
  • Proton: proton-cachyos-slr 11.0-20261015
  • Run: tools/play.sh with default settings
  • Shader cache: tr-bf272f27731b8bff, fully retranslated after the update

Runs

Build Result Logs
b447925, 87ab180, 88d66ae, 4a9dbe5 EXIT 0 —
9f73c39 (#169) EXIT 0, 12 min, ~22 fps good-9f73c39.zip
0a4f361, run 1 EXIT 5 ~2½ min after launch, still loading crash1-0a4f361.zip
0a4f361, run 2 EXIT 5 ~30 s after launch, still loading crash2-0a4f361.zip
0a4f361, run 3 EXIT 5 after ~2½ min in the world, ~17–21 fps crash3-0a4f361.zip

Crash signatures (only on 0a4f361)

Runs 1 and 2:

VIctory: unhandled exception 0xc0000005 at victory-image-…dll+0x4e9b54a (read 0xc: nothing mapped there)
  #0 +0x4e9b54a
  #1 +0x4e9b4bf
  #2 +0x4a4a
  #3 +0x4d9f49c

Run 3:

VIctory: unhandled exception 0xc0000005 at victory-image-…dll+0x55ac280 (read 0x8aed4cec0: reserved, never committed)
  rdi 0x8a92acec0   r9 0x5aa0000
  #0 +0x55ac280
  #1 +0x501f556
  #2 +0x501f238
  #3 +0xe9c65
  #4 +0x513fe71

The first is a read through a null pointer plus 0xc. The second is rdi + r9,
a large offset past a valid base. Neither address shows up in any earlier run.

New rule-32 errors with no owner (run 3)

ERROR rule32 DrawIndexed record changed by the clamp (draw count 2^23 or more: run empty):
  words [3c808081, ff800000, ff800000, 7f800000, 7f800000] (prologue's first word 0x0)
  pipeline 0x4bd80210 (vertex:81749e9de9a48b7bb1e7c72a5a9dfc6c, pixel:a09dcf112c9345a7b2c82bcc2f4e04b1)
  frame 2735 (GPU clamp report) [clampreport.rs:73]

ERROR rule32 DispatchMesh record changed by the clamp (mesh y or z neither 0 nor 1: run as (x, 1, 1))   (+132 s)

The DrawIndexed words decode as floats: 0.0157, -inf, -inf, +inf, +inf. That
looks like a freshly reset bounding box, not draw arguments. It suggests a GPU
pass wrote other data where the indirect arguments go, or that the arguments are
read from the wrong buffer.

Suspected cause

Only two commits between 9f73c39 and 0a4f361 change behaviour:

  • #206 (9c21137) changes the typed and raw-twin view index clamps and
    reserves a null slot per binding. It applies on every host, so it's my main
    suspect.
  • #180 (733f8e0) adds wave64 lane pairing. It's described as targeting
    32-lane hosts and leaving the default host unchanged, but it also bumped
    TRANSLATOR_VERSION.

Not bisected yet. Next step: run 733f8e0 (#180 without #206).

Unrelated noise

The 10 pipeline … lane branches stayed per lane rule-32 errors at startup also
appear in the runs that worked, so they aren't related.

Attachments

One zip per run listed above (crash1-0a4f361.zip, crash2-0a4f361.zip,
crash3-0a4f361.zip, good-9f73c39.zip). Each holds that run's log.txt,
vk.log, loud.txt and build.txt, with terminal colour codes removed.

crash1-0a4f361.zip
crash2-0a4f361.zip
crash3-0a4f361.zip
good-9f73c39.zip

**@⁠viktorsparda** on GitHub · 2026-12-02 20:32 UTC · [original](https://github.com/vktory6/VKtory/issues/274) # Regression on 0a4f361: title crashes (null/out-of-range reads) and the indirect clamp reports garbage DrawIndexed/DispatchMesh records ## Summary After updating from `9f73c39` to `0a4f361`, the title crashes in every run: twice while still loading, and once after about 2½ minutes in the world. The crashes are at different addresses, always access violations inside the title's own code. In the longer run, vkback's indirect clamp also reported two kinds of rule-32 errors that no TASKS item or issue covers, both about GPU-built command records containing invalid data. The same machine, title and settings ran without a crash on every earlier build today, including 12 minutes on `9f73c39`. ## Environment - **GPU:** AMD Radeon RX 9070 XT (RDNA4, Navi 48, GFX1201), the one vkback used - Also installed: the Ryzen's integrated Radeon 610M (Raphael), not used - **Driver:** RADV, Mesa 26.3.1 (`vulkan-radeon 26.3.1-5`), Vulkan 1.4.363 - **Translator host:** `Host { lanes: 64, rdna: true, min_lanes: 32, denorm: [true, true] }` - **CPU:** AMD Ryzen 5 7600X (6 cores / 12 threads) - **RAM:** 32 GB - **OS:** CachyOS, kernel `7.3.6-3-cachyos`, KDE Plasma on Wayland - **Proton:** proton-cachyos-slr `11.0-20261015` - **Run:** `tools/play.sh` with default settings - **Shader cache:** `tr-bf272f27731b8bff`, fully retranslated after the update ## Runs | Build | Result | Logs | | --- | --- | --- | | b447925, 87ab180, 88d66ae, 4a9dbe5 | EXIT 0 | — | | 9f73c39 (#169) | EXIT 0, 12 min, ~22 fps | `good-9f73c39.zip` | | **0a4f361**, run 1 | EXIT 5 ~2½ min after launch, still loading | `crash1-0a4f361.zip` | | **0a4f361**, run 2 | EXIT 5 ~30 s after launch, still loading | `crash2-0a4f361.zip` | | **0a4f361**, run 3 | EXIT 5 after ~2½ min in the world, ~17–21 fps | `crash3-0a4f361.zip` | ## Crash signatures (only on 0a4f361) Runs 1 and 2: ``` VIctory: unhandled exception 0xc0000005 at victory-image-…dll+0x4e9b54a (read 0xc: nothing mapped there) #0 +0x4e9b54a #1 +0x4e9b4bf #2 +0x4a4a #3 +0x4d9f49c ``` Run 3: ``` VIctory: unhandled exception 0xc0000005 at victory-image-…dll+0x55ac280 (read 0x8aed4cec0: reserved, never committed) rdi 0x8a92acec0 r9 0x5aa0000 #0 +0x55ac280 #1 +0x501f556 #2 +0x501f238 #3 +0xe9c65 #4 +0x513fe71 ``` The first is a read through a null pointer plus `0xc`. The second is `rdi + r9`, a large offset past a valid base. Neither address shows up in any earlier run. ## New rule-32 errors with no owner (run 3) ``` ERROR rule32 DrawIndexed record changed by the clamp (draw count 2^23 or more: run empty): words [3c808081, ff800000, ff800000, 7f800000, 7f800000] (prologue's first word 0x0) pipeline 0x4bd80210 (vertex:81749e9de9a48b7bb1e7c72a5a9dfc6c, pixel:a09dcf112c9345a7b2c82bcc2f4e04b1) frame 2735 (GPU clamp report) [clampreport.rs:73] ERROR rule32 DispatchMesh record changed by the clamp (mesh y or z neither 0 nor 1: run as (x, 1, 1)) (+132 s) ``` The DrawIndexed words decode as floats: `0.0157, -inf, -inf, +inf, +inf`. That looks like a freshly reset bounding box, not draw arguments. It suggests a GPU pass wrote other data where the indirect arguments go, or that the arguments are read from the wrong buffer. ## Suspected cause Only two commits between `9f73c39` and `0a4f361` change behaviour: - **#206** (`9c21137`) changes the typed and raw-twin view index clamps and reserves a null slot per binding. It applies on every host, so it's my main suspect. - **#180** (`733f8e0`) adds wave64 lane pairing. It's described as targeting 32-lane hosts and leaving the default host unchanged, but it also bumped `TRANSLATOR_VERSION`. Not bisected yet. Next step: run `733f8e0` (#180 without #206). ## Unrelated noise The 10 `pipeline … lane branches stayed per lane` rule-32 errors at startup also appear in the runs that worked, so they aren't related. ## Attachments One zip per run listed above (`crash1-0a4f361.zip`, `crash2-0a4f361.zip`, `crash3-0a4f361.zip`, `good-9f73c39.zip`). Each holds that run's `log.txt`, `vk.log`, `loud.txt` and `build.txt`, with terminal colour codes removed. [crash1-0a4f361.zip](https://github.com/user-attachments/files/35765371/crash1-0a4f361.zip) [crash2-0a4f361.zip](https://github.com/user-attachments/files/35765370/crash2-0a4f361.zip) [crash3-0a4f361.zip](https://github.com/user-attachments/files/35765372/crash3-0a4f361.zip) [good-9f73c39.zip](https://github.com/user-attachments/files/35765369/good-9f73c39.zip)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 20:33:59 +00:00
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/vktory6--VKtory#274
No description provided.