Debugger layout (inspector) crash after opening material tab

I’m, facing the following issue, when i open the debugger layout and click on mateirals sections , it opens fine without any issues. but after loading models (glb models) into the scene and i try to open the materials tab . the debugger layout crashes .

my package.json .

"dependencies": {
     "babylonjs": "^5.39.0",
    "babylonjs-gui": "^5.39.0",
    "babylonjs-loaders": "^5.39.0",
    "babylonjs-materials": "^5.39.0"

error message

tools.ts:46 Uncaught TypeError: ( || "").toLowerCase is not a function
    at tools.ts:46:47
    at Array.sort (<anonymous>)
    at ql.SortAndFilter (tools.ts:45:27)
    at rc.render (treeItemComponent.tsx:188:35)
    at Ha (react-dom.production.min.js:187:188)
    at Ga (react-dom.production.min.js:186:173)
    at Hi (react-dom.production.min.js:269:427)
    at Sl (react-dom.production.min.js:250:347)
    at wl (react-dom.production.min.js:250:278)
    at jl (react-dom.production.min.js:250:138)

Thanks for the report! I’m investigating right now.

This should address the issue: More defensive handling of name property in Inspector by carolhmj · Pull Request #13382 · BabylonJS/Babylon.js (


PR merged!