protonscr

hid_playstation/Dualsense controller causes steam to hang for 30-60 seconds when starting multiple games

steamopen runtimeGeneral controller / Steam InputProton
ValveSoftware/steam-for-linux#7649 · opened 2021-02-10 by lenonk · updated 2022-08-19 · 5 comments · github
Llenonk 2021-02-10 github

Your system information

  • Steam client version (build number or date):
    Built: Feb 9 2021, at 23:36:22

  • Distribution (e.g. Ubuntu):
    Manjaro

  • Opted into Steam client beta?: [Yes/No]
    Yes

  • Have you checked for system updates?: [Yes/No]
    Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

When starting several games, Cyberpunk 2077, Death Stranding, Last Epoch being among them, the steam client hangs for 30 to 60 seconds while starting the game with the following messages:

src/clientdll/controller_mapping.cpp (64) : Assertion Failed: m_bControllerMappingIsActive
src/clientdll/controller_mapping.cpp (64) : Assertion Failed: m_bControllerMappingIsActive
Installing breakpad exception handler for appid(steam)/version(1612925170)
crash_20210210070006_28.dmp[1017326]: Uploading dump (out-of-process)
/tmp/dumps/crash_20210210070006_28.dmp
crash_20210210070006_28.dmp[1017326]: Finished uploading minidump (out-of-process): success = yes
crash_20210210070006_28.dmp[1017326]: response: CrashID=bp-af6b89c0-fb34-415a-aea5-735642210210
crash_20210210070006_28.dmp[1017326]: file ''/tmp/dumps/crash_20210210070006_28.dmp'', upload yes: ''CrashID=bp-af6b89c0-fb34-415a-aea5-735642210210''

This does not happen with my XBox controller, nor my Switch Pro controller. It only happens with the Dualsense controller.
The game continues to start properly, and the controller works fine.

Steps for reproducing this issue:

  1. Install hid_playstation
  2. Connect Dualsense controller wirelessly
  3. Start Steam
  4. Start Cyberpunk 2077 (or any other game that uses a controller I assume)

Information from Steam: System Information

Kkisak-valve maintainer 2021-02-10 github
Llenonk 2021-02-10 github

It sounds similar. The major difference is that I'm not unplugging and re-connecting my controller. It's connected via BT before I even start steam.

Interestingly, if I don't connect the controller before starting the game and only connect it once it's fully up and running, I do not see the hang/freeze.

Also, the other issue mentions that it also happens with Xbox and Dualshock controllers. This issue does not happen with this controllers, for me.

None of this means it isn't related, or isn't even the same root cause, but I would say they're different enough that two issues are warranted.

XxDShot 2021-05-23 github

I have something similar. When connect Dualsense via bluetooth then launch Skyrim SE, the game is not responding on an input around a minute.

Ggwemmie 2022-03-06 github

I'm experiencing something just like this, with the following 2 differences:

-It only seems to happen when I'm hotplugging the BT controller after launching Steam, never seems to happen if the controller's already been connected before Steam ran--unless I've already run a game for hours, closed that game, and left the client on, then later on try to launch that game again. That can still trigger it without hotplugging.

-It's intermittent; not every time

Also, it wasn't happening before I forced my system to actually load the hid-playstation kernel module when I connect the controller. I'm on Arch Linux, which means that should have been automatically happening for at least the past year or so, but it wasn't for some reason I have yet to get to the bottom of. The kernel module was never loading at all (resulting in flawed controller support on some games). Key udev files were missing in my case. I never had this issue with the Steam client and my DualSense controller until I did the equivalent of adding those udev files manually, i.e., until the hid-playstation kernel module became a part of the equation.

Ggwemmie 2022-08-19 github

To this day Steam continues to be an unstable mess when the DualSense is connected. I keep my Arch system up to date and I'm on the normal Steam runtime.

Steam will sometimes get stuck forever while trying to launch, if the controller is connected. Usually gets stuck at "Updating User Configuration". The only way out is SIGKILL.

Every time I launch a game, there is about a 30% chance Steam will hard freeze and need to be SIGKILLed. That chance rises to about 70% if it's minimized to the tray with no windows open the moment I launch said game. 90% of the time that I launch a game, it will at least hard freeze for about 5 seconds before coming back and being fine, and 50% of the time it does so, it freezes my entire system with it.

I'm not entirely sure if this is the controller's fault, but it never seemed to be an issue until I started regularly using my DualSense, and I have yet to see it happen when the DualSense is not plugged in: about 1/3 of every proton game launch results in nothing. Steam will claim the game is running but nothing happens, as if proton never even launched the EXE. I then have to close the game and try again.

Combine all that with Elden Ring's EAC implementation being prone to crash at launch very ocassionally, and the general instability of my R9 Fury on Linux when used in DRI_PRIME=1 mode (because it came out back when AMD's open-source drivers were still new and not perfect) and it's very common for me to have to just sit there waiting almost half an hour from when I decided to start playing to actually being in the game. It's maddening.

Nothing extracted yet.