Skip to content
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

webxr_vr_layers bug: Cannot read property 'getSubImage' of null #22324

Closed
felixmariotto opened this issue Aug 13, 2021 · 1 comment
Closed

webxr_vr_layers bug: Cannot read property 'getSubImage' of null #22324

felixmariotto opened this issue Aug 13, 2021 · 1 comment

Comments

@felixmariotto
Copy link
Contributor

felixmariotto commented Aug 13, 2021

When testing the webxr_vr_layers exemple in a certain way, a blocking bug occurs.

To Reproduce

  1. Visit https://threejs.org/examples/?q=layers#webxr_vr_layers with a VR headset.
  2. Click "Enter VR".
  3. Update eyeChartDistanceFt value in the GUI.
  4. Press the menu button and exit immersive VR.
  5. The console logs Uncaught TypeError: Cannot read property 'getSubImage' of null.
  6. Click "Enter VR" again.
  7. Black screen. The console logs Uncaught DOMException: Failed to execute 'getSubImage' on 'XRWebGLBinding': Called getSubImage with objects from different states.

It's coming from this line

Note the the bug does not occur when you omit step 3.

Tested on Oculus Quest 1.

/ping @cabanier

@felixmariotto
Copy link
Contributor Author

Fixed by #22325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants