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

[BUG] SteamVR settings, in-game menu, and Home panels don't work.

Open literally-anything opened this issue 1 year ago • 17 comments

Describe the bug In the beta version of SteamVR settings won't open, nor will the in-game menu. In SteamVR Home, the Big Picture and Desktop panes don't appear, they just freeze for a second and do nothing.

To Reproduce Steps to reproduce the behavior:

  1. Click the hamburger menu on the steamvr window
  2. Click on settings
  3. Nothing happens...

  1. Click the menu button on your controller
  2. Nothing happens...

  1. Go to SteamVR Home
  2. Open the panels menu
  3. Select the Big Picture or Desktop panel
  4. Nothing happens...

Expected behavior The settings should open when i click on it, but this seems to be an issue on windows as well sometimes.

When you click the menu button, the in-game menu that lets you quit the game, open a specific game, or view the desktop should open.

The Big Picture and Desktop panels should appear (In the non-beta version of SteamVR, this doesn't work either, the panes appear, but then SteamVR crashes).

System Information (please complete the following information):

  • Distribution: Ubuntu 22.04.2 LTS
  • SteamVR version: beta 1.26.1
  • Steam client version: March 26, 2023 at 17:20:43
  • Opted into Steam client beta?: No
  • Graphics driver version: Nvidia Driver 530.30.02
  • Gist for SteamVR System Information: gist

Update: I've found 3 warnings/errors that could be related in the log

CIPCPipe::ConnectPipe(SteamVR_Namespace) attempting connect to steamvr:SteamVR_Namespace
Unable to connect to pipe errno=111
CSharedResourceNamespaceClient::Init(): failed connect
CSharedResourceNamespaceClient::Init(): still waiting for vrserver to reply with namespace data
[Steam] Steam INIT.
Timed out waiting for a good app key
App key after connect message:steam.overlay.250820

Note: Commenters who are also experiencing this issue are encouraged to include the "System Information" section in their replies.

literally-anything avatar Apr 09 '23 14:04 literally-anything

Hello @literally-anything, I think I've seen this on my test box as well. If you completely close Steam, then run steam from a terminal and tell Steam to start SteamVR, is there a line in the terminal spew saying that libSDL could not be found?

kisak-valve avatar Apr 09 '23 14:04 kisak-valve

I cannot seem to find anything in that log relating to SDL other than:

Loaded SDL version 3.0.0-1117-g727c7d4e2

literally-anything avatar Apr 09 '23 19:04 literally-anything

Okay, thanks for checking. That's the Steam client itself, and not SteamVR.

kisak-valve avatar Apr 09 '23 19:04 kisak-valve

I'm seeing the same issue, but also SteamVR home doesn't start (that is, SteamVR starts, just not the home application). Both in steam's combined terminal output, and when attempting to run steamtours manually, there's an invalid free and then tcmalloc abort()s:

src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x5595f6477570
/home/implr/.local/share/Steam/steamapps/common/SteamVR/tools/steamvr_environments/game/steamtours.sh: line 94: 41439 Aborted                 ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

I normally run without the steam runtime (and it used to work fine), but I've tested both with and without, the crash is identical.

implr avatar Apr 18 '23 22:04 implr

I have the same issue on Arch. https://gist.github.com/cornytrace/45aaf0e98a3255797e67edf4495a5a14 Except for the settings menu and in-hmd overlays, everything else works fine. If I revert to the linux_v1.14 branch, the settings and overlays start working again, unfortunately this makes H3VR crash on launch.

cornytrace avatar Apr 23 '23 10:04 cornytrace

Hello @cornytrace, please open a new issue report focusing on ./vrwebhelper: symbol lookup error: /usr/lib/libharfbuzz.so.0: undefined symbol: FT_Get_Transform in your log.

kisak-valve avatar Apr 23 '23 12:04 kisak-valve

Hello @implr, can you check if mesa on your system is built against llvm 16? If it is, I suspect you're seeing a similar issue to https://github.com/ValveSoftware/Dota-2/issues/2285.

kisak-valve avatar Apr 23 '23 12:04 kisak-valve

It is. I'll try rebuilding it with 15 later and see if that fixes it.

implr avatar Apr 23 '23 13:04 implr

Removing llvm 16 completely and rebuilding mesa did fix steamtours (works normally), but did not fix the steamvr settings window (still no response either in the desktop ui or to the controller button). The invalid free is gone, I don't see anything else suspicious in stderr. Beat Saber runs, HLA crashes because of #332, but that's probably unrelated.

implr avatar Apr 23 '23 17:04 implr

While trying to fix HLA I came across #538 and decided to try launching steam with:

~/.local/share/Steam/steamapps/common/SteamVR/bin/vrenv.sh steam

As I understand this will run everything under the VR environment/runtime. This did break a lot of things (like random buttons in the main Steam UI not working due to KDE's libKF5* libs not being able to load) but.. fixed everything VR completely. Dialogs in SteamVR work, HLA runs.

implr avatar Apr 23 '23 17:04 implr

Same here on Fedora 38 (Gnome/Wayland)

SteamVR System Report

Redemption198 avatar Apr 25 '23 09:04 Redemption198

~~Same on Distrobox Arch container for ALVR (Fedora silverblue 38 Gnome/Wayland Host, happened on 37 too), AMD.~~ Actually i realised that it's not exactly the same for me, i just can't launch games via steamvr overlay. Otherwise opening steamvr settings, in-game menu, etc works. I also did apply my patcher that fixes binding reload spam, which fixes most issues related to long waiting for settings to show up

SteamVR System Report

Meister1593 avatar Apr 25 '23 14:04 Meister1593

@kisak-valve I did a full reinstall of arch and the problem went away, the settings menu now also works.

cornytrace avatar Apr 30 '23 20:04 cornytrace

Arch Linux, I seem to have the same bug, except when I went to follow @kisak-valve's thing about opening Steam in a terminal then SteamVR to see about a libSDL issue. Suddenly menus are interactable, although Steam desktop is claiming Error 303 but everything is working just fine. Screenshot_2023-05-03_20-32-40

SkylerFur avatar May 04 '23 03:05 SkylerFur

For me, this was a problem with vrwebhelper not being able to find some of its libraries. Running it manually against the default heavy runtime yielded this:

$ /home/user/.steam/debian-installation/steamapps/common/SteamVR/bin/vrwebhelper/linux64/steam-runtime-heavy.sh --unpack-dir=/home/user/.steam/debian-installation/steamapps/common/SteamVR/bin/vrwebhelper/linux64 --runtime=steam-runtime-heavy -- ./vrwebhelper
Steam runtime environment up-to-date!
./vrwebhelper: error while loading shared libraries: libopenvr_api.so: cannot open shared object file: No such file or directory

Copying all of the .so files from vrwebhelper/linux64/ into vrwebhelper/linux64/steam-runtime-heavy/lib/x86_64-linux-gnu/ lets it launch correctly. I'm not sure if these will get overwritten when the heavy runtime updates, but it's a usable band-aid fix for now.

jarettmillard avatar Jun 23 '23 06:06 jarettmillard

This worked for me as well, ld just doesn't know about those libs. I just added vrwebhelper/linux64/ to /etc/ld.so.conf.d/.

literally-anything avatar Jul 08 '23 02:07 literally-anything

I'm seeing the same issue, but also SteamVR home doesn't start (that is, SteamVR starts, just not the home application). Both in steam's combined terminal output, and when attempting to run steamtours manually, there's an invalid free and then tcmalloc abort()s:

src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x5595f6477570
/home/implr/.local/share/Steam/steamapps/common/SteamVR/tools/steamvr_environments/game/steamtours.sh: line 94: 41439 Aborted                 ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

I normally run without the steam runtime (and it used to work fine), but I've tested both with and without, the crash is identical.

This might be the same issue as https://github.com/ValveSoftware/SteamVR-for-Linux/issues/579.

devurandom avatar Mar 24 '24 14:03 devurandom