Ошибка vrclient shared lib not found 102

Tried the Steam and SteamVR beta, same result. Trying to start the vrmonitor directly results in the following console spew and fails.

techjar@techjar-linux ~ $ ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh
+++ dirname /home/techjar/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh
++ cd /home/techjar/.local/share/Steam/steamapps/common/SteamVR/bin/..
++ pwd
+ TOOLSDIR=/home/techjar/.local/share/Steam/steamapps/common/SteamVR
++ cd /home/techjar/.local/share/Steam/steamapps/common/SteamVR/../runtime
/home/techjar/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh: line 3: cd: /home/techjar/.local/share/Steam/steamapps/common/SteamVR/../runtime: No such file or directory
++ pwd
+ RUNTIMEDIR=/home/techjar
+ case $(uname) in
++ uname
+ '[' -z '' ']'
+ exec /home/techjar/.steam/steam/ubuntu12_32/steam-runtime/run.sh /home/techjar/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh
/home/techjar/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh: line 14: /home/techjar/.steam/steam/ubuntu12_32/steam-runtime/run.sh: No such file or directory

Get the Reddit app

Scan this QR code to download the app now

Or check it out in the app stores

Open

Unity — XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_VRClientDLLNotFound: «vrclient Shared Lib Not Found (102) #696

Issue Opened

Danfitz7 Opened Issue On Apr 18th 2020, 12:40

Danfitz7

I am trying to use the SteamVR plugin for Unity3d Engine on a linux system.
When I run the Simple Sample Scene, I get the following error: XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_VRClientDLLNotFound: "vrclient Shared Lib Not Found (102)"!

The scene runs, but not in VR as expected.

SteamVR and Steam both work just fine — I can run SteamVR Home, visit environments, play games, etc. The problem seems to be that the Unity plugin can’t find the SteamVR share library(s).

System Information:
*Lenovo P51 Ubuntu 16.04 LTS 64-bit
-processor: Intel® Core™ i7-7820HQ CPU @ 2.90GHz × 8
-graphics: Quadro M2200
-Graphics Driver: Nvidia 410.78

Unity 2019.3.10f (Also tried 2018.4.21f1 — same result)

HTC Vive V1 (plus a Vive Tracker)

Steam Client installed with Ubuntu package manager
(I also tried installing from official .deb package — no luck)
-Steampackage versions: 1586022601 Steam AP v020
-The error happens if I run SteamVR with no betas, SteamVR Beta, or SteamVR linux_temp Beta

SteamVR 1.10.32 (1584924836)
SteamVR System Report: https://gist.github.com/danfitz7/8aad64c5481f56ec7a9b26edf5c4a262

I also tried running SteamVR by itself without the Steam Client by launching it directly ~/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh That output is here: https://gist.github.com/danfitz7/61735d7e797034d35e4278f54b955c3b …same result.

I also tried downloading the steam runtime (following a seemingly similar issue) and launching Steam with that directory set as the STEAM_RUNTIME env var, then launching SteamVR. Same result.

ChristophHaag

I’ve seen this as a bogus error on Ubuntu. Can you make sure that you have libsdl2-2.0-0 installed?

If yes, and it still happens, running unity with strace ./Unity...whatever might or might not give some insight.

Comment

Danfitz7 commented on 3 years ago

Danfitz7

I did not have libsdl2-2.0-0 installed, but it did not help.
I can’t find anything relevant in strace Unity, but here’s the output anyway (75.8MB text file!). strace_unity.txt.tar.gz

Comment

Danfitz7 commented on 3 years ago

Danfitz7

I’ve seen this as a bogus error on Ubuntu. Can you make sure that you have libsdl2-2.0-0 installed?

If yes, and it still happens, running unity with strace ./Unity...whatever might or might not give some insight.

Would reinstalling anything be likely to help? Or installing from a different source?

ChristophHaag

Probably not.

In the strace output you posted vrclient.so is successfully opened

open("/home/dfitzgerald/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrclient.so", O_RDONLY|O_CLOEXEC) = 96 

Clearly the error message is wrong and vrclient.so was found. In my earlier case I think it was because vrclient.so tried and failed to open sdl2.

Are you launching unity with the run.sh script from the steam runtime as described here? https://github.com/ValveSoftware/SteamVR-for-Linux#runtime-requirements

Perhaps any other missing libraries in the output of ldd ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrclient.so?

Comment

Danfitz7 commented on 3 years ago

Danfitz7

Probably not.

In the strace output you posted vrclient.so is successfully opened

open("/home/dfitzgerald/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrclient.so", O_RDONLY|O_CLOEXEC) = 96 

Clearly the error message is wrong and vrclient.so was found. In my earlier case I think it was because vrclient.so tried and failed to open sdl2.

Are you launching unity with the run.sh script from the steam runtime as described here? https://github.com/ValveSoftware/SteamVR-for-Linux#runtime-requirements

Perhaps any other missing libraries in the output of ldd ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrclient.so?

Running Unity Editor in the Steam Runtime seems to have solved the issue. ~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ~/Unity/Hub/Editor/2019.3.7f1/2019.3.11f1/Editor/Unity Note this is the runtime for the Steam installed on the system, not the runtime-environment downloaded as-per https://github.com/ValveSoftware/steam-runtime

According to the SteamVR-for-Linux readme.md, «Unity development is not currently supported.». But it seems to be. Is that old info?

However, I also tried upgrading my graphics driver to nvidia-430. I don’t think that helped with Error 102, but now Steam is broken with error popup on start:

glXChooseVisual Failed

Seems to be this: https://github.com/ValveSoftware/steam-for-linux/issues/5778
Which is strange because «NVIDIA cards require version 430.26 of the NVIDIA Driver or above and to use the SteamVR Beta» — how do devs install the nvidia drivers?
I reverted to the 410 driver — didn’t help.
I can still launch vrmonitor and SteamVR seems to work, but I’m not sure how it’s functionality will be limited without Steam working.

rada-wolf

This vrclient Shared Lib Not Found (102) doesn’t look like it’s related to the UNIGINE, but rather the SteamVR runtime libs could not be loaded. Can you run other SteamVR (OpenVR) compatible apps without this error?

Did you have SteamVR and Steam (with 32 and 64 bits runtimes) installed correctly? If so, we need to understand what exact steps did you make before this actual error occurred and try to replicate on our side.

Thanks!

Troubleshooting

Problems like «Compositor not starting properly»

When first starting, I had a lot of issues with the SteamVR software crashing on startup due to problems with the compositor starting properly. After about a day of troubleshooting, I this issue went away when I changed a setting in my Nvidia Control Panel to globally prefer using my Nvidia high performance card over my integrated graphics card.

I changed the following setting from «Auto Select» to «High-performance graphics»:
Choosing Nvidia card

I’m not confident that changing that setting was the change that fixed the problem, but as well as I know issues and crashes where the error message complains about the «Compositor» mean that SteamVR is trying to use the wrong graphics card on the PC.

Steam/Open VR Error messages

My eventual fix for this issue was to upgrade the system’s GPU. After putting a decent NVIDIA GPU in the tower, SteamVR would boot with no issue.

Unable to init VR runtime: vrclient Shared Lib Not Found (102)

I fixed this issue using this thread from the pyopenvr repository.

First, installed the following packages on aptitude:

  • libudev-dev
  • libvulkan-dev
  • libsdl2-dev
  • libglfw3-dev

I set my LD_LIBRARY_PATH to

/home/<user>/.local/share/Steam/steamapps/common/SteamVR/bin/linux64:/home/<user>/.local/share/Steam/steamapps/common/tools/bin/linux64:.

And according to the above thread, the libudev.so.1 object needs to be linked to libudev.so.0 on Linux, using

sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

Creating this link fixed the above problem for me, but according to an askubuntu thread, this fix can break Unity.

TLDR

Run the following commands in order, and try after each line to run the tracking example to test if the problem has been fixed:

# ./build/track won't run, "Unable to init VR runtime: vrclient Shared Lib Not Found (102)"
sudo apt install libudev-dev libvulkan-dev libsdl2-dev libglfw3-dev

# ./build/track won't run, "Unable to init VR runtime: vrclient Shared Lib Not Found (102)"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/share/Steam/steamapps/common/SteamVR/bin/linux64:$HOME/.local/share/Steam/steamapps/common/tools/bin/linux64:.

# ./build/track won't run, "Unable to init VR runtime: vrclient Shared Lib Not Found (102)"
sudo ln -s /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0

Unable to init VR runtime: Hmd Not Found (108)

Solution: Attach the HMD to the computer

Unable to init VR runtime: Not starting vrserver for background app (121)

Solution: Start Steam VR

⚠️ **GitHub.com Fallback** ⚠️

Понравилась статья? Поделить с друзьями:
  • Ошибка vpn указанный порт уже открыт
  • Ошибка vpn подключения 734 в windows 7
  • Ошибка vpn не удается подключиться к удаленному компьютеру
  • Ошибка vpn клиент тест контроля целостности не пройден
  • Ошибка vpn windows 10 реестр