Skip to content
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

Fix random error when exiting VR #5198

Merged
merged 1 commit into from
Dec 30, 2022
Merged

Conversation

vincentfretin
Copy link
Contributor

Description:
Fix random error when exiting VR that could make the page unresponsive.
Uncaught TypeError: Cannot read properties of null (reading 'removeEventListener') at XRSession.onSessionEnd (three.js:18792:1)
See discussion in #5137

Changes proposed:

  • Remove setSession(null) call on exiting VR, threejs is already setting session to null in its onSessionEnd listener

…ting VR, threejs is already setting session to null in its onSessionEnd listener (fix aframevr#5137)
@vincentfretin
Copy link
Contributor Author

I tested the change on Quest 1 on https://192.168.1.15:8080/showcase/ui/
enter VR, exit VR, enter VR. This still works.

@dmarcos
Copy link
Member

dmarcos commented Dec 30, 2022

You're awesome. Thank you

@dmarcos dmarcos merged commit d8fef14 into aframevr:master Dec 30, 2022
@vincentfretin vincentfretin deleted the fix-vr-exit branch April 15, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants