Git Product home page Git Product logo

aframe-components's People

Contributors

diarmidmackenzie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aframe-components's Issues

`anchored` component hitting errors on Quest Pro

Apps that use persistent anchors using the anchored component seem to be able to get into a state where the WebXR session gets stuck with invalid anchor information, which triggers exceptions.

The initial symptoms are an exception like this:

Failed to execute 'restorePersistentAnchor' on 'XRSession': Anchor creation failed.

Further analysis of a case where this was happening showed that XR Session reporting 3 anchors in existence.

Didn't completely understand the issue, but it appeared that WebXR calls to either restore or delete the anchors were failing. Using various console commands, eventually managed to clear up the situation, not completely sure how, but possibly attempting (and failing) to restore the anchor, and then subsequently deleting it is what cleared things up.

handle-anchor-error branch contains some code to handle this failure mode (turning the exception into a warning) and attempt to clean up. Not sure how robust this is, and whether it might just end up masking problems (leading to things moving around when they should be anchored).

XR specs says the list of the known persistent anchors reported

MUST reflect the keys of the map of persistent anchors.

https://immersive-web.github.io/anchors/#dom-xrsession-deletepersistentanchor:~:text=persistentAnchors%20returns%20a%20list%20of%20the%20known%20persistent%20anchors.%20This%20list%20MUST%20reflect%20the%20keys%20of%20the%20map%20of%20persistent%20anchors.

And the specs only say the request to retore or delete an anchor will fail if the anchor ID is not valid, or the session has ended, neither of which seems to be the case.

So maybe a browser bug, but I've not clearly pinned this down yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.