Story mode load never finishes: last DirectStorage batch to pages has mapping_changed=true, then no more reads #168

Closed
opened 2026-12-02 05:50:57 +00:00 by github-bot · 4 comments
Owner

@⁠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 it
Dump: 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).

**@⁠qrbruno** on GitHub · 2026-12-02 05:48 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/168) [victory-trace.log](https://github.com/user-attachments/files/35724955/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 it Dump: 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 05:50:57 +00:00
Author
Owner

@⁠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-02 12:52 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/168#issuecomment-7346009961) · 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.
Author
Owner

@⁠rairay91 on GitHub · 2026-12-03 13:47 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 it Dump: 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).

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.

**@⁠rairay91** on GitHub · 2026-12-03 13:47 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/168#issuecomment-7380384324) > [victory-trace.log](https://github.com/user-attachments/files/35724955/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](https://github.com/lobomfz/VIctory-xmem/commit/dad990b688cc73631a9206d68e7af03eb851a92b), Wine 11.22 (system, pinned) + the patched wineserver rebuilt for it Dump: 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). 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.
Author
Owner

@⁠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)

  • The game boots, the menus and input work.
  • When starting story mode, it opens pack\story000\story000.rpf, story000_script.rpf and the ttdb maps/terrain/vfx files, then stays on the loading screen forever.
  • The loading screen keeps rendering at ~100 fps with ~9 draws per frame, and the GPU is mostly idle.
  • The texture queue is stuck at ~1480 waiting for their memory.
  • With VICTORY_DSTORAGE_TRACE=1, the last DirectStorage batch is commands=42 to_pages=41 lists_filled_since_enqueued=37, and then there are no more requests.
  • No WARN/ERROR in the log. Same with the Series X and Series S profiles.

Cause (credit to #127)

The Arch distrobox didn't have libpulse, so pactl wasn't available.

  • Without it, Wine's winepulse.drv can't load, so the game's XAudio2 gets no audio device.
  • The story load then hangs silently. Nothing appears in the log because Wine's error output is off by default (WINEDEBUG=-all).
  • On Arch these packages are only optional dependencies of 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:

pactl info

If you get pactl: command not found or a connection error, this is the problem.

Fix

Inside the distrobox:

sudo pacman -S --needed libpulse alsa-lib alsa-plugins gst-plugins-base-libs gst-plugins-good
pactl info   # should now show the host's server, e.g. "PulseAudio (on PipeWire ...)"

Then start the game again from the host. Story mode loaded normally for me after this.

Things I ruled out along the way

  • Disk/filesystem: my dump is on an NTFS disk mounted read-only. I read all 51 files under pack/story000 and data/ttdb with 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.
  • Wine version: same hang on 11.23 and on 11.22 with the patched wineserver.
  • Kernel: yes, the container uses the host kernel, but VIctory-xmem's patches (Mesa/RADV, vkd3d-proton, wineserver) are all userspace and get built by setup.sh inside 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=4 and device=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:

sudo pacman -S --needed sdl2-compat

If it still hangs for you

Please post:

  1. The output of pactl info (inside the distrobox).
  2. The Wine messages around the hang. Run from the host:
    victory-play series-x VERBOSE=1 WINEDEBUG=err+all 2>&1 | tee ~/victory-verbose.txt
    grep -iE 'err:|pulse|alsa|xaudio|mmdevapi|audio' ~/victory-verbose.txt | sort | uniq -c | sort -rn | head -40
    
    If you don't use a launcher script, start the game the way you normally do and put VERBOSE=1 WINEDEBUG=err+all after ./run.sh play.
  3. The last lines of local/run/last.log before 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.


**@⁠qrbruno** on GitHub · 2026-12-03 14:13 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/168#issuecomment-7381102409) · 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) - The game boots, the menus and input work. - When starting story mode, it opens `pack\story000\story000.rpf`, `story000_script.rpf` and the `ttdb` maps/terrain/vfx files, then stays on the loading screen forever. - The loading screen keeps rendering at ~100 fps with ~9 draws per frame, and the GPU is mostly idle. - The texture queue is stuck at ~1480 `waiting for their memory`. - With `VICTORY_DSTORAGE_TRACE=1`, the last DirectStorage batch is `commands=42 to_pages=41 lists_filled_since_enqueued=37`, and then there are no more requests. - No WARN/ERROR in the log. Same with the Series X and Series S profiles. ### Cause (credit to #127) The Arch distrobox didn't have **`libpulse`**, so `pactl` wasn't available. - Without it, Wine's `winepulse.drv` can't load, so the game's XAudio2 gets **no audio device**. - The story load then **hangs silently**. Nothing appears in the log because Wine's error output is off by default (`WINEDEBUG=-all`). - On Arch these packages are only **optional** dependencies of `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: ```bash pactl info ``` If you get `pactl: command not found` or a connection error, this is the problem. ### Fix Inside the distrobox: ```bash sudo pacman -S --needed libpulse alsa-lib alsa-plugins gst-plugins-base-libs gst-plugins-good pactl info # should now show the host's server, e.g. "PulseAudio (on PipeWire ...)" ``` Then start the game again from the host. Story mode loaded normally for me after this. ### Things I ruled out along the way - **Disk/filesystem:** my dump is on an NTFS disk mounted read-only. I read all 51 files under `pack/story000` and `data/ttdb` with 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. - **Wine version:** same hang on 11.23 and on 11.22 with the patched wineserver. - **Kernel:** yes, the container uses the host kernel, but VIctory-xmem's patches (Mesa/RADV, vkd3d-proton, wineserver) are all userspace and get built by `setup.sh` inside 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=4` and `device=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: ```bash sudo pacman -S --needed sdl2-compat ``` ### If it still hangs for you Please post: 1. The output of `pactl info` (inside the distrobox). 2. The Wine messages around the hang. Run from the host: ```bash victory-play series-x VERBOSE=1 WINEDEBUG=err+all 2>&1 | tee ~/victory-verbose.txt grep -iE 'err:|pulse|alsa|xaudio|mmdevapi|audio' ~/victory-verbose.txt | sort | uniq -c | sort -rn | head -40 ``` If you don't use a launcher script, start the game the way you normally do and put `VERBOSE=1 WINEDEBUG=err+all` after `./run.sh play`. 3. The last lines of `local/run/last.log` before 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. ---
Author
Owner

@⁠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.

**@⁠wrz1911** on GitHub · 2026-12-03 14:16 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/168#issuecomment-7381167408) 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#168
No description provided.