Startup crash on RDNA 3 (RX 7900 XTX): 0x80000003 with E_INVALIDARG right after the 1440p render targets are committed #13
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 firefloc on 2026-11-28T20:06:40Z.
Summary
Valhalla builds and loads the game fine on my machine, creates its render targets, then the title hits
0x80000003(breakpoint) atvictory-image-b99f876b74d4a77f.dll+0x56a2afdwithr12 = 0x80070057(E_INVALIDARG). No frame is ever presented.This is reproducible on 5 different launch configurations, including
-Safe.Environment
:0experimental-bleeding-edge-11.0-481534-20261125-p50374f-w517d6c-de271e3-v71cae0-x86_64e5b0dc8("Merge pull request #2: Windows: raw twins off 16 bytes only under Wine")cargo xwin build --locked --profile diag -p victory --features diagnostics --bins(56 s, no warnings)series-sWhat works
d3dcompiler_47.dll(from a Winetricks prefix) anddxil.dll(nugetMicrosoft.Direct3D.DXC1.9.2609.5) are both inlinux/bin/.linux/keep/fidelityfx/.vkd3d-protonloads, DRED breadcrumbs enable,CreateRootSignature/ descriptor heap creation all proceed.v3.1.1-245-ge271e398c6fb248initialises, Vulkan instance and the D3D12 host device are created (no host D3D12 devicedoes not appear).The crash
Last lines before the fault (
VICTORY_LOG=trace):Fault context:
So the title receives
E_INVALIDARGfrom one of our calls and calls into a debug break right after its two 4K and two 1440p render targets are committed. The title's own Breakpad handler fires and writes a minidump (payload ~209 KB), butvictory_hle::modules::netblocks the upload tosubmit.backtrace.io:443, and I could not find the dump persisted on the virtualT:drive — happy to retrieve it if you tell me where it lands.Configurations tried (all crash identically)
run-7900.shpresetSAFE=1VICTORY_PORT_PRIVATE=0 PORT_DESCRIPTORS=0 PORT_CONSTANTS=0 PORT_CBV=0VICTORY_OUTPUT=3840x2160VICTORY_LOG=trace(no behavioural change)Ruled out
wineserver-view-tree.patch: I read the patch — it adds a red-black tree of memory views by base address to replace an O(n) list walk for titles with ~100k views. It is a streaming performance fix, not a correctness one, so I did not rebuild wineserver for this.Failed to map read-only cacheis benign here — the cache directory is empty, there is nothing to map.refusing to use ... it is inside the VIctory source tree). Fixed by pointingVICTORY_CACHE_DIR/VICTORY_DATA_DIRat~/victory-data/, which did not change the crash.dxil.dllwas absent at first (no FidelityFX folder,dxil=n,boverride with no file). Both DLL sets are now in place; the crash predates and postdates that fix identically.victory_gpu::dxgi: display mode reported to the title width=3840 height=2160is reported regardless ofVICTORY_OUTPUT, so the title always sees 4K while the preset presents 2560x1440. Worth a look, but forcing either value changes nothing.Not yet tried
xrandr --output HDMI-A-1 --off) to test whether the output enumeration is involved. I have not done this yet because it disrupts the desktop, but I can if you think it is worth it.series-xconsole profile.E_INVALIDARGrather than just being slow.Question
Given
r12 = E_INVALIDARGright after two 2560x1440 targets are committed, is there a known call in that path that rejects a configuration RDNA 3 / Mesa would produce but an RX 9070 XT would not? If you can tell me which call would plausibly returnE_INVALIDARGat that point, I can instrument it and get you the exact argument that was refused.Imported from Slaktarn700/SlaktarnVI. Originally posted by firefloc on 2026-11-28T20:14:41Z.
Additional test, to rule out my own FidelityFX setup as the cause.
I first ran with
VICTORY_FIDELITYFX_DIR=linux/keep/fidelityfx(DLLs taken from a Cyberpunk 2077 install), where the module loggedversions=empty:I then ran with
VICTORY_FIDELITYFX_DIRunset, so the title's ownamd_fidelityfx_upscaler_xbox.dll/amd_fidelityfx_loader_xbox.dll(both present in the game folder) run instead:Same outcome, byte for byte:
So the crash is identical with the host upscaler serving and with the title's own DLLs, and is not attributable to the DLL set I supplied. The
versions=empty string is simply the host path declining to serve.Imported from Slaktarn700/SlaktarnVI. Originally posted by firefloc on 2026-11-28T20:33:57Z.
Root cause narrowed: the minidump stack, and a correction to my own diagnosis
I retrieved the title's own Breakpad minidump (it lands in
VICTORY_DATA_DIRunder<titleid>/temp/, andcrashcontext.logalongside it) and resolved the stack withminidump-stackwalkplusllvm-symbolizeragainst thediagbuild's PDB. The dump reportsvalhalla.exeat base0x140000000, so absolute address =0x140000000 + RVA.Crashing thread (32), frames marked reliable:
crashcontext.logconfirms the phase:Game State: System Init,Frame: 0,Console Type: Lockhart,Version: 930.048.020-vb_sub_story. So this is title startup, not rendering.What actually happens
With an entry log added to
CreateCommittedResource, the crash follows successfully created targets — the last log line before the breakpoint is always:Two 3840x2160 and then two 2560x1440 targets, all format 28,
flags: 3145733(render target + unordered access),layout: 0. The creation returns success, and the breakpoint comes immediately after.Correction:
r12 = 0x80070057is not oursMy opening report assumed
r12 = E_INVALIDARGwas a value our layer handed the title. I tested that directly: I instrumented all 103return E_INVALIDARG;sites acrossvictory-gpuandvictory-hle(device, dxgi, list, object, pipeline, query, queue, resource, root, signature, and theapu/audio/dsp/dstorage/gameinput/xasync/xg/xgamesavemodules) to logfile!()andline!(), rebuilt, and re-ran.None fires.
footprintalso never takes itsno size for this resourcepath, andcreate_heapnever takes either of its twoE_INVALIDARGreturns (both now logged). So no path in our code returnsE_INVALIDARGbefore this breakpoint, andr12is a value the title carries itself. I have withdrawn that part of the initial report.I have reverted all of that instrumentation; the tree is clean.
The question I actually have
The title breaks right after committing its two 1440p render targets, in
System Init, with no error from our side. Short of symbols for the title, what it is asserting on is opaque from here.VICTORY_TIMELINErun and send the trace so you can see the call sequence around this point?Imported from Slaktarn700/SlaktarnVI. Originally posted by firefloc on 2026-11-28T20:54:00Z.
Resolved — and it was my own launch configuration, not the fork. Closing to avoid wasting your time.
The trigger is the console profile. Every run I reported used
CONSOLE=series-s(--console series-s). Dropping that flag and running with the default profile (the title then reportsconsole Xbox Series X) changes everything:So the title runs, loads the world (1600-3000 draws per frame) and renders under Proton on RDNA 3. The
0x80000003is the title's own assertion duringSystem Initon the Lockhart profile, and it fires before any of our code is in a position to matter — which is consistent with all 103E_INVALIDARGreturns invictory-gpu/victory-hlestaying silent when I instrumented them.Two things that were innocent, so nobody repeats my detour: the FidelityFX folder (title's own DLLs give the identical crash), and the Proton prefix (a freshly created prefix and a long-worked one behave the same).
If it is cheap on your side, a guard that refuses
--console series-swith a clear message would have saved me seven runs. Otherwise, ignore this and sorry for the noise.