Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

Crash when closing the stats menu #5391

Open keianhzo opened 2 years ago

keianhzo commented 2 years ago

Description A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Enabled FPS preference
  2. Click on FPS
  3. Close it
  4. Hubs freezes

Expected behavior It doesn't freeze

Additional context

Uncaught TypeError: can't access property "startTime", window.performance.getEntriesByName(...)[0] is undefined
    Aframe 4
    tick stats-plus.js:154
    value Aframe
    o App.js:84
    Il three.module.js:26251
    r three.module.js:12552
    a raven.js:377
cornelionce commented 2 years ago

On my side it already freezes at step 2 (after clicking on FPS), no need to close the panel. Tested on a Windows 10 x64 machine using latest Firefox / Chrome.