Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCan't re-enter immersive mode from home screen after using palm gesture #26179
Comments
|
When I use the palm gesture and exit immersive mode in a debug build, I see this output:
This makes me wonder if we're brekaing something internally. |
|
Yeah I saw those as well, it's probably because we're manually destroying the session and instance. I was told that it is okay to destroy them manually. Might be worth trying to:
|
|
Commenting out https://github.com/servo/webxr/blob/0d9c83f333920b98d95adf9666b0a365258990a3/webxr/openxr/mod.rs#L98 did not change either the error output, or the weird state. |
|
What about both? if exiting works with both removed we should get rid of the Drop impl anyway |
|
Actually it looks like commenting it out (or both) puts us in a weird exiting state when the content disappears, then I need to use the home button to actually get back to the home screen. |
|
@jdm yeah that's what i expected. are the console errors still appearing? Basically, you need to destroy the instance/session to exit. However, the instance doesn't seem to get destroyed manually (it's reference counted in openxrs, a reference is being held somewhere) so you get the weird exiting state. We're now dropping it, but we're dropping it before any of the other subfields of OpenXRDevice get dropped, which is probably what's spawning those errors. But i was told this would be okay. Ideally we can find out why the destructor never gets called. this might involve finding the extra references. by patching openxrs. |
|
This was fixede. |
STR:
Expected:
Actual: