Project

General

Profile

Actions

Emulator Issues #13866

closed

Dolphin hangs on exit with SDL3 and 8bitdo Ultimate 2C Wired controller connected

Added by Chuckgofer 3 months ago. Updated about 1 month ago.

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

0%

Operating system:
Windows
Issue type:
Bug
Milestone:
Regression:
Yes
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
2506-155
Fixed in:
2509-109

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

Dolphin v.2506-372 build output.txt (53.8 KB) Dolphin v.2506-372 build output.txt Chuckgofer, 08/19/2025 01:49 PM
main-thread.png (52.2 KB) main-thread.png Billiard26, 08/28/2025 04:36 PM
sdl-joystick-thread.png (27.9 KB) sdl-joystick-thread.png Billiard26, 08/28/2025 04:36 PM
sdl-hotplug-thread.png (55.5 KB) sdl-hotplug-thread.png Billiard26, 08/28/2025 04:36 PM
Actions #1

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?

Actions #2

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.

Actions #3

Updated by JMC4789 3 months ago

That would suggest that it's either a bug with SDL3, a USB device on your system, or with how we're using SDL3.

Actions #4

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.

Actions #5

Updated by JMC4789 3 months ago

You could try unplugging non-essential devices to see if any of them are causing an issue.

Actions #6

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.

Actions #7

Updated by Billiard26 3 months ago

Does the issue still occur with the controller disconnected?

Actions #8

Updated by Chuckgofer 3 months ago

No, it doesn't. Controller is an 8bitdo Ultimate 2C Wired controller.

Actions #9

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

Actions #10

Updated by Chuckgofer 3 months ago

No change in behavior.

Actions #11

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.

Actions #12

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.

Actions #13

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.

Actions #14

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

Actions #15

Updated by Chuckgofer 3 months ago

No change yet.

Actions #16

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

Actions #17

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.

Actions #18

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.

Actions #19

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.

Actions #20

Updated by Chuckgofer 3 months ago

I already asked on discord, no one answered me. and I already have VS 2022 installed.

Actions #21

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

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.

Actions #23

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.

Actions #24

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

Actions #25

Updated by Billiard26 about 1 month ago

  • Status changed from Fix pending to Fixed
  • Fixed in set to 2509-109
Actions

Also available in: Atom PDF