allocator freeze #436
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#436
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?
@mohan-repo-lab on GitHub · 2026-12-04 02:49 UTC · original
GTA VI (7952987A): random freeze, then watchdog crash at +0x2215c35. A game worker spins forever on a circular 16-bit-indexed allocator list
Summary
In the world, after anywhere from 30 seconds to almost 3 hours of play, the
game stops making frames. VIctory's hang watch fires (
no frame begun for 10 s),and about 30 s later the title's own watchdog kills the game on purpose:
The
+0x2215c35write is not the fault. It is the watchdog's deliberatemov dword [0],0, the same thread-pool function that starts the workers(
+0x2215ea0/+0x2215eca). The real problem shows in the hang-watch dumps: inevery case, one title worker sits in a list-walking loop, at the same
instruction in the 10 s and the 20 s dump. The list's 16-bit
nextindicesform a cycle, so the walk never ends.
title-mainwaits for that worker, andno frame begins.
This reproduced 10 times over two days, on three VIctory builds. Some of the
title's detail patches (below) make it much more frequent: under 15 minutes
instead of over 1 hour.
Environment
8585cd4,6064c04anddc9b7b5(all reproduce), imagevictory-image-b99f876b74d4a77f.dll930.048.020-vb_sub_story, profile Series X (CONSOLE=series-x)experimental-11.0-20261123b, ntsync upsetup.sh; RX 6750 XT 12 GB (Navi 22, RDNA2)KEEP_FREE=8192VICTORY_FSR_4K=quality,BVH_BUILDER=0, no frame generationtools/wake-race.shpasses on this Proton ("ok: no damage in 30 s"), so thisis not the Wine wait-on-address wake race fixed by 81e52628b.
Where it spins
Two loops, and both read the same list (nodes of 20 bytes, linked by 16-bit
indices, in an array whose base pointer is at
0x14908f020; head/sentinelwords at
0x14908f030/0x14908f032). Image base0x140000000.Loop A,
+0x2626867..0x2626881(seen in 7 dumps), a first-fit search overthe free list:
Stack of the stuck worker (the same every time):
Loop B,
+0xad522d..0xad5241(seen in 3 dumps), walks the same kind of16-bit chain via
+0x2:A 16-bit list is walked in microseconds, so a 10 s+ spin means a cycle in the
links, not a long list. Something broke the list's invariants.
The list is lock-protected. The caller at
+0xbc0530takes a title lockbefore touching it and releases it after (tail jump):
So either the lock does not give mutual exclusion under VIctory (the
lock/atomics/TLS it relies on), or something outside the lock writes over the
list's memory (
0x14908eff0/0x14908f020and the node array they point to).title-mainat the hang (it waits for the worker):Settings that make it frequent
AMD Ryzen 5 5600X
AMD Radeon RX 6750 XT, 12 GB GDDR6
32 GB RAM
Every crash below has the same signature (hang watch, then
+0x2215c35). Thedetail patches in play:
VICTORY_SHADOW_CASCADES,LOW_SHADOWS,GRASS_SHADOWS,VOLUMETRIC_QUALITY,SMALL_CULL,TREE_QUALITYandWORLD_DIST_SCALE.SHADOW_DIST=low)+0xad5241+0x2626877POOL_MOVE=0,LOD_SCALE=0.5)+0x2626877+0x262686f+0xad5241+0x2626877VOLUMETRIC_QUALITY+SMALL_CULL+0x2626877+0xad5241(dc9b7b5)freeze comes about 10× sooner. Still being narrowed down:
TREE_QUALITY=2vs.
WORLD_DIST_SCALE=0.8.Not the cause (the freeze kept coming with each changed):
VICTORY_POOL_MOVE(0 and 1),VICTORY_UI_PLANE,VICTORY_LOD_SCALE(0.35–0.5), FSR quality vs. balanced, the four experimental switches
(
PARTS_ONE_CALL,KEEP_HOST_BUFFERS,RECORD_RANGES,RECORD_PLACES:on in all 12-03 runs, which include both quick and long ones), and the
location (seven different places across the map).
Title state at the freezes: the title's own crash report shows
Pool: ~591978xxx/624951280every time (its steady state, not a spike),TileHeap ~3.0–3.1 GB / 6.2 GB, 100–230 streaming requests, normal ped andvehicle counts. VRAM pressure is low (one "no room for more" warning in the
whole session).
Repro
VICTORY_SHADOW_CASCADES=2 VICTORY_LOW_SHADOWS=1024 VICTORY_GRASS_SHADOWS=0 VICTORY_VOLUMETRIC_QUALITY=2 VICTORY_SMALL_CULL=2.5 VICTORY_TREE_QUALITY=2 VICTORY_WORLD_DIST_SCALE=0.8.Suggestions
0x14908f020base,0x14908f030head) and the lock at
0x1476b8e70(owner, count). A cycle with the lockfree, or a cycle with two owners, tells the two hypotheses apart.
0x140004b40relies on (gs:0x58TLS slot, lock-prefixedor interlocked ops) under VIctory's TLS/thread setup.
nextwords from outside+0xbc0530's locked region would show a stray writer, if there is one.Logs
Available on request: the
local/run/play-*.logfiles with the hang-watchdumps of all 132 threads (10 s and 20 s) and the title's
*.crash.logfilesfrom
T:\for each crash above.