Project

General

Profile

Actions

Emulator Issues #10501

closed

My directinput controller makes the emulator crash

Added by Drayano over 6 years ago. Updated over 5 years ago.

Status:
Won't fix
Priority:
Normal
Assignee:
-
% Done:

0%

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

Description

What's the problem? Describe what went wrong.

When my controller is plugged and i launch dolphin, it instantly crash. If i plug the controller AFTER launching dolphin, it doesn't crash. I can launch games and play them fine but i can't configure my controller because if i try to, the emulator crash so i have to play with keyboard controls or use 3rd party programs like JoyToKey.
Here is a gif showing the problem : https://i.imgur.com/JZiLde6.gifv . First launch is with the controller already plugged in. For the second launch i unplugged my controller, launched dolphin, then i plugged it back in and tried to configure it.

What steps will reproduce the problem?

Try to configure the controls or launch the emulator while the controller is already plugged in

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, it is present in the latest development version [5.0-5314]

Is the issue present in the latest stable version?

No, it isn't present in the 5.0 stable version

If the issue isn't present in the latest stable version, which is the first broken version?

After some bisecting i have found the latest development version that doesn't have the crash [5.0-3977] and the first one that have it [5.0-3981]

What are your PC specifications? (CPU, GPU, Operating System, more)

I use Windows 10 x64, my CPU is an AMD A6-3650 @ 2.6Ghz, i have an iGPU AMD Radeon HD 6530D. I can't find any info about my controller online, it's not a genuine one, just some cheap model that looks like a ps2 controller and works via DirectInput

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

I don't know what i can add to help find the problem, my controller works fine with other emulators/games. The only emulator that have the same problem with my controller is cemu.

Actions #1

Updated by JosJuice over 6 years ago

  • Status changed from New to Questionable
  • Milestone set to Current

Sounds very similar to a controller driver problem that started happening with 5.0-3981 that a hotpatch was added for a while ago: https://github.com/dolphin-emu/dolphin/pull/5582/files#diff-3b0cab8688c56336e774aed747434ceeR208

So this is most likely actually a problem in the controller driver rather than Dolphin... But if we're lucky, maybe someone is willing to look into making Dolphin hotpatch the driver for your controller too. I'll leave this report open as Questionable/Current for now, and I suppose we'll just close it if we get closer to the next release without any progress on this. (Or does anyone else think we should close it right away?)

Thanks for properly bisecting, by the way. It allowed me to figure out a lot more about this issue than I would've been able to otherwise.

I'm guessing that many of the programs that the controller works fine with for you are 32-bit (or don't support ASLR).

Actions #2

Updated by Anonymous over 6 years ago

We can add a patch for it if the problem is simple enough.
It would help to have a crashdump.
Make sure you have installed the latest driver possible - for the previous issue I complained to the manufacturer and they actually did ship a new driver (although dolphin still applies the patch all the time - since it can't really tell which version is fixed or not...). So maybe someone else has already complained, and the manufacturer of your device shipped a fix..

Actions #3

Updated by Drayano over 6 years ago

When i bought the controller it had the drivers in a little cd-rom so i installed them from there. Couldn't really find my model online so i guess it's just a generic model.
Where can i find a crashdump ? Is it recorded somewhere by the emulator ? Maybe it would help if i upload my drivers ? I don't really know what i can do to help fix this issue :/

Actions #4

Updated by Drayano over 6 years ago

When i bought the controller it had the drivers in a little cd-rom so i installed them from there. Couldn't really find my model online so i guess it's just a generic model.
Where can i find a crashdump ? Is it recorded somewhere by the emulator ? Maybe it would help if i upload my drivers ? I don't really know what i can do to help fix this issue :/

EDIT : Finally after some research i found someone who made his own drivers for those sorts of controllers (https://github.com/alessandroasm/generic-usb-gamepad-vibration-driver) after i removed my old drivers and installed this one the emulator doesn't crash anymore and my controller works !
I'm so sorry for bothering you guys while the solution was so obvious !

Actions #5

Updated by Billiard26 over 5 years ago

  • Status changed from Questionable to Won't fix

Resolved.

Actions

Also available in: Atom PDF