Frame recorder (VICTORY_RECORD) crashes at the first submitted list under vkd3d-proton; fix offered #6

Open
opened 2026-11-27 18:20:21 +00:00 by Anzymanz · 2 comments
Anzymanz commented 2026-11-27 18:20:21 +00:00 (Migrated from github.com)
Contributor

Imported from Slaktarn700/SlaktarnVI. Originally posted by Anzymanz on 2026-11-27T18:20:21Z.


With VICTORY_RECORD set, the frame recorder in crates/victory-gpu/src/replay/ crashes the process at the first ExecuteCommandLists that submits a recorded list: an access violation in vkd3d-proton's d3d12core.dll (+0x55c80d in our build), about 7 s after start. Without VICTORY_RECORD nothing changes.

Cause, as we read it: the recorder hooks a list by pointing its method table at a shim. vkd3d-proton's ExecuteCommandLists only accepts a list whose table is one of its own; it reads a list with any other table as null. So every hooked list it is given is treated as null.

Fix we're running (2 files, +71/-1, inert without VICTORY_RECORD):

  • hook.rs: a bare(objects, f) helper. For the duration of the original call, it points each given object that sits on one of our shims back at its own table. After the call, it puts the shim back, unless something set a different table in the meantime.
  • record.rs: the queue's ExecuteCommandLists and the list's ExecuteBundle call the original through bare. Bundles are still counted as not recorded.

With it, a capture of one frame recorded and replayed on our side: 56 submissions, 340 lists, about 1,550 pipelines. It's one capture so far. Setup: RX 9070 XT, Mesa 26.3.1 RADV, GE-Proton11-14, vkd3d-proton master, CachyOS. Not tried on Windows' own D3D12, where the runtime may not check the table in the same way.

hook.rs and record.rs in your main are byte-identical to ours before the change. The same files are on FiveNine/victory-proton main. The recorder is avatarmanz's work (first in their 25 Nov commit "Record and replay a frame's D3D12 work"). Would you like it as a pull request?

Written with Claude Code.

<!-- greyfinch-sync:Slaktarn700/SlaktarnVI:issue:6652296744 --> Imported from [Slaktarn700/SlaktarnVI](https://github.com/Slaktarn700/SlaktarnVI/issues/6). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-27T18:20:21Z. --- With `VICTORY_RECORD` set, the frame recorder in `crates/victory-gpu/src/replay/` crashes the process at the first `ExecuteCommandLists` that submits a recorded list: an access violation in vkd3d-proton's `d3d12core.dll` (+0x55c80d in our build), about 7 s after start. Without `VICTORY_RECORD` nothing changes. **Cause, as we read it:** the recorder hooks a list by pointing its method table at a shim. vkd3d-proton's `ExecuteCommandLists` only accepts a list whose table is one of its own; it reads a list with any other table as null. So every hooked list it is given is treated as null. **Fix we're running** (2 files, +71/-1, inert without `VICTORY_RECORD`): - `hook.rs`: a `bare(objects, f)` helper. For the duration of the original call, it points each given object that sits on one of our shims back at its own table. After the call, it puts the shim back, unless something set a different table in the meantime. - `record.rs`: the queue's `ExecuteCommandLists` and the list's `ExecuteBundle` call the original through `bare`. Bundles are still counted as not recorded. With it, a capture of one frame recorded and replayed on our side: 56 submissions, 340 lists, about 1,550 pipelines. It's one capture so far. Setup: RX 9070 XT, Mesa 26.3.1 RADV, GE-Proton11-14, vkd3d-proton master, CachyOS. Not tried on Windows' own D3D12, where the runtime may not check the table in the same way. `hook.rs` and `record.rs` in your `main` are byte-identical to ours before the change. The same files are on FiveNine/victory-proton `main`. The recorder is avatarmanz's work (first in their 25 Nov commit "Record and replay a frame's D3D12 work"). Would you like it as a pull request? Written with Claude Code.
Slaktarn700 commented 2026-11-29 11:17:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Slaktarn700/SlaktarnVI. Originally posted by Slaktarn700 on 2026-11-29T11:17:45Z.


Fixed in my working copy following your design; the test that crashed passes. Not published yet.

<!-- greyfinch-sync:Slaktarn700/SlaktarnVI:comment:7255013539 --> Imported from [Slaktarn700/SlaktarnVI](https://github.com/Slaktarn700/SlaktarnVI/issues/6#issuecomment-7255013539). Originally posted by [Slaktarn700](https://github.com/Slaktarn700) on 2026-11-29T11:17:45Z. --- Fixed in my working copy following your design; the test that crashed passes. Not published yet.
Anzymanz commented 2026-11-29 22:31:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Slaktarn700/SlaktarnVI. Originally posted by Anzymanz on 2026-11-29T22:31:06Z.


Thanks, @Slaktarn700. We'll run the recorder on our Linux setup once it's published and say here whether it gets past the first submitted list.

Written with Claude Code.

<!-- greyfinch-sync:Slaktarn700/SlaktarnVI:comment:7263735564 --> Imported from [Slaktarn700/SlaktarnVI](https://github.com/Slaktarn700/SlaktarnVI/issues/6#issuecomment-7263735564). Originally posted by [Anzymanz](https://github.com/Anzymanz) on 2026-11-29T22:31:06Z. --- Thanks, @Slaktarn700. We'll run the recorder on our Linux setup once it's published and say here whether it gets past the first submitted list. Written with Claude Code.
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
Slaktarn700/SlaktarnVI#6
No description provided.