mbucchia / VirtualDesktop-OpenXR

An implementation of the OpenXR standard for Virtual Desktop
MIT License
209 stars 7 forks source link

Virtual Desktop hangs after exit VR Mode on X-Plane 12 #16

Closed Roccote closed 6 months ago

Roccote commented 7 months ago

ANY ISSUE FILED WITHOUT THE INFORMATION REQUIRED BELOW WILL BE CLOSED WITHOUT BEING LOOKED AT. NO EXCEPTIONS.

When trying to exit VR mode in X-Plane12 (--open_xr and Quest 3) the app hangs and when trying to enter VR mode again in XP12 after resetting both Quest 3 and PC apps the image turns into a quick slideshow of turning view images

Environment

To Reproduce

1.- Start X-Plane 12 in OpenXR Mode using --open_xr flag 2.- Start a flight, once in the cockpit go to settings>VR hardware>Enable VR hardware (thick checkbox) 3.-Once in VR mode select "Disable VR headset" on 2D window on X-plane12 window on PC or go to "settings>VR hardware>Enable VR hardware (unthick checkbox) 4.-VD hangs on headset (image freezes), only viable option is quitting VD app with right controller oculus button 5.- Restarting Quest3 VD app and trying to activate VR mode again on XP12 results in the previously mentioned quick slideshow of turning view images

Expected behavior

after selecting "disable VR hardware" on X-plane 12, the view in the Quest 3 headset should return to the VD app and one should be able to re-enter VR mode in X-plane 12 again

OpenXR.log.txt

mbucchia commented 7 months ago

You seem to have OpenXR Toolkit enabled, which isn't compatible with this game.

X-Plane is working fine for me without it, I tried switching VR mode several times without issues.

Roccote commented 7 months ago

I had installed the nightly build OXRTK compatible with XP12 I only used it to display the framerate, anyway after your comment I first deactivated and then uninstalled it. Now I can return to VR mode in X-Plane but the image is very unstable (lots of movement) and then after a while it stabilizes by itself. I tried three times, first one stabilized in about 10 seconds, second time in about 30 and third took almost two minutes, here´s a video of the third time: https://www.youtube.com/watch?v=GTFMale5FGE. Btw, I have a joystick button assigned to enable/disable VR Mode in XP12 and that is what I used to switch modes. Now I´m tot sure what is wrong but another member of xplane.org forum has exactly the same symptoms. OpenXR.log.txt

mbucchia commented 7 months ago

Thanks, I think I see the issue now. Don't know when I will have time to fix it though.

Roccote commented 7 months ago

Nevermind, we will wait patiently for the fix. Thank you for the support and your continued effort.


From: Matthieu Bucchianeri @.> Sent: Tuesday, November 28, 2023 8:46 PM To: mbucchia/VirtualDesktop-OpenXR @.> Cc: Roccote @.>; Author @.> Subject: Re: [mbucchia/VirtualDesktop-OpenXR] Virtual Desktop hangs after exit VR Mode on X-Plane 12 (Issue #16)

Thanks, I think I see the issue now. Don't know when I will have time to fix it though.

— Reply to this email directly, view it on GitHubhttps://github.com/mbucchia/VirtualDesktop-OpenXR/issues/16#issuecomment-1831125304, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUWIJ7W7VGMVOWB2VRSYRADYG2OXJAVCNFSM6AAAAAA75EFFNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZRGEZDKMZQGQ. You are receiving this because you authored the thread.Message ID: @.***>

mbucchia commented 7 months ago

I actually think I have a fix, but I need to do more testing (and test with other applications too). What X-Plane is doing with VR session restart is very unusual.

mbucchia commented 6 months ago

Fixed by 7c74226.