Exiting WebXR appears to crash Oculus browser

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

  1. Navigate to this Playground in the Oculus browser
  2. Enter XR
  3. Wait 5 seconds
  4. Observe crash

Repro rate: 100%

Additional notes: Feels good to be back. :slight_smile:

1 Like

Hi @syntheticmagus So great to see you back here !!!

Let me summon @docEdub .

Funny enough, this stopped repro’ing for me; I just entered and exited bug-free in both Oculus browser and Wolvic. Not sure what was going on and will resurrect it if needs be, but for now this can go to bed.

Thanks for the quick response, Cedric, and great to see you too!!

1 Like

WOOOT! Look who’s here!!!

1 Like