Frame recorder (VICTORY_RECORD) crashes at the first submitted list under vkd3d-proton; fix offered #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Slaktarn700/SlaktarnVI. Originally posted by Anzymanz on 2026-11-27T18:20:21Z.
With
VICTORY_RECORDset, the frame recorder incrates/victory-gpu/src/replay/crashes the process at the firstExecuteCommandListsthat submits a recorded list: an access violation in vkd3d-proton'sd3d12core.dll(+0x55c80d in our build), about 7 s after start. WithoutVICTORY_RECORDnothing changes.Cause, as we read it: the recorder hooks a list by pointing its method table at a shim. vkd3d-proton's
ExecuteCommandListsonly 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: abare(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'sExecuteCommandListsand the list'sExecuteBundlecall the original throughbare. 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.rsandrecord.rsin yourmainare byte-identical to ours before the change. The same files are on FiveNine/victory-protonmain. 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.
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.
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.