The statistics tab in the Inspector for Babylon.js seems to crash

I don’t know in what version this happened, but it seems that Inspector crashes when you select Statistics in Inspector.

Here are the steps to reproduce the issue:

  1. Access the Babylon.js Playground.
    https://playground.babylonjs.com/
  2. Click the “Inspector” icon at the top of the screen.
    → The “Inspector” will appear on the right side of the screen.
  3. Click the “Statistics” tab in the “Inspector”.
    → The “Inspector” crashes and disappears from the screen.

scheduler.production.min.js:12 
Uncaught TypeError: Cannot read properties of undefined (reading 'includes')
    at Function.get (pressureObserverWrapper.ts:34:93)
    at m (performanceViewerComponent.tsx:154:37)
    at performanceViewerComponent.tsx:177:9
    at Tl (react-dom.production.min.js:262:359)
    at t.unstable_runWithPriority (scheduler.production.min.js:18:343)
    at Ws (react-dom.production.min.js:122:325)
    at Il (react-dom.production.min.js:261:308)
    at react-dom.production.min.js:261:215
    at _ (scheduler.production.min.js:16:224)
    at x.port1.onmessage (scheduler.production.min.js:12:346)

Crash occurs only in Edge browser

1 Like

Nice one!
Let me fix that asap!

1 Like

I see. As you point out, this problem only seems to occur in Chrome and Edge. I confirmed that it does not crash in Firefox.

This is why I really care about backward compatibility…

They changed “PressureObserver.supportedSources” to “PressureObserver.knownSources” leading countless websites to crash for freaking no reason…

Will be fixed in a few hours

7 Likes

Thanks for taking a look at this @Deltakosh! For anyone else still getting this, I had to upgrade from BJS 6 to 7.