-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issues on Linux #6
Comments
EGL-Bindings are meant to be very badly supported. Maybe I'll just stop trying to use them even if the runtime claims they are available. Are you able to progressively comment out the withAction calls in Main.java. See which set of actions is upsetting it (I hate -1 errors, they are so vague). Those logs seem to suggest you have no hand controllers, is that true? |
I did the test without the hand controllers, yes. |
"I did the test without the hand controllers, yes." I wonder if that's the problem. That section of code is all about setting up the hand controllers. Are you able to try it with controllers and see if it still happens? |
Seems none of that actions is working.
Tried out with controllers, but they are not recognized by monado-service. |
Well the OpenXrActionState and VRHandsAppState are exclusively for controllers. Seems like it gets through the base XrAppState without them (Shame if it exceptions weirdly without them though rather than just claiming no button presses). I do have a linux machine kicking about, maybe I should dig it out and see if I get similar problems |
I am not sure about recognition.
|
Without controllers WM0 and WM1 are not listed. |
I tried to get my quest 2 to work on my linux machine machine but it seems decidedly difficult (officially non supported and lots of building stuff from source). Are you able to try with SteamVR on linux and see if it behaves any better than Monado? |
I tried it with SteamVR but it is not easy. Then I try to start the TamarinTestBed-App, and I get this:
Still just showing the VR-Room of steam. |
Yes, for me its SteamVR in the VR-Room then start a Tamarin Application and it detects steamVr and boots to it.
Ah, I know that one, I have a fix for it. Could you try version 2.1.2? I was being very conservative in the image formats I was mapping. 2.1.2 maps a lot more formats (as well as some other fixes including making it back off the egl bindings if the EGL display is null) |
Unfortunately same issue with 2.1.2
|
I would prefer using an open source XR-Runtime like Monado. |
It does seem like VR support on linux is quite lacking, which is surprising really given the openness of the openXR
No worries, I think it probably would fail in exactly the same way. I think I know the cause of the |
I have found out, why controllers are not supported on my configruation. |
I tried it out today, but still with tamarin v2.1.2, and get an other similar issue.
|
Sorry about that, not sure why v2.1.3 failed to publish. I've tried again with version 2.1.4, that should sort out the XR_ERROR_VALIDATION_FAILURE at least. (I hope the fatal error is part of the same thing because those are a nightmare to debug) |
With 2.1.4 a different issue occurs.
I was able to see any text on HMD-Display for short time, before the error occurs. |
Well that's decidedly odd. It looks like the runtime reported the XR_EXT_hand_tracking as available. But then when Tamarin tried to use it it then failed as being unsupported (really odd). In a next version I'll make it more graceful to that but for now you can just stop it trying by removing it from the list of extensions to load
Incidentally I've released a 2.1.5 which fixes a lot of very similar issues someone else was having with -1 errors (Although not the fatal errors, they are new) |
With this setting changed, it works now. 👍
|
|
I've found what I'm 95% sure if the cause of the memory error on exit. I was following the example at https://github.com/knokko/lwjgl3/blob/origin/fix-xr-gl-sample/modules/samples/src/test/java/org/lwjgl/demo/openxr/HelloOpenXRGL.java#L452 which has a bug in it that the swapchainBuffer is I'll release a new version on Friday along with some other features I've been working on and hopefully that will close this off. Edit; woops, wrong account. For the avoidance of confusion I am the same person as oneMillionWorlds |
Glad to see, that you have a hint. 👍 |
I've just released 2.2 that should resolve that memory issue |
Sorry, still the same issue in version 2.2 of tamarin. By the way: |
Hmm, looks like the problematic call is xrDestroyInstance Are your steps:
Could you try running with the vm arguments
All I get is that JMonkey and Lemur leak a lot of memory but you may get something that indicates why it crashes |
I can not find anything useful in the log with suggested options.
|
Hmm, I'm surprised not to see a bunch of logs like
Incidentally, does the VR application https://codeberg.org/gaiasky/gaiasky work for you? Its an OpenXR LWJGL based application just like Tamarin |
I started the gaiasky-app downloaded the minimal resources, and started as vr.
Also, after moving around some time, i got this: |
I created an issue regarding the ConcurrentModificationException. |
That's interesting, having both Gaia Sky and Tamarin crash in the same way makes me think it might be a Monado issue rather than a Tamarin (or Gaia Sky) issue; its definitely suspicious that they crash the same way. The xrDestroyInstance is just a request to properly shut down the XR environment before fully exiting the application. Arguably the application could do without it, but I'm not sure what resources wouldn't be properly released if it was to be omitted. |
I think it has to do with lwjgl-implementation of openxr, or something in native code, where the issue occurs. |
Cool, in that case I'm going to close this issue if that's ok. Thank you so much for testing and working through the issues with me. I hope the exit crash gets sorted wherever it originates. Although at least its on-exit crash, arguably the best time for a crash |
I tried out to get the Tamarin-Project working on linux using monado-service(libsurvive) on Debian11.
So I cloned the TamarinTestBed-Project.
But cannot run the project because of the following issues:
Log output:
Seems there is a problem with using EGL-Bindings --> XrUtils.java:120
So I uncommented the "useEGL" block.
But now another issue occurs:
Any idea howto fix this?
Basically openxr is working with my jme3-xr branch.
The text was updated successfully, but these errors were encountered: