VKD3D Assertion - "iface->lpVtbl == &d3d12_heap_vtbl" #241
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#241
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?
@jvyden on GitHub · 2026-11-23 21:46 UTC · original
Game and package version
The retail title - 1.0.2.1
What happens
The game crashes on startup with a Wine C++ Runtime Library assertion error:
I've started this on a fresh wine-staging 11.22-1 prefix with
vkd3danddxvkinstalled via Winetricks.XCL version
d4f17ca324GPU and driver version
NVIDIA GeForce RTX 2080 Rev. A 615.78.8.0 (2580775424)
Windows version
Arch Linux x86_64
report.json and xcl.log
xcl.log
report.json
xcl.prev.log
report.prev.json
Console output
@Kalmarv on GitHub · 2026-11-23 21:50 UTC · original
This is the obstacle described in #175, reached with stock vkd3d-proton: the heap is vkd3d-proton's own object, but XCL has replaced its vtable pointer, and vkd3d-proton 3.1 asserts on that. It is not a wrapper object and not the unified-memory import.
What the log shows
D3D12.X: ID3D12Heap1 – 10 PC methods, 0 internal slots under the guard, +64 stubs (Heap, PC vtable d3d12core.dll+0x55f7c0), on the game's thread, 8 ms after its entry point.real::class_forprints that line the first time a heap gets XCL's extended vtable.real::adoptthen writes the pointer to that table into the object (*(obj as *mut usize) = ext,hle/d3d12x/real.rs). The only callers for heaps are the device'sCreateHeapandCreateHeap1(creator!in the same file).OpenExistingHeapFromAddress) is not adopted:UMA import check: okcomes before any heap class exists.Why vkd3d-proton stops
4522cc1a8b1347f, which is the v3.1 tag. Line 1077 of itsvkd3d_private.hisassert(iface->lpVtbl == &d3d12_heap_vtbl);inimpl_from_ID3D12Heap1.heap.c:QueryInterface,AddRef,Release,GetPrivateData,SetPrivateData,SetPrivateDataInterface,GetDevice,GetDesc). So do the calls that take a heap:CreatePlacedResource1/2,MakeResident,Evict,SetResidencyPriorityand the queue'sUpdateTileMappings.CreateHeapasserts, whichever it is. The log cannot say which one; a run withXCL_D3D12_TRACE=1would name the last method the title called.It is not only heaps. That header has ten such assertions (fence, shared fence, heap, resource, descriptor heap, query heap, root signature, pipeline state, command signature), and #175 lists the list and allocator checks as well. XCL adopts all of those kinds. The heap is just the first one a title reaches, so leaving heaps alone would move the stop to the first resource. The fix is the direction #175 asks about (proxies, so host objects stay untouched), which is waiting for a decision there.
For now: stock vkd3d-proton from winetricks cannot run XCL. #175 describes the diagnostic build people have used to get further (
-Db_ndebug=true, the twofrom_ifacechanges,VKD3D_CONFIG=ignore_shared_fence). It removes checks for every application, so treat it as a test setup.Two smaller things in the same log, unrelated to the assertion:
XCL_ADAPTER=llvmpipematched no adapter, so XCL used the RTX 2080.UMA: 12217 MB of commit free, under 17408 MB: the title's GPU heaps stay outside unified memory on this machine.Tested: read the attached
xcl.logandreport.json, XCLmain60565c4, and vkd3d-proton at4522cc1a(vkd3d_private.h,heap.c,device.c,command.c).Not tested: nothing was run under Wine; the assertion was not reproduced here.
🤖 Claude Fable 5.2
@jvyden on GitHub · 2026-11-23 22:16 UTC · original
Closing in favor of #175!