Emulator Issues #12404
Xenoblade Chronicles with custom textures gets stuck on "Reading disc" when ran for the first time
Game ID? (right click the game in the game list, Properties, Info tab)
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
What's the problem? Describe what went wrong.
When ran for the first time, Xenoblade Chronicles with a custom texture pack (https://forums.dolphin-emu.org/Thread-xenoblade-chronicles-hd-texture-pack-v8-52-august-21-2018) will get stuck on "Reading disc". Only occurs with Graphics->Advanced->Utility->Prefetch Custom Textures enabled.
What steps will reproduce the problem?
- install the custom texture pack
- enable Graphics->Advanced->Utility->Prefetch Custom Textures
- start the game
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
Yes, the issue is present in the latest development version b6e9cca64f41d20d6eaca46f151e2efd07ccafbf
Is the issue present in the latest stable version?
Earliest version my distribution provides is 0dbe8fb2eaa608a6540df3d269648a596c29cf4b and the issue is present there. I built the latest stable version (5.0) from source but it segfaults.
If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
[First broken version number here (if applicable)]
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
[Attach any fifologs if possible, write a description of fifologs and screenshots here to assist people unfamiliar with the game.]
What are your PC specifications? (CPU, GPU, Operating System, more)
CPU: AMD Ryzen 1700
GPU: AMD Radeon RX Vega 56
Operating System: Gentoo Linux
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
If I force stop the emulation and try to run the game again (without restarting Dolphin), it will work fine.
It's probably some kind of issue with the amount of time it takes to prefetch the textures on first load. I've seen this happen when there's large texture packs...
That was my first thought. I tried waiting for up to 20 minutes without any success.
I actually get the message saying "Custom Textures loaded, 5721.5MB in 3.8s" before it gets stuck on "Reading disc", so I'd assume that the loading is done at the point of the hang.
Writing down "5721.5MB in 3.8s" made me realize that it's loading them at over 1 gigabyte per second. It seems that this happens because Linux caches the files in RAM. I cleared the cache and now I actually am able to get past "Reading disc", to the wrist strap notice and the game's loading screen afterwards. After some time I get a popup with "GFX FIFO: Unknown Opcode (0x27 @ 0x7f1a586cb602, preprocess=false)" and the emulation freezes. I think this is also why it gets stuck at "Reading disc", but the popup doesn't show for whatever reason during that time. Oddly enough, if I force stop and re-run the game, there is no error and everything works fine.
Interesting issue. Just curious, have you tested in single core mode?
I'm pretty sure I have tried this in single core mode. The settings are a little confusing: there's "Enable Dual Core (speedup)" in settings and "Enable Dual Core" in the game's properties, I tested with both disabled.
Also, how much RAM do you have?