I’m working on a WebXR experience where I’ll need to be able to go into and out of XR at will without leaving the page. However, calling exitXRAsync() seems to 100% crash the Web page with (as best I can tell so far) WebGL error messages possibly indicating a double-free. I have not yet tested this with other XR-capable browsers yet, so it’s possible it’s not Babylon’s problem, but FWIW here’s the min repro Playground.
Test exit XR for crash | Babylon.js Playground
- Navigate to this Playground in the Oculus browser
- Enter XR
- Wait 5 seconds
- Observe crash
Repro rate: 100%
Additional notes: Feels good to be back. ![]()