Project

General

Profile

Actions

Emulator Issues #11994

closed

GPU error when using Prefetch Custom Textures with 4-5GB+ texture pack - Leaks into Emulation

Added by v1993 over 4 years ago. Updated about 2 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

The Legend of Zelda: Four Swords FOR NINTENDO GAMECUBE (Disc 0, Revision 0)

Game ID? (right click the game in the game list, Properties, Info tab)

G4SP01

MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)

a8665e36c64c2369628aabef6b268c42

What's the problem? Describe what went wrong.

I'm working on an HD texture pack for FSA. When overall size of custom textures (as reported by Dolphin when prefetching is done) went over some size (up to about 5GB), game started stopping with GPU errors (invalid opcode ff or some other) in various places, guaranteed to happen when dark link uses hammer in eastern temple.

Further testing confirmed that problem is not caused by specific texture added to pack but by its overall big size combined with "prefetch custom textures" option. If size is reduced by removing any textures or this option is disabled, error no longer happens.

As shown in https://forums.dolphin-emu.org/Thread-using-upscaled-textures-causes-gpu-error, same error happen to other user with other titles as well.

What steps will reproduce the problem?

  1. Install texture pack over 5GB in size.
  2. Enable "Prefetch Custom Textrues"
  3. Play game it is designed for.

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, version 5.0-11661

Is the issue present in the latest stable version?

Unknown

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.)

Unknown, testing for issue takes considerable time so bisecting would preferably be avoided.

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)

Ubuntu 19.10

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)

GPU error screenshot is attached.


Files

Screenshot from 2020-02-29 20-47-56.png (33.4 KB) Screenshot from 2020-02-29 20-47-56.png Example error v1993, 03/01/2020 02:24 PM
dolphin.log (8.45 KB) dolphin.log v1993, 03/01/2020 05:30 PM
Actions #1

Updated by Billiard26 over 4 years ago

Can you attach Dolphin's log output from a game session where this occurs?

Actions #2

Updated by v1993 over 4 years ago

Log should be attached. This time game already hanged inside first hall of eastern temple. Upon error

25:02:705 Core/HW/EXI/EXI_DeviceIPL.cpp:306 N[OSREPORT]: GP status 101100 --> GP is in unknown state.

was written to log.

Actions #3

Updated by v1993 over 4 years ago

I've recompiled Dolphin in debug build. So far I can say that option set

LDFLAGS='-fsanitize=address' CXXFLAGS='-march=native -O2 -g -fsanitize=address' CFLAGS='-march=native -O2 -g -fsanitize=address' cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/v/.local -GNinja

still result in this problem. In addition, I get an error on game launch (using or not using custom textures doesn't affect it) in OGLTexture.cpp, line 209. Quick look suggests that that is an assert active only in debug builds.

By the way, this problem still happens on other video backends (including Null), but those don't fail an assert on startup in debug build. -fsanitize=address seems to detect nothing. I also got crash in the game menu, for sure this time.

Actions #4

Updated by JMC4789 about 4 years ago

  • Subject changed from GPU error when using Prefetch Custom Textures with 4-5GB+ texture pack to GPU error when using Prefetch Custom Textures with 4-5GB+ texture pack - Leaks into Emulation
  • Status changed from New to Accepted

So, there is a weird error where texture packs can seemingly leak into the actual emulated state and cause crashes. I just don't know how it happens or why. I'd rather have an issue centered around the actual bug than the consequences of it down the line. This can be accepted for now, but I'll probably make an issue to replace it down the line.

Actions #5

Updated by Bighead.0 over 3 years ago

Was about to make an issue about this, but happy to see one already exists. Not a linux user, so all I can do is say this was brought to my attention recently and is still an issue that affects multiple HD packs.

Actions #6

Updated by JMC4789 about 2 years ago

  • Status changed from Accepted to Fixed

This is fixed in the latest builds now. Needs testing on Android to make sure it doesn't happen there.

Actions

Also available in: Atom PDF