SteamVR-for-Linux icon indicating copy to clipboard operation
SteamVR-for-Linux copied to clipboard

[BUG] Excessive binding loads from steam

Open ChristophHaag opened this issue 4 years ago • 13 comments

Describe the bug In vrserver.txt I get messages about excessive binding loads about twice per second. This also causes lots of VREvent_ActionBindingReloaded events to be produced by SteamVR.

To Reproduce Start SteamVR while Steam is running.

It does not happen when starting ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrstartup.sh while steam is not running.

System Information (please complete the following information):

  • Distribution: Arch
  • SteamVR version: 1.10.25
  • Steam client version: 1583545531
  • Opted into Steam client beta?: Yes, but also happens on stable
  • Graphics driver version: [run nvidia-settings or vulkaninfo | grep driverInfo: radv git
  • Gist for SteamVR System Information: SteamVR-2020-03-09-PM_02_56_06.txt

ChristophHaag avatar Mar 09 '20 14:03 ChristophHaag

also experiencing this. System Information (please complete the following information):

  • Distribution: Manjaro
  • SteamVR version: 1.30.32, the problem isn't really new though
  • Steam client version: 1584730869
  • Opted into Steam client beta?: Yes
  • Graphics driver version: Mesa 20.1.0-devel (git-500842399a) (LLVM 11.0.0)
  • Gist for SteamVR System Information: https://gist.github.com/Zamundaaa/fe4988e8e750fe438a301396d84b6022

Zamundaaa avatar Mar 21 '20 17:03 Zamundaaa

I have the same problem, maybe that is why my controller binding ui is behaving very sluggishly.

System Information (please complete the following information): Distribution: Gentoo SteamVR version: 1.10.32 and 1.11.7 Steam client version: April 8, 2020 Opted into Steam client beta?: Yes, but also happens on stable Graphics driver version: Mesa 20.0.4 (LLVM 9.0.1) Gist for SteamVR System Information: https://gist.github.com/farmboy0/16f79f8c08e6062bb1cf5365963499ce

farmboy0 avatar Apr 10 '20 15:04 farmboy0

this also tickers frequently through the local webinterface http://localhost:27062/console/index.html removing, chowning root setting inmuteable the file legacy_bindings_generic_hmd.json made it complain even faster

frostworx avatar Apr 18 '20 09:04 frostworx

sorry for the noise - to more precise. the webinterface frequently logs those lines:

Sat Apr 18 2020 11:52:31.867554 - Excessive binding loads from steam (34713): crc=103736843 lc=2 Reload=F res=2
Sat Apr 18 2020 11:52:31.867596 - ===== indexhmd: state=4, NOT empty, uri=file:///media/wdblu4/steamlocalshare/steamapps/common/SteamVR/resources/config/legacy_bindings_generic_hmd.json

so legacy_bindings_generic_hmd.json might not have something to do with this Excessive binding loads issue. both lines are also logged when steamvr is launched with ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrstartup.sh

best visible with knuckles turned off, else the logs are flodded with https://github.com/ValveSoftware/SteamVR-for-Linux/issues/326

frostworx avatar Apr 18 '20 10:04 frostworx

The spam will show for me only when steam is started. If steam is not started and SteamVR is started from cmdline this spam will not show up and the controller bindings dialog actually reacts to mouse clicks in a timely manner. Unfortunately without steam its functionality is rather limited.

farmboy0 avatar Apr 19 '20 00:04 farmboy0

hm, interesting. I recently installed OVRAS, maybe that's the cause. In fact it even looks very likely: https://github.com/matzman666/OpenVR-AdvancedSettings/issues/175 edit: no, uninstalled OVRAS and it still floods the logs.

frostworx avatar Apr 19 '20 07:04 frostworx

Also experiencing this isse.

System Information:

Distribution: Arch
SteamVR version: 1.18.7
Steam client version: 1626824053
Opted into Steam client beta?: No
Graphics driver version: Proprietary Nvidia Driver 470.57.02
Gist for SteamVR System Information: https://gist.github.com/jannis3005/5e22a42d4c4f5bc08d02083c97db1c8b

jannis3005 avatar Jul 24 '21 09:07 jannis3005

I see this error, too.

  • Distribution: Ubuntu 20.04 LTS
  • SteamVR version: 1.21.12
  • Steam client version: March 14th, 2022
  • Opted into Steam client beta: No
  • Graphics driver version: Mesa 21.2.6 (LLVM 12.0.0)
  • Gist for SteamVR System Information

Bengt avatar Apr 08 '22 13:04 Bengt

Still happens

xDShot avatar Dec 08 '22 18:12 xDShot

Hey if anyone wants a workaround this issue, i made a simple patcher that makes cef on steamvr not crash completely and work normally (steamvr still spams websocket messages, but at least chromium works fine) https://gist.github.com/Meister1593/b574b399d85770abc2368f4d5af9df42

Meister1593 avatar Mar 26 '23 12:03 Meister1593

It fixed the issue for me... Congratulations!!!

Patola avatar Mar 26 '23 13:03 Patola

Just a note that you can run StreamVR without running it under Steam, and thereby avoid this. You just have to launch it under the appropriate wrapper to setup the correct Steam environment. The easiest way to get this is start steam from the terminal and note what command it logs that it is running when you click runs on SteamVR

$ steam
...
/bin/sh\0-c\0/home/tyson/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=250820 -- /home/tyson/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/tyson/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun --  '/home/tyson/.local/share/Steam/steamapps/common/SteamVR/bin/vrstartup.sh'\0
...

and whatever you want to run with SteamVR

...
/bin/sh\0-c\0/home/tyson/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=546560 -- /home/tyson/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/tyson/.local/share/Steam/steamapps/common/Half-Life Alyx/game/hlvr.sh' -vr -steam -noasserts -nopassiveasserts +map startup -vulkan -nowindow\0
...

Then just close Steam and run these commands yourself from the terminal

$ /home/tyson/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=250820 -- /home/tyson/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/tyson/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun --  '/home/tyson/.local/share/Steam/steamapps/common/SteamVR/bin/vrstartup.sh'

and

$ /home/tyson/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=546560 -- /home/tyson/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/tyson/.local/share/Steam/steamapps/common/Half-Life Alyx/game/hlvr.sh' -vr -steam -noasserts -nopassiveasserts +map startup -vulkan -nowindow

For a proton item you need to export some environment variables too

STEAM_COMPAT_DATA_PATH=<app proton dir>
STEAM_COMPAT_CLIENT_INSTALL_PATH=<proton dir>

where an example of the former is /home/tyson/.local/share/Steam/steamapps/compatdata/4090935073 and the later is /home/tyson/.local/share/Steam/compatibilitytools.d/GE-Proton8-25 or /home/tyson/.local/share/Steam/steamapps/common/Proton 8.0 (although I haven't actually tried it with Proton proper to make sure of that one).

No spamming of the logs and some very good improvements in the StreamVR performance graph. Here, for example, is StreamVR and a Proton program launched though steam load vs them launched without steam through the command line load2 Wonder if that is all from dealing with all those binding calls, or if Steam imposes other loads as well? Certainly well worth circumventing it if you don't have a lot of CPU/GPU headroom to spare.

twhitehead avatar Nov 28 '23 05:11 twhitehead

Hey I've got the same spam in the Steam logs, as I was trying to pinpoint why do I have a cyclic pink line int steamVR graph, and I tried everything from restarting, disconnecting one of the monitors, running the main display at the same speed as Valve Index and other tips from around the internet, until I noticed that I had this error happen in my logs also cyclically, so I googled it, found out this issue, and tried the "solution" from the previous post, and you can see for yourself the difference This is bypassing steam obraz

And this is when I run SteamVR through steam. obraz

Notice the cyclical nature of the pink lines.

When SteamVR finally works with Async Reprojection, and Proton games, I'll do a more thorugh testing, along with Gists and so on.

Hisanatos avatar Dec 16 '23 19:12 Hisanatos