cemu-project / Cemu

Cemu - Wii U emulator
https://cemu.info
Mozilla Public License 2.0
7.09k stars 552 forks source link

SDL controller crashing CEMU 2.0-52 and 2.0-53 (Windows) #987

Open GuigoHub opened 11 months ago

GuigoHub commented 11 months ago

System

The issue

After updating to CEMU 2.0-53, the emulator started to crash right after loading the shaders caches. CEMU just closes by itself without any warning or error message. It seems that is something related to the controller profile or drivers.

Investigation

Looking at the log file I realized that it had a repeating set of error messages like below:

[09:46:21.579] HID: Output packet length not available or out of range (length = -1)
[09:46:21.579] nsyshid::BackendWindowsHID: device not on whitelist: 18d1:5029
[09:46:21.579] HID: Input packet length not available or out of range (length = -1)

HID means Human Interface Device, so I immediately started to unplug USB devices to see if the problem could be solved, but no success. Next, I tried to run the game without any mods, enhancements and etc, but no lucky.

Finally I went back to my USB devices and remembered that I'm using a PS4 controller, so I went to the Input settings and there I find a problem: The profile name was not correct, and when I clicked in the profile options, the current (wrong) profile name disappear and the correct name appear. I tried to select the correct profile name and save, but the crashes persists. Now every time I go in the Input Settings CEMU resets the profile name to the wrong one.

Solutions that I've tried

Workaround

Finally I decided to try older versions to see if the problem persisted and I can confirm that this problem is not present in the version 2.0-51, which I'm currently using without any issues, even with mods and enhancements activated. I've also tested the stable version 1.26.2 and it works well too.

I can also conclude that is not a problem related to my hardware, since older versions since to solve the issue. I've also provided the log file for anyone capable of understanding.

log.txt

Squall-Leonhart commented 11 months ago

nsyshid has nothing to do with what you're seeing

the iffyprofile name is linked to profiles files from an older 1.x version of cemu being present, but in itself shouldn't cause crashes.

Screenshot the differences between the bad and good profile, it isn't in the log.