-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
r172 breaks vr on Pico4 #30263
Comments
I can't reproduce the issue on a Quest 2 with any of the official WebXR demos: https://threejs.org/examples/?q=webxr It does not look like your are doing something special in your code example. What device are you using? |
pico4, pico browser is chrome based |
Having a single animation loop is totally fine. My first guess would be you maybe include more than one three.js version in your build which can produce unexpected side effects. Make sure this is not the case. |
Thats why i made the code example above, i run it from a simple html file within my local network. There is not more than that and the error keeps coming with 172 but not with prior versions. |
Here is a live one now: https://labs.setanodus.net/three/vr/bug-with-172.html |
The link works fine on a Quest 2.
Do you see this log but the application runs fine? Or is the application crashing? |
When i hit the button everything goes black and i see a spinner for a few seconds, than i am back looking at the browser and the page is being reloaded with those three error logs left in the console. |
The only WebXR related change in Do you mind testing if reverting the change in your local three.js copy fixes the issue? |
I'll do it, I'll get back to you as soon as I have something |
Yes, i can confirm that reverting the #30112 changes to src/renderers/webxr/WebXRManager.js fix the problem on pico4: |
Description
WebGL: INVALID_FRAMEBUFFER_OPERATION: clear: Cannot render to a XRWebGLLayer framebuffer outside of an XRSession animation frame callback. three.module.js:15287
WebGL: INVALID_FRAMEBUFFER_OPERATION: drawArrays: Cannot render to a XRWebGLLayer framebuffer outside of an XRSession animation frame callback. three.module.js:2184
WebGL: INVALID_FRAMEBUFFER_OPERATION: drawArrays: Cannot render to a XRWebGLLayer framebuffer outside of an XRSession animation frame callback. three.module.js:2184
Reproduction steps
See code
Code
Live example
(https://jsfiddle.net/tkxse2rh/) vr not allowed
Screenshots
No response
Version
172
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: