Emulator Issues #13257
openDolphin Hard Crashes When Starting A Game With OpenGL On Linux
0%
Description
Game Name?
Mario Kart Wii
Game ID? (right click the game in the game list, Properties, Info tab)
RMCE01 (00010004524d4345)
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
bb7f2c926cbcdee65e2a48b7002a52ea
What's the problem? Describe what went wrong.
When I choose Vulkan as the renderer, the game runs perfectly. However, when I choose OpenGL, the entire Dolphin app crashes.
What steps will reproduce the problem?
- Add a game (Mario Kart Wii in my case, haven't tested any other games yet)
- Select OpenGL as the renderer
- Start the game
- Watch as the entire Dolphin application crashes!
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
Could not find a way to obtain a development version of Dolphin on Linux, the beta version I am using is 5.0-16380
Is the issue present in the latest stable version?
Could not find a way to obtain a stable version of Dolphin on Linux, the beta version I am using is 5.0-16380
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: Intel Core i5 9300h
GPU: NVIDIA Geforce GTX 1650 Max-Q
RAM: 2x8gb 2666MHz DDR4 CL18
OS: Fedora Linux 38 Stable
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
[Anything else here]
Files
Updated by Shijikori over 1 year ago
I also experience this.
I have tried versions
5.0-16313
5.0-19433
5.0-19368
All exhibit this behavior where the OpenGL renderer causes Dolphin to crash.
CPU: AMD Ryzen 7 7700X
GPU: AMD RX 6700 XT
RAM: 2x16GB DDR5 6000MHz
OS: Arch Linux
Mesa Driver versions tried : 23.1.3 & 22.3.6
DE: KDE Wayland (ran Dolphin under XWayland/X11)
Minimal differences have been observed between the Mesa drivers.
The version available through Flatpak seems to work fine (it uses Mesa 23.1.1 on my system). It's Dolphin version is 5.0-19368.
I might try and compile Mesa 23.1.1 to see if one of my "native" Dolphins run fine with the OpenGL backend and Mesa 23.1.1.
I have used the same game to test.
RMCE01
md5: d3afadf70ee55e7f7ef9d73f569ae3a6
(qualifies as Bad dump due to missing channel partition, missing update partition and errors in unused blocks in the DATA partition. However, this is my own dump from one of my own copies and it has been fine with all previous versions of Dolphin and on a real console.)
Updated by Shijikori over 1 year ago
The AUR package "dolphin-emu-beta-git", which compiles a version matching 5.0-19368, has working OpenGL backend. It installed a few dependencies which leads me to believe that the dolphin-emu package is not installing everything it needs or is not compiled correctly. Likewise, my builds might've not actually compiled correctly due to possibly missing dependencies such as SFML and libspng.
Updated by Shijikori over 1 year ago
I re-compiled 5.0-19368 following the PKGBUILD of "dolphin-emu-beta-git", doing all the steps manually. The resulting binary is capable of running the OpenGL backend.
I would believe this was simply a missing dependencies problem.
Updated by Shijikori over 1 year ago
The issue seems to be linked to Linking Time Optimization (LTO) in GCC >12.
A bug report downstream says that using clang or using GCC 12 generates a fully working binary.
https://bugs.archlinux.org/task/78926
OP would have to confirm the GCC version they are using to check the plausible validity.
Updated by Shijikori over 1 year ago
Pardon, this is the actual downstream bug report : https://bugs.archlinux.org/task/78628