Skip to content

WebXR error in WebGPURenderer / WebGLBackend in non layer devices #31193

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

Closed
danrossi opened this issue May 28, 2025 · 12 comments · Fixed by #31198
Closed

WebXR error in WebGPURenderer / WebGLBackend in non layer devices #31193

danrossi opened this issue May 28, 2025 · 12 comments · Fixed by #31198
Labels
Milestone

Comments

@danrossi
Copy link
Contributor

danrossi commented May 28, 2025

Description

I just pulled changes into a merged fork for a PR I made. And found errors in WebXR so it's stopping working altogether. I am not sure what it is. I checked against a fresh checkout.

It's suggesting this is null

renderTargetContextData.framebuffers

const fb = renderTargetContextData.framebuffers[ renderContext.getCacheKey() ];

Related to #31134

Reproduction steps

  1. visit https://electroteque.org/dev/three/examples/webgpu_xr_cubes.html
  2. Launch WebXR
  3. Errors display in the animation frame.

Code

// code goes here

Live example

Screenshots

Image

Version

176

Device

Desktop

Browser

Chrome

OS

Windows

@mrdoob
Copy link
Owner

mrdoob commented May 29, 2025

@cabanier @Mugen87 Any ideas?

@mrdoob mrdoob added the WebXR label May 29, 2025
@cabanier
Copy link
Contributor

@cabanier @Mugen87 Any ideas?

I'll take a look. It seems that this user is using the WebXR polyfill.

@danrossi
Copy link
Contributor Author

It's the emulator. I can bring it up in the Quest. But is also a problem on the Rift via chrome.

@danrossi danrossi changed the title WebXR error in WebGPURenderer / WebGLBackend since a recent update WebXR error in WebGPURenderer / WebGLBackend in non layer devices May 29, 2025
@danrossi
Copy link
Contributor Author

I updated the title. It's ok in Quest 2 somehow. Just in Chrome / Rift non layer WebXR and the immersive emulator extension.

@cabanier
Copy link
Contributor

I updated the title. It's ok in Quest 2 somehow. Just in Chrome / Rift non layer WebXR and the immersive emulator extension.

I see that it renders incorrectly if I turn layers off. I usually test with that before submitting but must have missed it

@danrossi
Copy link
Contributor Author

It's all good easily missed. There is so much stuff in there to test case now. I wonder if there is a way to headless test WebXR for layers / non layers ? Is that already happening ?

@cabanier
Copy link
Contributor

@cabanier @Mugen87 Any ideas?

#31198 will address this along with some other side issues.

@Mugen87 Mugen87 added this to the r177 milestone May 29, 2025
@Mugen87 Mugen87 closed this as completed May 29, 2025
@danrossi
Copy link
Contributor Author

danrossi commented May 30, 2025

I hope I can still update this ticket. I updated and now I get framebuffer errors with no XR display. In both Rift in Chrome and the emulator extension. So non layer XR. In the rift it's in the home screen so won't launch XR.

https://electroteque.org/dev/three/examples/webgpu_xr_cubes.html

Image

@Mugen87 Mugen87 reopened this May 30, 2025
@cabanier
Copy link
Contributor

It's just a warning from chromium. I'll silence it.

@danrossi
Copy link
Contributor Author

never mind. I'm sorry confirming it's ok on Rift. I had the extension enabled. warnings can be ignored. Will close.

@Mugen87
Copy link
Collaborator

Mugen87 commented May 30, 2025

@cabanier Should we still keep #31201 and merge the proposed changes?

@cabanier
Copy link
Contributor

cabanier commented May 30, 2025 via email

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

Successfully merging a pull request may close this issue.

4 participants