GTA VI (1.0.2.1, Xbox): title faults writing to address 0 right after the account picker #2475
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 Marvisak/VIctory. Originally posted by nnkmn on 2026-11-25T14:21:18Z.
What happens
--console series-xboots correctly, the account picker draws at ~30 fps (21 draws/frame), then the title crashes with an access violation at a fixed RVA while entering the world. Two runs with different--unimplementedsettings fault at exactly the same instruction.The faulting instruction is a trap stub, not a wild pointer
victory-image-*.dllis the mapped title image, so the offset is a plain RVA. RVA0x23cf683lands in.text(file offset0x23CEA83):i.e.
The title deliberately writes a constant (
0x4D8BD421) to address zero and returns: the shape of a compiler-emitted fatal-error helper. Which engine check reaches it, and what0x4D8BD421encodes, is the question.Build
github.com/Marvisak/VIctory, branchcapped-heap, HEADbbe8770= base940d32f+ cherry-picks of #1778, #1763, #1832, #1779, plus one local experimental patch (mouse to right stick invictory-hle::modules::gameinput), unrelated to this crash.cached=truefor every shader in these runs).translate --cache --pipelines:328114588bytes,loaded=1079 made=0in the crashing run.Environment
RockstarGamesInc.28872443D20A, TitleId7952987A,TargetDeviceFamily="Scarlett"Reproduce
What the log says just before the crash
Other lines from the same run:
host pipeline refused error=参数错误 (0x80070057)withshaders=[compute ...]WARN victory_gpu::resource: dropping unordered access: the host cannot use this format as a typed UAV format=27WARN victory_gpu::resource: the host refuses castable formats: ... desc format: 115 ... 2560x1440 ... flags: 1memory allocation of 1435801620 bytes failedatframe=3378(2 GB page file, 33.9 GB commit limit)Hypothesis / what would help
0x4D8BD421is an engine-side fatal code, what does it mean?dropped 506 without a host pipelineexpected at world entry? If the title later reads back those targets, or builds a table from them, a dropped set could explain a null dereference.Secondary observation:
--console series-spresents blackSame build,
--console series-s: presents 1920x1080 at a steady 30 fps withhost textures: 1522 (2599 MB), 11 draws/frame, but every presented frame is a uniform colour (diagnostics capture writes a 1586-byte PNG) and the draw count never advances past 11, so the account picker never appears. Series X reaches it at 21 draws. Looks like a distinct output-path problem rather than a slow load.Imported from Marvisak/VIctory. Originally posted by nnkmn on 2026-11-25T14:23:40Z.
run-1-trap-err.log
run-2-zero-err.log
Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T17:08:00Z.
The fault is the title's own watchdog killing itself, not a stray null-write — the stack gives it away:
#3 KERNEL32!BaseThreadInitThunk → #2 +0x2215eca → #1 +0x2215c35 → #0 +0x23cf683.+0x2215c35is the watchdog thread decoded in #2469 (thegl0w's analysis: it fires when the main thread doesn't signal in time), and+0x23cf683is themov [0], constself-kill stub already on the crash-site map in #630 — the dword is a per-site tag for their crash pipeline, not a pointer.Your run-2 log shows the cause directly:
14:05:06—slow host submission ms=31724(one 31.7-second GPU submission),14:05:14—0.4 fps(2776 ms/frame), then the kill ~10 s later.That matches the ~30 s watchdog window seen in #630 (a kill 31 s after the trigger). During world entry the main thread produces multi-second frames — 178–838 MB of title-memory copies plus hundreds of
first bindpipeline creates per frame — and the watchdog treats that stall as a hang. Both your runs die at the same instruction because the watchdog thread's stack is deterministic.So this is a performance wall, not a correctness bug: on the console the same world-entry work finishes inside the window; on a host that hasn't warmed the world yet it doesn't. Things that shrink the stall are already in flight (#2427's dstorage/drive work cut cold launch 2.3×; the hoisted indirect clamps in #2472 target exactly the 700–1562 indirect calls/frame in your logs).
One experiment that would prove the mechanism end to end:
VICTORY_POKEthe watchdog byte thegl0w documented (+0x71b6330, diag build) — if the kill disappears or moves much later, the watchdog window is confirmed as the whole story and the remaining work is purely "make world entry faster".Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:50:36Z.
Automated triage for the maintainers.
Please do not post the title's code bytes or disassembly here, even a few instructions. Offsets and log lines are enough.
The fault is the title's own deliberate exit when progress stops. Its thread runs through
+0x2215c35, and #630 has the crash-site map for both addresses. #2351 ends at the same sibling site while entering the world. Your log points the same way: one host submission of about 31.7 s, then frames of about 2.8 s.This machine is well below what the world needs:
So the world is not expected to run on this card. The dropped draws without a host pipeline and the 137 refused compute pipelines follow from that, and from the partial pipeline library.
For the record, this ran on a branch with cherry-picked PRs (
bbe8770), not on main. The black--console series-spicture is a known gap (README, Series S mode).Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T04:41:37Z.
Reproduced the same crash on a different machine, and the image answers the open
question in the report: the fault is not a wild pointer and not an engine assert
reached from game data — it is a per-thread callback that was never installed.
Environment where it reproduces
TdrDelay/TdrDdiDelay= 60 sfxceless/victory-forkatf85101b+ thestellarr-studio/kelvaroqpatch series (so not
main), but the RVAs below are the title image's, whichis the same build (
b99f876b…), so they should apply to your tree tooloaded=2385 made=0; the world runs at 3,258draws/frame for 2 m 11 s with
Game State: Game Running, frame 1031, thenthis crash
The stack is a worker thread, not a call chain
From the dump:
RtlUserThreadStart→BaseThreadInitThunk→+0x2215eca→+0x2215c35→+0x23cf683.Consumer: a global function pointer, null
Producer: the only writer, and its gate
A linear scan of
.textfinds exactly one instruction that writes[0x71b6348]:So in this process the byte at
[tls]+0x12d8never has bit 0 set, the workerthread finds the pointer null, and lands in the fatal stub.
+0x23cf683isthat stub (
mov dword ptr [0], 0x4d8bd421): it is jumped to from+0x23cf670aftercmp byte ptr [rsp+0x34], 1; jne, i.e. it is thefailure branch of a helper that has just built a 13-byte string, which is what
a fatal-error helper looks like here, not an assertion on title data.
The question this leaves
What sets bit 0 of
[tls]+0x12d8? On this image I can only bound it: a bytescan of
.textfinds just two single-bit ORs at that displacement(
+0x9924c0 or byte [rsi+0x12d8], 0x20and+0x13fb59b or byte [rsi+0x12d8], 2),so bit 0 is written by a plain register store, and the displacement alone is too
common (981 instructions touch it) to xref reliably without a real database.
If someone can breakpoint
+0x221620c(or watch[tls]+0x12d8), the callerthat should have run names the platform service that is missing — which is the
same family as the mount-time assert at
+0x1ce6e13("service registration'ssink lookup fails"), i.e. an initialisation step, not a rendering defect.
What is already ruled out here
device removedcount is 0 for the whole run.made=0, the library serves everything.VICTORY_WAVE_WIDE=1 VICTORY_WAVE64_PAIRED=1and therefused compute pipelines go from 4 to 0, and this crash is unchanged.
cached=true.Happy to dump anything else from this image (RVA-level, no game content) if it
helps narrow which init path is skipped.
Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T04:42:14Z.
One more detail from the same run, in case it saves a step: immediately before
the fault the title creates unordered access views of depth textures and two
compute pipelines (
wave_lanes=[32, 32], on this 32-lane host), then thepipeline library saves (
made=34 loaded=2385), and the worker thread faultswithin the next second:
So the thread that calls the null pointer is woken by that depth-UAV/compute
work, which narrows the initialisation that should have set
[tls]+0x12d8bit 0to whatever precedes it. No conclusions drawn from it — just the ordering.
Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T04:56:27Z.
One negative result that may save someone the same detour: the flag is not
initialised by the TLS template. The image's TLS directory points at a 5,248-byte
template (RVA 0x14af3d000, file offset 0x7170800) and the dword at
template+0x12d8is0x00000000, so every thread legitimately starts with thebit clear and the title itself has to set it during init. The loader copying the
template correctly is therefore necessary but not the answer.
For anyone with a debugger, two addresses bound the search:
+0x2215c27(a worker thread reads the pointer) and+0x221620c(the onlywrite to it, behind
test byte [tls+0x12d8], 1) - a breakpoint on the secondshows whether it is ever reached and with which
rcx;[reg+0x12d8](16 of themin functions that also read
gs:[0x58]), none of them a single-bit OR withan immediate, so
or dword ptr [rX+0x12d8], 1never appears literally.We also ruled out the pipeline library save as the trigger here: with
VICTORY_PIPELINE_WARMUP=0(no recipes saved at all) the crash is unchanged,2 m 48 s in, 2,483 draws.
Imported from Marvisak/VIctory. Originally posted by lukinhasnojento on 2026-11-27T05:23:10Z.
A correction to my own earlier comments here, after reading the caller path end to end.
The slot is not a callback that is missing; it is a fatal handler
+0x2215c27is inside the branch the code takes after it has decided to die:So both cases produce the same report line, and
rax = 0in the exception context provesnothing, because the stub clobbers it. My "per-thread callback that was never installed"
reading was one of two possibilities, and the wider evidence now points at the other: the
code is on an error path that calls a hook which is expected not to return, and the hook
is null at that moment.
The message is encoded in the stub, and it decodes
+0x23cf623builds a 13-byte buffer and adds(12 - i)to byte i. Decoding the bytes itwrites (
3b 45 4b 17 44 68 5d 1b 4f 66 65 ff 01) gives:so this stub is the engine's GPU-location-signature watchdog abort, not a generic assert.
The watchdog it belongs to
The body that reaches it (thread trampoline
+0x2215ea0, which calls the body throughcall qword ptr [rsi]; the return address in the trap's stack is+0x2215eca) is a loopover a table at rva
0x6844a20, 64 groups of0x48bytes, with a count at+4and up toeight 64-bit timestamps at
+8. Two float thresholds are read from.rdata:2.0at rva0x6159bd4(renew) and300.0at rva0x6159e20(die), and the timestampsare scaled by a float at rva
0x9e4f5c0that the title writes at runtime.On this machine, measured from a live process: that multiplier reads
0.0and every groupcount reads
0, so the deadline comparison cannot be what fires here; the branch reachedis still the fatal-hook call above. That is the remaining question, and it is narrower than
the original one: what reaches
+0x2215c27when the table is empty and the scale is zero.Correction to my earlier claim about the TLS flag
The install path is real (
+0x22161f0:test byte ptr [tls+0x12d8], 1thenmov [0x71b6348], rcx), but the flag is set on this machine: reading[tls]+0x12d8ofeach thread through
NtQueryInformationThread+ReadProcessMemory(the title's static TLSindex is logged as
index=10), one thread shows bit 0 set while most do not. So the hook issometimes installed and sometimes null, rather than never installed. At the moment of the
crash the slot read
0.If anyone has seen a non-null value in
0x71b6348, or knows which engine step installs theterminate hook and on which thread class, that would close this: the watchdog is now fully
mapped, and only its arming path is unknown.