ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
916 stars 45 forks source link

Unity crashes every time with SteamVR Plugin in your projects. (Workaround found) #145

Open ghost opened 5 years ago

ghost commented 5 years ago

Your system information

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

Steps for reproducing this issue:

  1. Put SteamVR Plugin in your assets folder in Ubuntu and Unity will crash. This is a big issue because development is impossible currently for developing VR in Ubuntu. I had this issue on Ubuntu 16 and Ubuntu 18.04 as well as 2018.2 and 2018.3 Beta Unity. This really needs to get fixed, I can't do anything current;y as far as VR Development in Unity on Ubuntu.

UPDATE: 10.16.18: Workaround I managed to stop the crashing, so I wanted to post instructions on a fix for all of the Linux/Ubuntu VR developers out there.

First of all, to get this working I downloaded the Linux Unity Hub, you can download this here: https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.AppImage

If you are using Unity Hub, run it like this: ~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ~/Downloads/./UnityHubSetup.AppImage

If you are new to linux I will explain this as simply as I can:

the ~/Downloads/./UnityHubSetup.AppImage is a path to where your Unity Hub file is. So if it is in your Downloads folder then run the command I just posted.

If you moved the Hub to lets say your Desktop, run this ~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ~/Desktop/./UnityHubSetup.AppImage

ChristophHaag commented 5 years ago

Random question: Do you run the editor with the steam runtime? I.e.

~/.steam/steam/ubuntu12_32/steam-runtime/run.sh ./Unity

or

~/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh ./Unity

I heard it helped at least over there https://steamcommunity.com/app/250820/discussions/5/1739964766312945370/

ghost commented 5 years ago

I open Unity via Unity Hub

ChristophHaag commented 5 years ago

That's where the steam runtime run script is supposed to be. If it's not, sorry I don't know why not.

Lyle-Tafoya commented 5 years ago

This probably belongs on the tracker for https://github.com/ValveSoftware/steamvr_unity_plugin if it's still reproducible. I have had some issues with the SteamVR Unity plugin, but I don't think I've had this specific issue.