Skip to content

"Failed to execute 'end' on 'XRSession' error exiting VR #4321

@klausw

Description

@klausw

Description:

How to reproduce:

JS console shows errors:

session end CustomEvent {isTrusted: false, detail: {…}, type: "exit-vr", target: a-scene, currentTarget: a-scene, …}
aframe-master.js:77067 Uncaught (in promise) DOMException: Failed to execute 'end' on 'XRSession': XRSession has already ended.
    at HTMLElement.exitVR (https://klausw.github.io/a-frame-car-sample/dist/aframe-master.js:77067:28)
    at XRSession.exitVRBound (https://klausw.github.io/a-frame-car-sample/dist/aframe-master.js:76786:47)
exitVR @ aframe-master.js:77067
exitVRBound @ aframe-master.js:76786
aframe-master.js:81177 Uncaught TypeError: Cannot read property 'length' of null
    at NewSystem.updateControllerList (aframe-master.js:81177)
    at bound (aframe-master.js:81198)
    at NewSystem.throttledUpdateControllerList (aframe-master.js:81748)
    at NewSystem.tick (aframe-master.js:81169)
    at HTMLElement.tick (aframe-master.js:77393)
    at HTMLElement.render (aframe-master.js:77437)
    at bound (aframe-master.js:81198)
    at onAnimationFrame (aframe-master.js:30949)
    at onAnimationFrame (aframe-master.js:21409)

After this, the render loop is no longer working, presumably due to tick getting an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions