-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application crashes following first successful run (Linux/SteamVR) #202
Comments
Does it shut down properly the first time or does it quit with a crash? Wondering if it's ValveSoftware/SteamVR-for-Linux#479 |
There's no crash when I quit the first time. It does seem a lot like what's reported in the issue you linked to. I'm just running the scene from within the editor via F6, and stopping it with F8. Is there a safer/cleaner way I should be stopping the scene? |
It would be good to try that out with a proper debug build so we get proper debug symbols. One thing I've been wanting to try is to move the call to I remember moving that to after Just haven't had the time to try it yet as I've been having a few days off due to easter. |
I'm having the same issue. I'm positing the crash occurs because godot does not shut down steamvr properly, so the second time it attemps to start it, an instance is already running. Killing it via terminal fixes that. |
@aleksfadini Godot will only clean up properly if it properly exits. If you kill the Godot process (which is what happens if you press the stop button in the editor to kill of the runtime) then it just exits right there and then without running through its proper exit process. That also applies when pressing F8 as @hellocld mentions he does. On Windows an application just suddenly disappearing triggers SteamVR to do the necessary cleanup and the OS cleans up memory etc. To properly exit you need to call |
Thanks @BastiaanOlij! That makes for an easy enough workaround for now for me (added an autoload with a "quit" input that fires |
@hellocld that's a great workaround, thank you for bringing it up. @BastiaanOlij thank you for clarifying, is there a way we can add this to the documentation for linux users or add the workaround to the plugin? Can I help? And thank you for the amazing plugin and the wonderful tutorial videos |
Just to clarify, this is not possible every time the project crashes (which happens often during debug). So for now on linux the following command is needed:
before launching a scene, whenever the previous scene was terminated by a code error. |
This doesn't work at all - it just freezes the game window. I also tried Godot 4.1.1, i3wm, steamvr |
SteamVR on linux hangs on xrDestroyInstance ValveSoftware/SteamVR-for-Linux#422 |
I am confused, wouldn't that mean all VR applications (which use SteamVR) should freeze on exit? Why only Godot project freezes on exit, but no other VR application I tried? |
Only applications which use the OpenXR API are affected. Many still use OpenVR. |
I have a very simple scene that runs fine on first launch, but subsequent attempts at running the scene result in a crash with the following message:
If I quit SteamVR and relaunch it, I can successfully run the scene again once, but after that first run it'll continue to crash until I restart SteamVR again. This is on a new project, but I can reproduce the issue on projects I know were working without issue last year in the same environment.
The text was updated successfully, but these errors were encountered: