-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proton 8.0-4 wrong reporting of certain HID devices crashes Unity games #7284
Comments
Same issue for me, crashing on proton 8.0-4 |
good news, with proton GE the game doesn't crash for me until I exit, then it crashes instead of exiting normaly, GE 8-14. |
Using Corsair K65 RGB Mini, notably it has a mouse input option using the function keys. I'll provide a log in the next 4hrs. |
Here's the log with +hid option, after the unity logo the game freezes edit: |
And here's the log after launching the game without the mouse being connected |
I've managed to reprogram my keyboard (QMK) to expose a single endpoint with mouse and keyboard. Lethal Company did not crash for me. I even tried to make the raw HID device readable by the user (should not be the default for keyboards - keylogging) but no luck.
The raw hid device should not be readable by the user. Have you changed anything in your system configuration about that? @F41S3 can you do the same with your keyboard ^ also a log of the crash would be handy. |
I had another look at your log @Skillfur and it looks like your device is also detected as joystick. The descriptor you get with
I think the problem is that Linux kernel sees those joystick HID collections and exposes this part as a evdev / input device and that in turn confuses Unity which has certain expectations as of those devices. You can try finding which devices those are from dmesg and take away read permissions. If that help then we are onto something. |
So, the mouse reports itself as 4 distinct hid devices
The joystick part is mainly because the mouse has an analog thumb that can act as a joystick. That may also explain why NotITG (a rythm game) doesn't detect my dancemat but |
@Skillfur thanks for the confirmation. There's nothing suspicious in the logs on Proton side, so likely it's Unity making assumptions. I've seen that happen with some games and with some Unity plugins. Surprisingly Lethal Company seems to be using Unity's native controller handling. It's going to be annoying to debug and properly fix the issue without having one of those locally and it seems like a 2014 product that's hardly available. If you are up for collecting some more logs that would be great. Can you share crash logs captured with Also can you make the joystick hidraw device readable by your user and try launching the game with |
That is true, I'm also searching form one moreof these mice as I fear that someday it will simply die on me |
Does the game work for you with Proton 7? If yes can I have a log with the same logging channels ( |
This should be fixed now in bleeding-edge. It would be great if you could give it a spin and confirm that it now works with the previously problematic devices. |
@ivyl Sorry for not replying earlier, Somehow I missed the message |
@Skillfur Thanks for verifying. FWIW Proton developers are also upstream Wine developers. I have first upstreamed the change to Wine and then cherry-picked it to our Proton tree :-) See: https://gitlab.winehq.org/wine/wine/-/commit/e3431a02e1d23ad506512b906f244eae1db05035 The change will be also a part of the next experimental and stable releases. |
The following Unity games that were previously choking on my Thrustmaster T.16000M and TWCS are now confirmed (completely) working again:
Thank you so much, @ivyl ! (And @Skillfur for opening the issue.) |
@ivyl That's great to hear, Thank you to taking a look at that issue, and keep up the good work you guys :) |
Compatibility Report
System Information
I confirm:
Symptoms
Certain HID devices that reports multiple sub devices crashes Unity games
Reproduction
Plug in device that is reported in system as multiple devices like a gaming mouse (in my case Roccat Tyon) that reports itself as a keyboard, mice and a joystick, causes the Unity engine to freeze
Most likely same problem as in #5658
The text was updated successfully, but these errors were encountered: