[Bug] Random crash upon loading a game with a DualSense connected through USB #597

Closed
opened 2025-01-29 02:46:58 +00:00 by Ritaku02 · 8 comments
Ritaku02 commented 2025-01-29 02:46:58 +00:00 (Migrated from github.com)

Description of the issue

When using a DualSense over USB, when I attempt to load a game, there's a high (but not guaranteed) chance the emulator will close out. This crash never manifests when the DualSense is connected over Bluetooth.

Reproduction steps

Connect a DualSense through USB, and attempt to load any game.

Log file

Ryujinx_1.2.81_2025-01-28_18-28-55.log

OS

Windows 11

Ryujinx version

1.2.81

Game version

N/A

CPU

Ryzen 5800X3D

GPU

RTX 2070

RAM

32GB DDR4 3200 CL14

List of applied mods

No response

Additional context?

No response

### Description of the issue When using a DualSense over USB, when I attempt to load a game, there's a high (but not guaranteed) chance the emulator will close out. This crash never manifests when the DualSense is connected over Bluetooth. ### Reproduction steps Connect a DualSense through USB, and attempt to load any game. ### Log file [Ryujinx_1.2.81_2025-01-28_18-28-55.log](https://github.com/user-attachments/files/18581810/Ryujinx_1.2.81_2025-01-28_18-28-55.log) ### OS Windows 11 ### Ryujinx version 1.2.81 ### Game version N/A ### CPU Ryzen 5800X3D ### GPU RTX 2070 ### RAM 32GB DDR4 3200 CL14 ### List of applied mods _No response_ ### Additional context? _No response_
GreemDev commented 2025-01-29 02:49:00 +00:00 (Migrated from github.com)

I've seen this error in many different places and with many supposed causes, still don't know what causes it

I've seen this error in many different places and with many supposed causes, still don't know what causes it
Ritaku02 commented 2025-02-03 00:32:08 +00:00 (Migrated from github.com)

In this case, the only thing I can think of is the DualSense being a "composite device" with audio in/output, and that somehow causing issues within Avalonia. I wonder if the same thing happens with a DualShock 4? Unfortunately, I don't have one to test with.

In this case, the only thing I can think of is the DualSense being a "composite device" with audio in/output, and that somehow causing issues within Avalonia. I wonder if the same thing happens with a DualShock 4? Unfortunately, I don't have one to test with.
GreemDev commented 2025-02-03 00:33:58 +00:00 (Migrated from github.com)

I exclusively use DualSense and DualShock 4 via USB and I haven't had this happen

I exclusively use DualSense and DualShock 4 via USB and I haven't had this happen
Ritaku02 commented 2025-02-03 00:35:41 +00:00 (Migrated from github.com)

Huh, odd, very odd. Then there's something with my overall setup that's causing this issue, that only manifests when the DualSense is plugged in via USB. I'll have to do some testing.

Huh, odd, very odd. Then there's something with my overall setup that's causing this issue, that only manifests when the DualSense is plugged in via USB. I'll have to do some testing.
Ritaku02 commented 2025-02-03 00:51:51 +00:00 (Migrated from github.com)

I exclusively use DualSense and DualShock 4 via USB and I haven't had this happen

Any chance you use Hidusbf to overclock the controller's polling rate?

> I exclusively use DualSense and DualShock 4 via USB and I haven't had this happen Any chance you use Hidusbf to overclock the controller's polling rate?
GreemDev commented 2025-02-03 00:52:18 +00:00 (Migrated from github.com)

Why would I do that lol

Why would I do that lol
Ritaku02 commented 2025-02-03 00:54:52 +00:00 (Migrated from github.com)

Lower input latency, basically. I'll have to test this for a few days to be sure, but it's a potential culprit for the crash.

Lower input latency, basically. I'll have to test this for a few days to be sure, but it's a potential culprit for the crash.
Ritaku02 commented 2025-02-06 20:43:55 +00:00 (Migrated from github.com)

So, apparently Ryujinx just doesn't like my DualSense having a polling rate above 1000Hz, which is fair (it can go up to an 8000Hz polling rate, but Gamepadla's input latency tests show it doesn't receive any real benefit above 1000Hz, anyways). So yeah, leaving it at a max of 1000Hz keeps Ryujinx from crashing.

So, apparently Ryujinx just doesn't like my DualSense having a polling rate above 1000Hz, which is fair (it can go up to an 8000Hz polling rate, but Gamepadla's input latency tests show it doesn't receive any real benefit above 1000Hz, anyways). So yeah, leaving it at a max of 1000Hz keeps Ryujinx from crashing.
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MeloNX/Ryujinx-ryubing#597
No description provided.