Reproducible GPUVM fault + device loss in the open world (SQC data read, RX 9060 XT): 0x80001e96a000 / 0x80001e800000 #75
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/vktory6--VKtory#75
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?
@sandhu-s on GitHub · 2026-12-01 11:31 UTC · original
What is wrong: The GPU faults (SQC data read of an unmapped page) during open-world play, amdgpu resets the gfx ring, RADV loses the device, and the run ends. It reproduces at two different addresses, so it is not a one-off.
Seen on:
445a596(first occurrence ond084757)System: AMD Radeon RX 9060 XT (RDNA4, GFX1200), RADV from Mesa 26.3.1-5, CachyOS (Arch), Linux 7.3.6-3-cachyos, Proton Experimental 11.0-20261123b, Ryzen 7 5800X (16 threads), 31 GB RAM, output 3840x2160@60 over HDMI (no VRR). Warm shader store; no shader translation at the time of either fault.
Where and when: Open world after the save loads, no input beyond the auto-press into the world.
present 5941.--console series-s): fault ~30 seconds after world entry,present 786.VK_ERROR_DEVICE_LOST, not onlytitle exited with 1.Log lines: Run A:
Run B:
Kernel side (Run B), same address:
Both fault addresses are inside RADV's normal VA range (low 48 bits
0x8000_1e96_a000/0x8000_1e80_0000, i.e.0xffff_8000_…), so a vkback-allocated object, not the umem title window — the same shape as the opendocs/TASKS.mditem "Rare device loss on a command buffer page" anddocs/learnings/device-loss.md(faulting client SQC data,PERMISSION_FAULTS 3).loud.txtfor both runs contains only kinds already owned inTASKS.md(buffer view not on 4 bytes over no title memory (null),… past its title memory (tail reads 0), therule32 … lane branches stayed per lanepipelines); nothing UNKNOWN.Can provide:
log.txt,vk.logandloud.txtfor both runs (keeping the game out, as the policy requires). I can also reproduce on demand and run once withUMEM_BINDLOG=1to decode the fault page to its object — that costs one more amdgpu ring reset, so I stopped the bind-log run rather than reset the GPU again.@vktory6 on GitHub · 2026-12-01 11:35 UTC · original
Thanks, this is an excellent report, and it's the first time this fault has reproduced at all: we saw it once and couldn't trigger it again in 7 runs on the reference card. I added your data to the existing task "Rare device loss on a command buffer page" (
github.com/vktory6/VKtory@2723ba7). The Series S run faulting ~30 s after world entry is the fastest repro anyone has.Two things would help most, both only if you're fine with another ring reset:
UMEM_BINDLOG=1, plus thelog.txtandvk.loglines around the fault. The bind log (with the device-address binding report) lets us decode the faulting page to the object vkback allocated there, which is the step that has been missing.Please paste the relevant log excerpts into the issue rather than whole files (our own log lines only, as you did). Thanks for keeping the game out of it.
@sandhu-s on GitHub · 2026-12-01 11:42 UTC · original
Rechecked on:
7a713d2, withplay.sh(the new switch) andVKTORY_CONSOLE=series-s; the run folder's console.txt says series-s. Answering the second question: this card is the 16 GB RX 9060 XT (mem_info_vram_total= 16,304 MB; GTT budget ~15.9 GB; 31 GB system RAM).System: AMD Radeon RX 9060 XT (RDNA4, GFX1200), RADV from Mesa 26.3.1-5, CachyOS/Arch, Linux 7.3.6-3-cachyos, Proton Experimental 11.0-20261123b, Ryzen 7 5800X (16 threads), 31 GB RAM, 3840x2160@60 over HDMI (no VRR).
Command:
VKTORY_CONSOLE=series-s RUN_SECS=120 EXTRA_ENV="UMEM_BINDLOG=/home/jv/.local/share/victory/bind-ss2.log" tools/play.shRepro: deterministic in Series S, always the same page:
445a596):GPUVM fault detected at address 0x80001e800000,DEVICE LOST at present 786.7a713d2): same address,DEVICE LOST at present 757.7a713d2, bind log): same address; last vk.log present 802; noDEVICE LOSTline reached vk.log, the run ended fromumem: vkQueueBindSparse failed ... ERROR_DEVICE_LOST.445a596):0x80001e96a000after ~6 minutes (present 5941), i.e. a nearby page of the same window.So: 3 of 3 Series S runs fault at
0x80001e800000after ~750-800 presents, ~30 s after world entry.Decode (UMEM_BINDLOG=1, VK_EXT_device_address_binding_report):
0xffff_8000_0000_0000 + 0x1e800000.0xffff800000000000, length0xeb00000(ends at0xeb00000); command buffers of0x4000-0x10000, highest end0xffff80000eb0c000; highest object base0xffff80000f000000(240 MB); descriptor pools at0xffff800000188000/0xffff800000189000; device objects at0x8000/0x88000.0x1e800000at any time in the run, and there is no unbind of it. The page was never mapped. The nearest object below is the 235.0 MB buffer, which ends at0xeb00000; the fault page is 248 MB past its end. Nothing is bound above the fault page.docs/learnings/cmdpool-fault.mddescribes. If the 235.0 MB buffer at the window base is the descriptor buffer, the read is 248 MB past its end.log.txt around the fault (our lines):
vk.log around the same moment (no DEVICE LOST line this time; these are the last lines before the log stops):
Kernel, same page (17:07:52-55):
The fault happens while the run is still in loading/menus (present ~800), so I make no frame-rate claim from these runs.
I still have the 26 MB bind log and both run folders. I can rerun with
VKB_DBUF0_SENTINEL=1(orVKB_POOL_TRIM_MS=0) if that is the useful next step, and paste more excerpts of our own lines on request.@vktory6 on GitHub · 2026-12-01 11:53 UTC · original
Thank you, that decode is the step that was missing, and it moves this a long way. It's in the task (
github.com/vktory6/VKtory@070a161).One observation, labelled as a guess until it is measured: 235.0 MiB is exactly the size of our descriptor set 0 with its seven typed bindings (NotBalkanus measured it in #57). If that buffer at the window base is the descriptor buffer, the fault is a scalar descriptor load about 16 million 32-byte slots past its start, far beyond the heap's 1,245,184 slots. That would point at a garbage or mis-scaled slot index in a translated shader, which also fits SQC data with
PERMISSION_FAULTS 3.So
VKB_DBUF0_SENTINELis not the right next step: it covers the old descriptor buffer's range after it is freed, and your log shows this page was never mapped at all. Since your Series S repro is deterministic, we'll try it on the reference card first, to confirm what the 235 MiB buffer is and then find the shader and the index. No more ring resets needed on your side for now. If you want to keep going anyway, the most useful thing would be the vk.log lines naming the pipelines bound in the last few submissions before the fault, if any are printed.@sandhu-s on GitHub · 2026-12-01 11:59 UTC · original
On the pipeline lines: vk.log does not name the pipelines bound per submission (it prints only the 5 s stats window), so there is no bind list to hand over. What is printed immediately before the fault is a burst of eight shader translations in one millisecond, then the fault about 0.4 s later — the same "new pipelines just before it" shape as #16:
The last vk.log stats window before that (present 780):
30.5 fps, 32.8 ms/frame median,lists run 3813 dropped 0,pipelines built 3187,warm-up 4545 of 4545 made,issues 20. The last present printed in vk.log is 802.For the slot-index guess, the arithmetic from the log:
0x1e800000 / 32 = 15,990,784, i.e. a 32-byte slot ~15.99 M from the window base; the 235.0 MiB buffer ends at slot0xeb00000 / 32 = 7,700,480, so the read is ~8.29 M slots past its end.There is no per-submission "pipelines bound" line today. If you add or name one (or a switch that prints the bound pipelines/descriptor indices for the last few submissions), I can run the deterministic Series S repro with it and paste that.
@vktory6 on GitHub · 2026-12-01 12:08 UTC · original
Thanks, the translation burst right before the fault is a useful detail; it's noted. Good news: it reproduces on the reference card now (2 of 2 Series S runs, boat and prison starts, fault at
0x80001f000000). Our bind log also confirms that the 235 MiB buffer is the descriptor buffer: there are two in the window, the one from before vkback moves it at startup and the one after, and the fault page is past both. Details are in the task (github.com/vktory6/VKtory@386208f).With a local repro we can add the per-submission instrumentation ourselves, so there's nothing more you need to run for now. Thanks for the careful work on this.
@C-Otto on GitHub · 2026-12-01 12:19 UTC · original · edited 2026-12-01 12:24 UTC
On my machine (8 GByte VRAM, RX 6650 XT, 32 GByte sys RAM) I can reproduce a protection fault at address 0x800023000000 and I'd be happy to provide further information it that helps. Sorry if this is off topic, I don't understand the details of what's going on here.
The crash happens after just a few seconds in the loading screen before I see the open world. This does ALWAYS happen with series-s, NEVER with series-x.
loud.txt:
dmesg:
NB: With series-x I'm able to walk around in the prison scene (at 1fps or so), but most of the textures are black.
@vktory6 on GitHub · 2026-12-01 12:23 UTC · original
Not off topic at all, thank you! It's the same fault (SQC data read,
PERMISSION_FAULTS 3, Series S only), and it's the first report from an RDNA2 card. It's in the task (github.com/vktory6/VKtory@900b465).Since it reproduces within seconds on your machine, one run would test a guess cheaply, if you don't mind another GPU reset:
Then please post the lines of
/tmp/bind.logthat containva bindand a length of0xeb00000or larger, plus the commit you built (git rev-parse --short HEAD). On the reference card the fault address is exactly twice the address of the descriptor buffer; your card's buffer is bigger, so its address tells us whether that pattern holds.The Series X problem you describe (about 1 fps, most textures black on 8 GB) is a separate issue. Could you open a new issue for it, following docs/bug-reports.md? The
fpslines fromvk.logand theloud.txtsummary of that run would help most. Making the title work on 8 GB is something we want.@C-Otto on GitHub · 2026-12-01 12:36 UTC · original
Attached. The largest 0xe read is of size 0xe4.
Commit
e509c37bind.log
Also, my mouse cursor turns invisible (but it remainds working) after the game ends. If there's an easy fix, I'd appreciate it :)
@vktory6 on GitHub · 2026-12-01 12:42 UTC · original
Thank you! One thing went wrong, and it's my fault for how I phrased it: every line in the file has a length that starts with
0xf, so it looks like the filter matched the text "0xe…/0xf…" rather than the size. The buffer we're after is probably bigger on your card (a length like0x10…or0x11…), so the filter dropped it. None of the lines are in the window the fault is in.Could you post the output of this, from the same
/tmp/bind.logif you still have it (otherwise one more run)?That prints the first binds in the low 4 GiB window where both faults land (
0x8000xxxxxxxx), which is all we need.About the invisible mouse cursor after the game ends: does it happen after a normal quit too, or only after the device loss? And which desktop/session (e.g. KDE Wayland, GNOME)? Moving the pointer onto another window, or switching to another virtual desktop and back, usually brings it back in the meantime.
@C-Otto on GitHub · 2026-12-01 13:02 UTC · original
Mea culpa, my sorting only sorted by prefix, i.e. 0x100 is seen as being smaller than 0x20.
On a new run (commit
900b465) your command gives:Happy to provide more data.
Re mouse cursor:
If I quit via CTRL+C everything is fine. It seems to be related to the series-s crash. I can move the cursor around up to the moment of the window disappearing (crash). Then the cursor image remains stuck, but I can still move the mouse and select/click stuff elsewhere on the screen (as if the cursor was invisible). The stuck cursor image changes shape, though, depending on where I move the (invisible real) cursor (text "I" thingy, pointer, grabby thing). I'm using xmonad with a bit of gnome-2, using X11 (no wayland). Switching and moving around doesn't help. It's not a huge issue, though.
@vktory6 on GitHub · 2026-12-01 13:06 UTC · original
That's exactly what was needed, thank you! It disproves my guess and shows something better:
0x0f800000,0xeb00000long0x1e3000000x1f0000000xd000000x11200000,0x11100000long0x223000000x230000000xd00000So "twice the address" was a coincidence on our card. On both cards the fault is the same 13 MiB past the end of the descriptor buffer, although the buffer is bigger on yours. A bad descriptor index would land further out on RDNA2 (bigger descriptors); a fixed distance points at something that sits, or was meant to sit, right after that buffer. Recorded in
github.com/vktory6/VKtory@f6ce4d0.Debugging work on this starts this afternoon with our local repro.
About the cursor: thanks for the details. Since it only happens after the crash and a Ctrl+C is fine, it's most likely the GPU reset leaving the cursor plane in a bad state on X11 rather than something the game does. It should go away with the crash fix; if it stays after that, it deserves its own issue.
@C-Otto on GitHub · 2026-12-01 13:10 UTC · original
For completeness sake, here's the original data you asked for (length 0xeb00000 or more), obtained with
grep "va bind" bind.log | sort -g -k 5:@vktory6 on GitHub · 2026-12-01 15:40 UTC · original
Fixed in
github.com/vktory6/VKtory@7546dcb, thanks to everyone who reported and measured; your bind logs found it.Cause: some shaders read a constant buffer they pick from the descriptor heap. The translator sent that read to the "raw twin" index (2^21 + slot), but it stays a constant-buffer read, so it went to the uniform-buffer binding at 2^21 + slot, where nothing is stored. That binding is the last one in the descriptor buffer and holds 1,245,184 slots of 16 bytes, so slot 2^21 lies exactly 13 MiB past the buffer's end on every card. That's the
0xd00000past the end you all saw. Before #34 (earlier today) the binding was larger, so the same reads silently returned zeros instead of the constants; #34 made them a page fault. 639 of 4,552 translated shaders had this access. Series S reaches it within seconds, Series X rarely (it depends on the data).Fix: those reads stay at the shader's own slot. Verified on the RX 9070 XT: Series S boat and prison starts run 120 world seconds clean (they lost the device at present ~920 before), no new validation errors, and the Series X picture is unchanged in the prison and boat scenes. The first start after updating re-translates all shaders (TRANSLATOR_VERSION 13), so give it a minute. Details:
docs/learnings/cbv-twin-fault.md.@C-Otto and the original reporter: a Series S run on your cards would confirm it (RDNA2 and the 9060 XT). Closing; please reopen if it still faults on current main.
@C-Otto on GitHub · 2026-12-01 15:52 UTC · original
Confirmed. With
1fab7d5I get to the café scene and then it crashes. This might be due to lots of shaders that have to be compiled first. I'll run it again a few times and post crash insights here, if this is reproducible.@vktory6 on GitHub · 2026-12-01 16:03 UTC · original
Thanks for testing! Translating shaders at the first start shouldn't crash anything: it is slow, but it runs in the background. So a crash at the café scene is worth looking at. When you have one, these would tell us whether it's the same fault or a new one:
amdgpulines fromdmesg(orjournalctl -k) around the crash: the faulting address, the client (e.g. SQC data, TCP), and theGCVM_L2_PROTECTION_FAULT_STATUSline if there is one.vk.log.UMEM_BINDLOGon, the bind log, so we can see where the faulting address sits relative to the descriptor buffer (the #75 fault was always 13 MiB past its end).If it's the 13 MiB pattern again, I'll reopen this issue. Otherwise we'll track it as a new one.
@C-Otto on GitHub · 2026-12-01 16:04 UTC · original
In the first run I saw lots of shader compilation messages, while the scene showed only black (audio was working, though). Now, after a few retries, the scene still is just black. The menu (pressing escape) renders, as do the "hold button to skip" messages before the café scene. Should I open a new issue for this?
At
dfb18d9with series-s:loud:
@vktory6 on GitHub · 2026-12-01 16:07 UTC · original
Thanks! Yes, please open a new issue for the black café scene. It isn't the #75 fault: your stats show no device loss, and the menu and skip prompt still render. So this is your confirmation that #75 is fixed on the RX 6650 XT in Series S, and I've recorded it (
f441ab7).Useful for the new issue:
vkback marklines and the stats window after it, as you posted here);No screenshots, please (game content), but a text description of what does and doesn't show is great.
@C-Otto on GitHub · 2026-12-01 16:09 UTC · original
Regarding the crash (
1fab7d5series-s):vk.log (last 50 lines):
dmesg:
No GCVM_L2_PROTECTION_FAULT_STATUS in the logs.
Lots of shader compilation:
vk-store warm: 3336 shaders wanted (3078 pipelines recorded), 0 without a container; 0 already translated in /home/cotto/.local/share/victory/shader-store/db/tr-3c57c0b37e1252c5.sqlite, 3336 translated now (71.3 s), 0 not translatable; cache entries unusable and made again 0; database reads or writes failed 0; 0 scratch folders of killed runs removed; 71.4 s in all
@vktory6 on GitHub · 2026-12-01 16:11 UTC · original
Thanks, that settles it: this isn't the #75 fault. #75 was a page fault (
GCVM_L2_PROTECTION_FAULT_STATUS, SQC data read). Yours is a GPU hang:ring gfx_0.0.0 timeout, then a ring reset, with no fault line. So I corrected my note: on your card #75 is fixed, and the café scene has its own problem.I created a task based on your report:
a2a073aadds "Series S café cutscene: black, and one GPU hang" todocs/TASKS.md, with both the black scene and the hang (they may share a cause). No need to open a new issue now; we can split it into one later. What would help next:/sys/class/drm/card0/device/devcoredump/dataup to the ring contents (register state and the ring/IB headers), not the whole file.@C-Otto on GitHub · 2026-12-01 16:18 UTC · original
Justed tested at
a2a073a:series-x renders fine, as before (some missing textures, another issue). Red warning (loud):
UNKNOWN 14 CopyResource onto itself (skipped: the result is unchanged bytes) no owner: open an issue / tell the coordinatorseries-s remains black while audio is playing (café scene, same for prison cell scene). F9 at start of café scene:
@sandhu-s on GitHub · 2026-12-01 16:21 UTC · original
can confirm same here s black x works with minor graphical issues
@vktory6 on GitHub · 2026-12-01 16:29 UTC · original
Thank you, that narrows it a lot: Series X renders the café scene, while Series S is black there and in the prison cell. So it's the Series S version on your card, not the scene. I added your F9 data to the task (
4bd53cc). In that window, the present waited 1.2 s for the remapper and the submit thread 1.6 s on the bind lock, with 11,535 images made. I renamed the task to "Series S: cutscenes render black, and one GPU hang".About the red
UNKNOWNline: "CopyResource onto itself" has an owner indocs/TASKS.md, but the item quoted only the first four words, too short for the loud summary to match. It now quotes the full kind and lists your sightings (d202116), so the next run shows it as known.@vktory6 on GitHub · 2026-12-01 16:42 UTC · original
Thanks @sandhu-s, and @C-Otto again: with two cards showing the same thing I checked the reference card, and it reproduces there too. On an RX 9070 XT, a Series S prison start gives screenshots at 20, 40 and 70 s where every pixel is 0, while the game runs on normally (23 fps, no device loss). My #75 fix runs only checked for the fault, not the picture, sorry for missing that.
So this is a Series S bug on every card, and we can debug it on the reference card. The task is updated:
github.com/vktory6/VKtory@cd10caa("Series S: cutscenes render black, and one GPU hang"). No more data needed from you for the black picture. A devcoredump from another hang would still help with the hang part.