[RX 6800 XT / RDNA2 | CachyOS]: Hang, then null write at victory-image+0x2215c35, after 10–24 min #57
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#57
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?
@Spel0 on GitHub · 2026-12-01 06:58 UTC · original
Summary
The game hangs and then crashes with
0xc0000005after 10–24 minutes of play. I have the same hang twice, with an identical stack in the one non-waiting thread and the same crash address. A third run crashed with a different signature. Logs are attached.Environment
proton-cachyos-slr; vkd3d-proton 3.2.0, DXVK 3.1.1, ntsync enabled./run.sh play.Settings (
run.conf, confirmed in the game process's/proc/<pid>/environ)Console profile: Xbox Series X.
Runs (log timestamps are UTC)
victory-image+0x2215c35, write to0x00x0victory-image+0xad533c, write to0x215da4c37e("reserved, never committed"). The last log line before it was atexback: texture readback landedlogs.zip
The repeated hang (runs 1 and 3)
In both stall dumps exactly one guest thread is not waiting. It was thread 456 in run 1 and thread 452 in run 3, both started at
victory-image+0x2215ea0. Its stack is identical in both runs and in both dumps within each run:Every other thread I looked at (title-main, victory-submit, relay, records, list, pipelines, the vkd3d queue and fence threads) is idle in a wait. My guess is that the spinning thread is polling for a value that never arrives, but I can't tell from the log. There are no WARN or ERROR lines and no kernel messages (no amdgpu errors) in the last 30 seconds before the hang. Per-frame stats looked normal until then.
Other observations
records: … slots=1048576) is still active in the logs despiteVICTORY_RECORDS=0(confirmed in the process environment). Its "taken so far" counter reached about 524,3xx about 1.5 min before the hang in run 1 and about 11 min before it in run 3, so I don't think it is the trigger.perf topof its submission thread shows the time spent indmem_cgroup_state_evict_valuable,css_next_descendant_preandpage_counter_calculate_protection. I suspect a kernel/amdgpu issue under VRAM pressure, not VIctory itself, but I'm mentioning it in case it's related.Questions
+0x2626877,+0x2215c35and+0xad533care in the translated image?Happy to try patches or collect more logs.
@DecayingEagle on GitHub · 2026-12-01 12:31 UTC · original · edited 2026-12-01 12:52 UTC
Another related gameplay stall on RDNA3, current unmodified
main37bb30f. This one may help connect the watchdog crash to the+0xad533ccase above: the one running title worker is stuck in the adjacent code at+0xad5241.Setup: RX 7900 XT (20 GB), Ryzen 9 9900X, 32 GB RAM; private Mesa 26.3.1 at
fec8830e+ this tree'smesa.patch, vkd3d-proton71cae091+ both this tree's patches, Wine 11.22 with the view-tree wineserver patch. Diagnostic MSVC build withdiagnostics, Series X, native 2560×1440, RT off (VICTORY_BVH_BUILDER=0), no FSR. Page migration enabled by default.VICTORY_RECORDSandSAFEunset. Native RAM/VRAM aliases and lazy-page startup probes pass.Run: 825.8 s wall time; the title's crash context says 13m7s of game time, Game Running, driving a Carbonizzare. Median of the log's scene samples was ~24.8 FPS. Last renderer stats at 12:22:40 UTC: 25.28 FPS, ~6,970 draws/frame, no pipelines being made. Frames then stop at 25812. Hang dumps at +10 s and +20 s, followed by the null write at
+0x2215c35at 12:23:14 UTC. I found no kernel ring timeout, GPU reset or OOM kill in this interval.The same worker's stack in both hang dumps:
The minidump captured it at
+ad5241again. Disassembly there walks 16-bit links in entries of stride 20, repeatedly following[r15 + r8*20 + 2]whiler8w < cx. The captured values arer15=0x11aac6a90,r8=0x461,cx=0xaf0,rdx=0x11aad4c08,rax=0xb46. A cycle/corrupt link is a possibility; the small minidump does not include that heap region, so I cannot prove it. Title-main is waiting; submit/relay/vkd3d fence and queue workers are idle. The later null write looks like the watchdog ending this CPU-side stall, rather than its original cause.VRAM was close to full (~19.6/20.5 GB). The scope's swap peaked at its 2 GB cap, so paging pressure remains a possible contributor; no OOM kill was recorded. Last residency line: ~4,109 MB on card out of 9,330 MB paged title memory, 773 MB card free, 0 refused page moves.
Update, 2026-12-01T12:52 UTC: the
VICTORY_PAGES=0comparison is still running after ~15.5 minutes of world samples (draws >= 500; menus excluded), controlled by the player, with 0 hang dumps and 0 unhandled exceptions so far. Median of those logged world samples: 25.76 FPS. Same executable, driver, Series X/native 1440p/RT-off settings, and an isolated copy of the crash-time save. The pre-start warm made 89,387 additional learned pipelines in 252 s, 0 rejected or crashed; this run has 21 first-use misses so far. Cache state and the route differ, so this is a stability observation, not a controlled FPS benchmark or proof that migration is the cause. VRAM is again near full; the scope still has a 2 GB swap cap. I have kept pages-off as a provisional local fallback. No crash bypass applied, and the title is still open. No game files or dumps attached.Analysis and this comment prepared with Codex; the run and hardware measurements are real.
@LloydNicholson on GitHub · 2026-12-01 13:57 UTC · original
Same hang and crash on RDNA4, with ray tracing on and page migration on.
Setup: RX 9060 XT (16 GB, RDNA4), Ryzen 7 5700X, 32 GB RAM; Nobara (Fedora 44), kernel 7.3.4; Mesa/RADV 26.3.1 at
fec8830e(#44's driver build); Proton-CachyOS Latest with ntsync and the view-tree wineserver patch; DXVK 3.1.1. Release build ofmain37bb30fplus local merges of #44, #47 and #52. Series X profile,VICTORY_OUTPUT=1920x1080,VICTORY_RENDER_SCALE=1.0, fullscreen, no FSR.run.shdefaults otherwise:VICTORY_BVH_BUILDER=1,VICTORY_BVH_IN_PLACE=1,VICTORY_PAGESunset (pages move).Run: started 13:37:25 UTC; frames stop at 13257 around 13:44:28, about 7 minutes in, while playing. Hang dumps at +10 s (13:44:38) and +20 s, then the null write:
0xc0000005 at victory-image+0x2215c35 (write 0x0)at about 13:44:50. Last stats before the stop: 20.7 fps, ~10,200 draws a frame (it had been ~25 fps at ~5,500 draws a few seconds earlier). VRAM 12.7/15.4 GB; last residency line: 3,869 MB of 9,330 MB paged title memory on the card, 2,617 MB of the card free, 0 pages moved down for room. No ERROR lines before the hang; the only WARN in the last 30 s is arecords: a buffer view read by number is made on a copy apart from title memory address=0x0line, which also shows up earlier in the run without trouble.The only thread not waiting, in both dumps, starts at
+0x2215ea0and sits at the same place as in the RDNA3 comment above (+ad5231in the second dump,+ad5241in the first):So it happens on RDNA2, RDNA3 and RDNA4, with RT on and off. In about 27 runs that day this is the only hang; the other runs (all but one with pages moving) didn't hit it.
Log details pulled with Claude Code; the run and the numbers are from my machine.
@Aruku448 on GitHub · 2026-12-01 17:57 UTC · original
Same fault address on RDNA3, which may narrow the hunt:
0xc0000005atvictory-image+0x2215c35(write 0x0), i.e. the same+0x2215c35as in the title of this issue.Environment:
37bb30f, RX 7800 XT (NAVI32, 16 GB), Ryzen 7 5700X3D, Arch kernel 7.3.6-cachyos, wine-staging 11.22 with thepatches/wine.patchwineserver, Mesa 26.3.1 +patches/mesa.patch, vkd3d-proton71cae09.When it hit, and when it did not, over ~10 runs in one evening — a pattern that may say more than the address:
VICTORY_RENDER_SCALE=0.5/1.0/VICTORY_LATE_MOST=1024--profile diag --features diagnostics)VICTORY_RECORD=<folder>, capture in progress (~100 s in)+0x2215c35VICTORY_LATE_MOST=1024, in the world+0x2215c35, before the first 5 s reportSo on this machine the fault shows up in diagnostics builds only, and it is much faster there: seconds to minutes rather than the 10–24 minutes reported here. Two of the diag runs died before the first frame report, i.e. while the title was still presenting its boot/menu frames.
Two guesses for whoever looks next, both testable:
crate::draw::frame_began()(a newer diagnostics-only hook I added atHost::present/present_planes),crate::capture::op, and the per-frame tracing incrate::host. A diag build without those hooks showed the same address in theVICTORY_RECORDrun, which had none of them, so it is not just my new hook.victory-image, not in the title, so adiagnosticsbuild's line tables should name it. If someone can run the crash under the build withRUST_BACKTRACE=1andVICTORY_LOG=debug, the frame line just before the fault would pin it.I have kept the logs of the three crashes if they help.
@Frtuchinno on GitHub · 2026-12-01 19:11 UTC · original
Same crash on RDNA3 (RX 7800 XT), and I think it shows what the hang and the crash have in common: a doubly linked list in the title's own allocator is already corrupt when either happens. The hang walks it into a cycle; the crash unlinks a node whose "previous" link is -1. Plus a second
VICTORY_PAGES=0session that ran clean past the time it crashed.Setup: RX 7800 XT (16 GB, gfx1101), Ryzen 5 7600, 32 GB RAM; CachyOS, kernel 7.3.6, KDE;
proton-cachyos-slrwith ntsync; Mesa/RADV 26.3.1 +mesa.patchfromsetup.sh. Release build of37bb30fplus local merges of #31, #38, #44, #45, #47 and #67. Series X, 2560x1440, ray tracing on,VICTORY_BVH_HARDWARE=1,VICTORY_POOL_MOVE=1, pages move (defaults otherwise).The crash
About 24 minutes in, no hang watch first, frames presented up to it:
What the code at the fault does
+0x26268f0unlinks entryifrom a doubly linked list kept in a table of 20-byte entries with 16-bit links (next at +4, previous at +6), the table's base read from a global. It setsentry[prev].next = next,entry[next].prev = prev, then fills the entry's first 8 bytes with -1.prev == -1. The sign-extended -1 (r8) is cut to 32 bits, so the index becomes0xffffffff(r9 = 0xffffffff * 5), and the store lands ~80 GB past the table:rax + r9*4 + 4 = 0x215da61280. Above0x2000000000, so not title memory at all (port heap: our own memory lies above the title's address space at=0x2000000000), hence "reserved, never committed".ihad no previous node, while its caller treated it as a linked one: either it was the head, or it had already been unlinked (an unlinked entry has -1 in both links; herenextwas still0xb58).+0x2626860..) walks the same list by the 16-bit next links, comparing a size at +0xc of each entry.+0x2626877, where the spinning thread of the first post's hang dumps sits, is the loop's compare-and-branch in that walk. A walk that never ends there is a cycle in the same list. The+ad5241in the RDNA3 hang comment above also walks 16-bit links in 20-byte entries, possibly another list of the same kind; the cycle suspected there is what this crash shows directly.The allocator does not do this on the console, so something on our side corrupts the list before either symptom shows; the code at the fault only exposes it.
Page migration
A second
VICTORY_PAGES=0data point next to the one in the RDNA3 comment above: same build and settings as the crash, plusVICTORY_PAGES=0, 32 minutes, no hang, no crash (the crash came at 24 minutes). Frame rate was the same here (~27 fps either way). Still one session each, so a hint rather than proof.Residency counters at the crash, in case they point somewhere:
So the CPU touches pages while they are on the card very often. My guess, which I could not confirm: if a page holding allocator state (the list and the lock around it) sits on the card while title threads use it, through the BAR rather than as cached RAM, the lock's atomicity or ordering may not be what the title relies on, and two threads end up in the list at once. That would give both a cycle and a double unlink. Someone who knows
um/residency.rsandum/lazy.rsmay see a more direct path.On the comment just above:
victory-image-*.dllis the title's own executable as the loader rebased it (local/cache/images/), not this repo's code, so a diagnostics build's line tables won't name+0x2215c35. And that address is not an accident: the instruction there is a deliberate store to address 0, right after an indirect call — the title's own abort path. So thewrite 0x0crash in this issue's title is the title giving up after the hang (in the first post's runs and the two comments after it, it follows the hang watch), and the bug is whatever stalled it, i.e. the list walk above. Its diag builds crashing in seconds instead of minutes fits a race, though: anything that changes the timing of the title's threads against the layer's (diagnostics, tracing, the page mover's pace) would move it.I have the full logs and can run a diagnostic build or switch on this card.
@Frtuchinno on GitHub · 2026-12-01 20:46 UTC · original
Correction to my comment above:
VICTORY_PAGES=0does not prevent it. Same RX 7800 XT, the hang came back with pages off, after only about 4.5 minutes:VICTORY_PAGES=0confirmed in the game process's environment and in the log (unified memory: VICTORY_PAGES=0, each pool stays where it starts).37bb30fplus local merges of #31, #44, #47, #67, #93, #75, #100 and #98 (no #38, #45).VICTORY_BVH_HARDWARE=0,VICTORY_POOL_MOVE=1.+0x2215c35, as in the first post.+0x2626877, stack+0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292: the same walk of the same 20-byte-entry list as in the first post's dumps and in my crash.So page migration is not the cause, or at least not the only one: my clean 32-minute session with pages off was luck, and pages off is not a workaround. What stands from my comment is the mechanism: the title's allocator list is corrupt by the time either symptom shows, and the corruption happens with pages off as well, so it comes from something else on our side.
@Flamware on GitHub · 2026-12-01 21:15 UTC · original
Same hang on RDNA2 (RX 6950 XT), RT on,
VICTORY_PAGES=0.Setup: RX 6950 XT 16 GB, Ryzen 5 7600X, 32 GB, Bazzite (kernel 7.3.5), Fedora 45 distrobox, Wine 11.22 with the patched wineserver, Mesa 26.3.1 with #44's
mesa.patch.37bb30f+ local merges ofHawkeye54781/rdna2-fixes, #44, #52, #63, #68, #81, #87, #93, #106 and two small local patches (frame generation off in this run). Release build, Series X, 1920x1080,VICTORY_BVH_BUILDER=1,VICTORY_AMBIENT_RT=0,VICTORY_PAGES=0,VICTORY_CARD_PULL=0.Run: about 15 min (title: 14m48s), driving into the city. Frames stop at 25573 with no GPU error in the kernel log, hang watch at +10 s and +20 s, then
0xc0000005 at victory-image+0x2215c35 (write 0x0). Last reports: 14–18 fps, 9,000–11,000 draws.The only thread not waiting, in both dumps (top frame
+0x2626877, then+0x262687e):+0x2626877 <- +0xbc0576 <- +0xbc03b5 <- +0x82cd46 <- +0x300292 <- +0x51c39e1 <- +0x257035e <- +0x221c29c <- +0x2215eca.So
VICTORY_PAGES=0did not prevent it here either. I can share the full log. Analysis prepared with Claude Code; the run is real.@EdouardSence on GitHub · 2026-12-05 16:58 UTC · original
This looks fixed by #466 (merged 2026-12-04,
792dc2c): the stuck worker here sits at+ad5241walking the 16-bit links of the title's range allocator (0x14908f020), and+0x2215c35is the title's watchdog null write after that hang, which is what #466 describes. #466 locks+0xbc0380(unlocked size check before the slot alloc/free calls) and makesis_free_nodereject0xffff.Checked on RDNA4 (RX 9070 XT, CachyOS, proton-cachyos) with
mainat8bf4878: both patches apply at launch:On #82, a 3 h 18 session on
0016306ran 213,252 frames with no fault (it used to crash at ~33,000). No report of this signature on a build with #466 so far. Suggest closing; reopen if someone hits+0x2215c35on a build that logs the two lines above.(Checked with Claude Code; the run is on my machine.)
@cjs0131 on GitHub · 2026-12-06 00:07 UTC · original
Hit this on a build with #466 in, so reopening the question per the last comment.
Setup: RX 9070 XT 16 GB, i9-12900K, 32 GB, CachyOS (kernel 7.3.6), system Wine 11.23 with the repo's Mesa 26.3.1 and vkd3d-proton. Build
8c4e663(release). Series X,VICTORY_PRESET=medium, 2560x1440 output, FSR 4 balanced,VICTORY_FIDELITYFX_FRAMEGEN=4(ML frame gen),VICTORY_FRAME_INTERVAL_MS=33.333,VICTORY_TEXTURE_ROOM_PERCENT=97,VICTORY_AMBIENT_MOST=8,VICTORY_DUALSENSE=1, RT off.Both #466 lines are in the log at launch:
Run: about 19 min after the title loaded. Frames stop at 46772, hang watch at 10 s and 20 s, then:
One difference from the dumps above: in the 20 s hang-watch dump, all 164 threads have their top frame in ntdll/win32u waits (100 at
ntdll+0x10cb4, 57 atntdll+0xec74). There is no thread sitting at+0x2626877or+ad5241, so this hang doesn't look like the range-allocator walk #466 fixes. Same watchdog crash, apparently a different stall. Full log available if useful.