Title crashes in Game Init at +0xb5a5f8 (null read 0x68) right after XUserAddAsync – identical signature under XCL (ivall/xcl#598); Win10 19044, RTX 3080 #348
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#348
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?
@justlovett0 on GitHub · 2026-11-24 02:29 UTC · original
What happens
The title boots, opens its archives (dstorage), creates the offline user, and starts presenting – then crashes in Game Init, with no input, ~0.5 s after
XUserAddAsync. Nothing is drawn on this machine (draws=96 drawn=0, see the SM 6.5 note below). The game's own WER crash log saysGame State: Game Init,Frame: 0.The crash signature is byte-for-byte identical to one reproduced under XCL (a separate, independent Xbox→Windows layer), filed there as ivall/xcl#598. Two different loaders/HLEs/recompilers faulting at the same instruction with the same registers points at the title's own offline-account/auth init path rather than either project's setup.
Console output (release build, commit
d2a4bae)Both faults become unhandled; the title's WER saves its crash log and the process ends. Full
crashes.logentries match the above.Cross-project comparison (same dump, same PC)
+0xb5a5f8+0xb5a5f80x68,rcx=00x68,rcx=0rbx=3,r8=r9=0xffffffff00000000,rbp=0x13f+0x1dc5cb4+0x1dc5cb4CreateTicketXbl3,0x80072EFD)XUserAddAsync(offline user; network offline by design)Under XCL the menus rendered (139–239 presents) before the same fault; here nothing draws, but the faulting instruction, registers and thread stacks are the same.
Environment
d2a4bae(Merge PR #129),cargo build --release -p victory, pinned toolchain 1.98.1RockstarGamesInc.28872443D20A71.0.2.1,game_scarlett_master.exe(unpacked, user-supplied)victory configverified; game/cache/data dirs all on D:Separate machine limitation: SM 6.5, nothing drawn
This PC's inbox D3D12 reports SM 6.5 (probed via
D3D12CreateDevice+CheckFeatureSupport(D3D12_FEATURE_SHADER_MODEL)requesting 6.6 → returns 6.5). VIctory emits SM 6.6 DXIL and has no Agility SDK loading (unlike XCL, which activates an app-localD3D12Core.dllthroughID3D12SDKConfiguration1– verified working on this same build of Windows). Hencedrawn=0. The README's results were on Windows 11; on Windows 10 an Agility SDK path (or a 6.5 fallback for the non-mesh stages) would be needed to render anything. This is listed separately because it is not the crash: XCL rendered fine and still hit the identical init fault.Question
The README's status (boot, first-boot screens, start screen, profile and saves working) was measured on Windows 11 + RX 6700 XT, also offline by design. What differs there that lets the title past this init path – timing, or something the XUser/profile HLE answers differently? The identical fault under two independent layers suggests the title reads an object during offline account/auth init that neither platform supplies yet.
AI use
Qwen Code (underlying model name not disclosed by the tool). It built the workspace, ran the title, extracted the log/crash evidence above, compared it with the XCL runs behind ivall/xcl#598, and drafted this issue at the user's request. All measurements are from the runs described.
@DaviTostes on GitHub · 2026-11-24 02:33 UTC · original
The XCL log in ivall/xcl#598 shows the same fault right after its Rockstar token requests are refused (
0x80072EFD), and VIctory's HLE does the same thing by design:crates/victory-hle/src/modules/xuser.rs:211-228—token_asynclogstoken and signature: offlineand completes the block withFAILED_TO_GET_TOKENfor every request, includingCreateTicketXbl3and theros.rockstargames.comone.+0xb5a5f8, read at0x68,rax=0), so the title's auth path is dereferencing something it only fills in when the token call succeeds.Two cheap experiments that could confirm it, without touching the online path:
token_async:S_OKwith an empty but non-null token/signature buffer (and a matching size). The title would then try the network request, fail at connect, and hopefully take its normal "no connection" branch instead of the null read. This does not contact Xbox Live or Rockstar by itself; the sandbox/no-network rule still applies.maximum usersis amissingstub (xuser.rs:272, slot 0x30,E_NOTIMPL). If the title calls it during the same auth init, it gets an error and no output value. It should be one line: write1and returnS_OK.I cannot test either without the title (no copy here), but the blame is narrow enough that a build with (1) and (2) would tell us quickly whether the fault is the failed token or something else in that path. If you can run such a build, I can prepare the diff.
No game data used.
@justlovett0 on GitHub · 2026-11-24 02:36 UTC · original
Follow-up: rerun with the diagnostics build (
cargo build --profile diag -p victory --features diagnostics, same commitd2a4bae) andVICTORY_D3D12_WARP=1on the same PC. Two new facts:1. The init crash reproduces on WARP – it is renderer-independent.
Same faulting RVA, registers and stacks as the hardware run above and as the XCL runs in ivall/xcl#598 – now on a software adapter, ~0.1 s after
XUserAddAsync, no input. That rules out the GPU/driver/SM 6.5 as the cause; the fault is in the title's offline account/init path under both projects. After the title's WER/Breakpad saved its crash log, the process ended in a native segfault (exit 139) during teardown.2. On WARP,
drawn=0has a visible cause that is not SM 6.5: the console root-signature flags are refused.Repeated for the menu VS/PS pairs; 128+ frames presented, all black (
draws=192 drawn=0). XCL hits the same serializer refusals on this machine (its log shows0x80070057for flagsc00/401/801; it only strips bits outside0xFFF, e.g.0x3000000from XboxBvhBuilder) – yet its menus still draw on this same machine (it also has a fallback path for refused root signatures/PSOs, though its run report shows those counters at 0, so the early refusals alone do not stop the menus there). VIctory drops the draws instead. Masking the unsupported bits, or tolerating the refusal the way XCL's run does, would likely let the menus render here – and would separate the rendering gap from the init crash on Windows 10.Full log of the WARP run (291 lines) and the updated
crashes.logare kept locally and can be provided on request.AI use: Qwen Code (underlying model name not disclosed by the tool) built the diag profile, ran it with
VICTORY_D3D12_WARP=1, extracted the excerpts above and drafted this comment at the user's request.@GamingRipperDoc on GitHub · 2026-11-24 02:48 UTC · original
Reproduced on another Windows 10 machine, and it goes away with the D3D12 Agility SDK runtime from #175. This looks like the Windows 10 shader model 6.5 problem (#84), not the offline auth path.
Setup: Windows 10 22H2 19045.7846, AMD RX 9070 XT (driver 32.0.32015.7029), Ryzen 9 9900X. Same build (
b99f876b74d4a77f…), diag build, no input, same data folder for every run,VICTORY_LOG=info.+0xb5a5f8(read0x68)host root signature refusedmaind2a4bae(in-box runtime)XUserAddAsyncc01)draws=96 drawn=0)19aec59(+cargo xtask agility)XUserAddAsyncdraws=11218 drawn=11218by frame 1024, ~30 fps)The
maincrash is the one in this issue to the register:rax 0 rbx 0x3 rcx 0 rdx 0 rbp 0x13f r8 = r9 = 0xffffffff00000000 r15 0x651e95c4d06fbfb1, stack+0xb5a5f8 +0x5bb7cce +0x1dbdc0b +0x5bb7111 +0x5bb7071 +0x63e78 +0x4eaa05a +0x221c29c +0x2215eca, and the second fault on the worker thread through+0x1dc5cb4 +0x5bbf240 +0x35cd6e1, as in the issue.What this says about the two explanations so far:
token_async→FAILED_TO_GET_TOKEN): #175 does not touch the XUser HLE, so the token requests fail the same way in the #175 runs, and the title keeps going. The failed token alone does not lead to this fault.Unsupported bit-flag set (root signature flags c01)refusals. So the WARP run still has the SM 6.5 runtime; it doesn't separate the two.0x80070057for flagsc00/401/801). Flags0x400/0x800(directly indexed heaps) are refused by a runtime below shader model 6.6, so in that run XCL was most likely on the in-box runtime as well. That is my inference from the quoted log; I have not run XCL.My guess at the mechanism (not verified): the title gets no usable object back when its pipelines or root signatures fail, and reads a field of it later (
rcx = 0, read at0x68).@justlovett0: could you try #175 on your machine (
cargo xtask agility, thenvictory runfromtarget\<profile>\)? If the fault goes away there too, this can be closed as a duplicate of #84.No game data in this comment; only RVAs, registers and log lines VIctory prints.
AI-assisted (Claude Code); I ran all six runs above on my machine.
@louketa on GitHub · 2026-11-24 02:53 UTC · original
On the same executable build (BLAKE3 prefix
b99f876b74d4a77f, v1.0.2.1) and the same GPU as #348, the Game Init crash at+0xb5a5f8does not reproduce here. The difference is the OS, so Windows 10 19044 vs Windows 11 could be what matters.Setup
mainatd2a4bae,diagbuild, Series X mode, real GPU (no WARP),VICTORY_D3D12_DRED=1Result (4.5 minute run)
XUserAddAsyncwith no exception, and reaches the start screen with its key art rendered in colour.ERRORlines, 0 slow submissions, no device removal, nocrashes.log.Warnings seen (each 1-2 times)
no host texture error=0x80070057for 2560x1440 resources (formats 86 and 115)a black frame after a frame that was not(victory_gpu::queue)method not implemented object="device"(2x)buffer view not on an element of its host copyview the host does not allow unordered=true format=53 flags=2host view heap capped ... 0x80070057a host DLL outside the host policy: refused dll="rpcrtn.dll"No game data attached.
@justlovett0 on GitHub · 2026-11-24 03:09 UTC · original
Tried #175 on the original machine as proposed: the fault is gone. Closing as a duplicate of #84. The original framing of this issue (offline account/auth init) was wrong, and so was part of my WARP comment – corrections below.
Result with #175 (this machine)
Windows 10 21H2 19044.7846, RTX 3080 (32.0.15.9649), Ryzen 9 7900X. PR #175 head
19aec59(same based2a4baeas the crashing runs),cargo xtask agility(Agility SDK 1.620.2 intotarget\release\D3D12\), release build, same dump andvictory.tomlas the 3/3 crashing runs:maind2a4bae(in-box runtime)19aec59+ agility+0xb5a5f8(read0x68)host root signature refused(flagsc01)draws=96 drawn=0)Corrections to the record
VICTORY_XBOX_LIVE_TOKENS, a well-formedXBL3.0token + base64 XSTS v1 signature, relocated result pointers,*dataset): the crash was unchanged – and the trace showed VIctory faults before any token API is called (~0.5 s afterXUserAddAsync, notoken_asyncinvocation at all). TheFAILED_TO_GET_TOKENcompletion is real but not this crash's cause, consistent with @GamingRipperDoc's runs.c01refusals – the WARP run did not separate the renderer from the runtime, as @GamingRipperDoc pointed out.D:drive,D:\decorations\presets\*enumeration failing withERROR_PATH_NOT_FOUND= 3 =rbx) was also disproven: creating the folders left the crash identical.rcx=0, read+0x68). Disassembly of the faulting leaf (title+0xb5a5d8):mov rax,[rcx]; … mov r14,[rax+0x68]– it dereferences the first field of the object it is handed; one caller fetches that pointer from a table. With the Agility runtime the objects exist and the read is valid.0x400/0x800flags and it has a separate null-object gap (DeserializePipelineStateXwrites null +E_NOTIMPL, and the title's wrapper swallows the failure). Same leaf, different trigger; tracked there.The local experiments (placeholder tokens, a
VICTORY_DUMP_PSO_CACHEdiagnostic) stay on a local branch; they are not part of this conclusion. The deserialize gap is real but non-fatal once the runtime accepts the root signatures – worth its own issue if it bites later.Thanks @GamingRipperDoc for the six-run comparison and @DaviTostes for the narrow blame – the token experiments were still useful to rule the path out.
AI use: Qwen Code (underlying model name not disclosed by the tool) fetched PR #175 into a worktree, ran
cargo xtask agility, built and ran the title, extracted the counts above and drafted this comment at the user's request; the user confirmed the visible intro and interactive menus.@justlovett0 on GitHub · 2026-11-24 03:10 UTC · original
Duplicate of #84 (Windows 10 in-box D3D12 at SM 6.5); fixed by #175, confirmed on the original machine – see the comment above.