# Possible bug in the inspector when materials have no name

**URL:** <https://forum.babylonjs.com/t/possible-bug-in-the-inspector-when-materials-have-no-name/11910>\
**Category:** Bugs\
**Created:** [June 22, 2020, 4:02pm UTC](https://forum.babylonjs.com/t/possible-bug-in-the-inspector-when-materials-have-no-name/11910 "2020-06-22T16:02:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spookyuser](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@spookyuser](https://forum.babylonjs.com/u/spookyuser)\
**Post date:** [June 22, 2020, 4:02pm UTC](https://forum.babylonjs.com/t/possible-bug-in-the-inspector-when-materials-have-no-name/11910/1 "2020-06-22T16:02:31Z")

</div>

Hi, not sure if this is an unknown bug or expected behavior, but it seems like the inspector crashes without a descriptive error and crashes quite severely at that, when even one material has no name.

See this playground for an example: [Babylon.js Playground](https://playground.babylonjs.com/#1YY1TV)

If you click on the materials tab you will see tons of red error messages in the console and bit by bit the inspector will start to fall apart, seemingly because the standard material has no name.

This one had me stumped for a while, and pretty much only found what was crashing my scene by replacing the es6 babylon example bit by bit until it crashed 😢

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [June 22, 2020, 4:29pm UTC](https://forum.babylonjs.com/t/possible-bug-in-the-inspector-when-materials-have-no-name/11910/2 "2020-06-22T16:29:32Z")

</div>

Hi @spookyuser and welcome to the forum.

> [@spookyuser](#):
>
> the inspector crashes without a descriptive error and crashes quite severely at that, when even one material has no name.

Actually the issue is not that the material has not been given a name as you can see here [https://playground.babylonjs.com/#1YY1TV#1](https://playground.babylonjs.com/#1YY1TV#1) the inspector can cope with this

What the inspector does not currently cope with is the StandardMaterial being passed an object in the name parameter position. You can probably see why this would be so unexpected as not to be considered in develping the inspector.

---

<div class="post-metadata">

**Author:** ![spookyuser](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@spookyuser](https://forum.babylonjs.com/u/spookyuser)\
**Post date:** [June 22, 2020, 4:34pm UTC](https://forum.babylonjs.com/t/possible-bug-in-the-inspector-when-materials-have-no-name/11910/3 "2020-06-22T16:34:21Z")

</div>

> [@JohnK](#):
>
> name parameter position. You can probably see why this would be so unexpected as not to be considered in develping the inspector.

Ah that makes sense! Of course.
