-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 init accessing trackedAnchors causes error: "TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))" #5843
Comments
Hi @benferns, thank you for the report. Do you have any reproduction using actual devices (not with emulators)? I have not been able to reproduce an issue. Based on the specs I have tried using link to the project you've provided on Windows Chrome, but the extension you've provided does not seem to implement WebXR AR polyfill. Can you verify there are no other extensions running in your browser that might implement the WebXR polyfill? |
Hi @benferns, I've investigated more into that, and can confirm that when In short: polyfill implementation - is the one that leads to issues. Please ensure your implementation also will follow specs, which basically is pretty much true for all WebXR extensions I've read: if API is supported then properties should be defined on their objects (accessors on prototypes) and in type specified in specs, regardless if feature is requested for the session or not. Nevertheless I've implemented a PR that will take such case into the account, and will prevent attempt to access anchors API in case when it is not enabled on the session: #5879 |
This issue tracker is only for bug reports and feature requests. For general support/help, visit https://forum.playcanvas.com
For bug reports, include:
Description
On trying to start WebXR on non-Android platforms, the error "TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))", or "undefined is not an object" occurs on the same line. Context below:
So far I have confirmed this issue on my own iOS WebXR implementation ( https://launch.variant3d.com/docs ) and in WebXR emulator extensions. It appears not to happen on Android Chrome.
The change is recent (within the last few weeks) as I've just had a bunch of support requests pop-up this week around the issue.
Steps to Reproduce
The fastest path to reproducing is to download a webxr emulator like https://chrome.google.com/webstore/detail/webxr-api-emulator/mjddjgeghkdijejnciaefnkjmkafnnje then follow the below:
I can provide Variant Launch test projects/accounts if helpful, but since the same error shows across other implementations I think the underlying issue will be the same.
The text was updated successfully, but these errors were encountered: