Emulator Issues #13866
closedDolphin hangs on exit with SDL3 and 8bitdo Ultimate 2C Wired controller connected
0%
Description
Game Name?
N/A
Game ID? (right click the game in the game list, Properties, Info tab)
N/A
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
N/A
What's the problem? Describe what went wrong.
When I close Dolphin (Dev), The program hangs/becomes unresponsive,
and I am forced to either end the process or repeatedly click in the Dolphin UI to force windows 10 to realize
that Dolphin is no longer responding, and to force the program to close that way.
What steps will reproduce the problem?
Close the Dolphin (dev) program
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, 2506-359
Is the issue present in the latest release? For future reference, please also write down the version number of the latest release.
No, 2506a
If the issue isn't present in the latest release, 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)]
2506-155
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)
[PC specs here]
Ryzen 9 3950x
Radeon RX6600
Windows 10
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 Billiard26 3 months ago
- Operating system Windows added
- Operating system deleted (
N/A)
I'd like to think this is being cause by something else on your system, like anti-malware software interfering with Dolphin.
You say 2506a does not experience the issue.
Can you please determine the first development version that introduced the issue for you?
Updated by Chuckgofer 3 months ago
I'm not running antimalware software.
Also, the first dev version to start this behavior is 2506-155. I mentioned it in the bug report but it appears the bold formatting got removed. My apologies.
Updated by Chuckgofer 3 months ago
If there's anything I can do to help rule out number 2, let me know. 1 and 3 are out of my hands.
Updated by Chuckgofer 3 months ago
I need my keyboard, mouse and controller, so with only those plugged in, hanging behavior persists.
I've even moved the folder off of the External USB hard drive, it still persists on an NVMe drive.
Updated by Billiard26 3 months ago
Does the issue still occur with the controller disconnected?
Updated by Chuckgofer 3 months ago
No, it doesn't. Controller is an 8bitdo Ultimate 2C Wired controller.
Updated by Billiard26 3 months ago
Please test this build, which has an updated version of SDL: https://dl.dolphin-emu.org/prs/d4/bf/pr-13847-dolphin-latest-x64.7z
Updated by Chuckgofer 3 months ago
Just for further (probably unimportant) information, I tried the test build again fresh as opposed to using an existing user folder, thinking maybe some corrupted controller profile or something?
No change.
Updated by Billiard26 3 months ago
- Subject changed from Dolphin (DEV) hangs on exit, forced to end process to Dolphin hangs on exit with SDL3 and 8bitdo Ultimate 2C Wired controller connected
- Regression changed from No to Yes
- Regression start set to 2506-155
Do other programs that use SDL3 give you this issue?
What about the latest PCSX2 "Nightly" build?
Please actually map your controls in PCSX2 to ensure SDL is being initialized.
Updated by Chuckgofer 3 months ago
PCSX2 v 2.5.112 (current nightly as of posting this) closes with no issue, even after remapping the controls again.
Updated by Billiard26 3 months ago
I don't have high hopes, but can you please test this build? https://dl.dolphin-emu.org/prs/b4/00/pr-13882-dolphin-latest-x64.7z
Updated by Billiard26 3 months ago
ยท Edited
Whelp, I think this is going to be hard to resolve without being able to reproduce the issue myself.
If you can get Visual Studio to compile dolphin, then use the debugger to figure out where dolphin is getting stuck, that would be helpful.
https://github.com/dolphin-emu/dolphin/wiki/Building-for-Windows
We can help you with this on discord.
https://discord.com/invite/dolphin-emu
Updated by Chuckgofer 3 months ago
I'll get started on this in a little bit. I will probably have to take you up on that help on discord at some point.
Updated by Chuckgofer 3 months ago
I'm having difficulty building Dolphin. I'm trying to follow the directions in the wiki link sent, but I'm getting stuck at the first command it wants me to run.
The error I get says 'vs_Community.exe' is not recognized as an internal or external command,
operable program or batch file." But I have Visual Studio 2022 installed.
My Apologies, I don't usually build programs myself.
Updated by Billiard26 3 months ago
You can skip that "command line" suggestion. Follow the steps above that to install visual studio.
Also, please just go on Discord for more help.
Updated by Chuckgofer 3 months ago
I already asked on discord, no one answered me. and I already have VS 2022 installed.
Updated by Chuckgofer 3 months ago
I managed to get Dolphin built, no change. If you have advice how I can attempt to debug this, I'm all ears.
Enclosed find the output from the process of building dolphin
Updated by Billiard26 3 months ago
- File main-thread.png main-thread.png added
- File sdl-joystick-thread.png sdl-joystick-thread.png added
- File sdl-hotplug-thread.png sdl-hotplug-thread.png added
Whelp, there was much discussion on Discord.
And at least one other Discord user has the same issue with the same controller (also on Windows 10).
I've attached stack frame screenshots from Chuckgofer.
SDL3 is getting stuck on shutdown waiting for a window message or something like that.
SDL_SetHint(SDL_HINT_JOYSTICK_THREAD, "0"); doesn't help.
I've purchased the 8bitdo Ultimate 2C Wired controller but I can't personally reproduce this issue in Windows 10 or Windows 11.
Updated by Chuckgofer 3 months ago
I don't think I can be any more help, I ended up returning the controller and getting a first-party xbox controller. I will continue to answer any questions directed towards me, if you think i have any relevant information.
Updated by Billiard26 about 1 month ago
- Status changed from New to Fix pending
Disabling SDL's DirectInput handling works around this issue.
The workaround is pending.
https://github.com/dolphin-emu/dolphin/pull/13982
Updated by Billiard26 about 1 month ago
- Status changed from Fix pending to Fixed
- Fixed in set to 2509-109