Story mode load never finishes: last DirectStorage batch to pages has mapping_changed=true, then no more reads #168
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#168
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?
@qrbruno on GitHub · 2026-12-02 05:48 UTC · original
victory-trace.log
Setup
Ryzen 7 5700X, RX 9060 XT 16 GB, 32 GB RAM
Bazzite (Fedora 44 atomic), VIctory run inside an Arch distrobox
Commit
dad990b, Wine 11.22 (system, pinned) + the patched wineserver rebuilt for itDump: build 930.048.020, on an NTFS disk mounted read-only (ntfs3)
Shader/pipeline cache warmed (run.sh shaders): pipelines=94191, shaders=25761, cache misses 0
What happens
The title boots, the menus work, and input works.
When I start story mode, it opens pack\story000\story000.rpf, story000_script.rpf and the ttdb maps/terrain/vfx files, and then stays on the loading screen forever.
The loading screen keeps rendering at about 100 fps with ~9 draws per frame, and the GPU sits around 10% busy.
Same with the series-x and series-s profiles.
The host's textures picked by index line shows 1482 slots ... 1482 waiting for their memory, and that count never goes down.
No WARN/ERROR related to I/O.
With VICTORY_DSTORAGE_TRACE=1
Plain batches (to_pages=0) complete normally (ok=true).
The last batch before the stall is the first one I see with to_pages > 0:
05:36:30.535168 dstorage trace: a batch queue=11 early=false commands=42 to_pages=41 lists_filled_since_enqueued=37 lists_not_filled=0 oldest_ms=0
05:36:30.535275 dstorage trace: a request seq=25410 queue=11 ... page_offset=4096 size=4096 ... at_enqueue=af63bd4c8601b7df at_submit=c8b89d4cb10cf07f ... list_changed_late=false mapping_changed=true first_page=1661728 ok=true
05:36:30.535659 dstorage trace: a request seq=25413 queue=11 ... page_offset=16384 size=16384 ... mapping_changed=true first_page=1661744 ok=true
After 05:36:30.535 there are no more dstorage lines at all until I close the window at 05:39:23 (title did not finish suspending in time).
mapping_changed=true appears N times in the log.
Ruled out
I read every file under pack/story000 and data/ttdb: 51 files, all readable, and no ntfs3 or I/O errors in dmesg.
Also, possibly related
Under Proton (Experimental and GE), the title reaches the menu, then crashes with 0x80000003 at victory-image dll+0x4dcbc9d.
Full log attached (colour codes stripped).
@rairay91 on GitHub · 2026-12-02 12:52 UTC · original · edited 2026-12-02 13:00 UTC
I also tried this https://github.com/vktory6/VKtory same problem.
🤔 Perhaps it has to do something with kernel. I am not sure though.
These build want to install some kernel modules. But container uses host kernel.
Looking closely in the terminal as well as in the victory performance hud, gpu is endlessly trying to queue texture in gpu memory and almost instantly revert back to zero.
@rairay91 on GitHub · 2026-12-03 13:47 UTC · original
A temporary solution is run at least once so that it create wine/proton prefix inside container than run it from host system. It's gonna work jutlst fine.
@qrbruno on GitHub · 2026-12-03 14:13 UTC · original · edited 2026-12-03 14:18 UTC
Hi @rairay91, I don't think it's the kernel, at least not in my case. I had exactly the same infinite loading screen, and I fixed it. Here is the full write-up.
Symptoms (mine)
pack\story000\story000.rpf,story000_script.rpfand thettdbmaps/terrain/vfx files, then stays on the loading screen forever.waiting for their memory.VICTORY_DSTORAGE_TRACE=1, the last DirectStorage batch iscommands=42 to_pages=41 lists_filled_since_enqueued=37, and then there are no more requests.Cause (credit to #127)
The Arch distrobox didn't have
libpulse, sopactlwasn't available.winepulse.drvcan't load, so the game's XAudio2 gets no audio device.WINEDEBUG=-all).wine, so they aren't installed automatically.This also explains why you get the same result with another fork: they all run in the same container, so they all miss the same library. It's not GPU-specific either: #127 is an RX 7900 XTX (RDNA 3) and mine is an RX 9060 XT (RDNA 4).
How to check
Inside the distrobox:
If you get
pactl: command not foundor a connection error, this is the problem.Fix
Inside the distrobox:
Then start the game again from the host. Story mode loaded normally for me after this.
Things I ruled out along the way
pack/story000anddata/ttdbwith no errors and dmesg was clean. I also copied the whole dump to the system disk (not NTFS) and it hung exactly the same before the fix.setup.shinside the container. None of them need a kernel change. I haven't checked the VKtory fork, so I can't say whether it needs kernel patches.Extra: Proton controller
If you run with Proton and your controller isn't detected, the log only shows
input device device=4anddevice=5, which are the keyboard stand-in pad and the keyboard (real pads are 0 to 3). In my case the container had no SDL at all. Fixed with:If it still hangs for you
Please post:
pactl info(inside the distrobox).VERBOSE=1 WINEDEBUG=err+allafter./run.sh play.local/run/last.logbefore the hang.My setup: RX 9060 XT 16 GB (RDNA 4), Ryzen 7 5700X, 32 GB RAM, Bazzite with an Arch distrobox, system Wine 11.22 plus the patched wineserver, dump build 930.048.020.
@wrz1911 on GitHub · 2026-12-03 14:16 UTC · original
Related: on our side story mode loads fine, but if you are on the warm path and it hangs (never finishing), note that warm pipeline preparation stops making progress when VICTORY_WARM_JOBS oversubscribes the CPU (workers x ~2 threads > logical cores). Setting it to 10-12 on a 24-thread CPU was the difference here. Details: #325.