scene.debugLayer.show() no longer working

Invoking scene.debugLayer.show(); no longer works. No changes to the imports and it suddenly stopped working.

Error:

babylon.js:16 Uncaught (in promise) TypeError: Cannot read property 'getClassName' of null
    at babylon.inspector.bundle.js:35
    at Array.filter (<anonymous>)
    at t.renderContent (babylon.inspector.bundle.js:35)
    at t.render (babylon.inspector.bundle.js:35)
    at fl (babylon.inspector.bundle.js:51)
    at gl (babylon.inspector.bundle.js:51)
    at Ki (babylon.inspector.bundle.js:51)
    at Ui (babylon.inspector.bundle.js:51)
    at Fi (babylon.inspector.bundle.js:51)
    at _i (babylon.inspector.bundle.js:51)

The imports:

<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Babylon.js sample code</title>
        <!-- Babylon.js -->
        <script src="https://code.jquery.com/pep/0.4.2/pep.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script>
        <script src="https://preview.babylonjs.com/ammo.js"></script>
        <script src="https://preview.babylonjs.com/cannon.js"></script>
        <script src="https://preview.babylonjs.com/Oimo.js"></script>
        <script src="https://preview.babylonjs.com/earcut.min.js"></script>
        <script src="https://preview.babylonjs.com/babylon.js"></script>
        <script src="https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js"></script>
        <script src="https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.min.js"></script>
        <script src="https://preview.babylonjs.com/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js"></script>        
        <script src="https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.min.js"></script>
        <script src="https://preview.babylonjs.com/loaders/babylonjs.loaders.js"></script>
        <script src="https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js"></script>
        <script src="https://preview.babylonjs.com/gui/babylon.gui.min.js"></script>
        <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
        <!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"></script> -->
        <script src="./classes/kdtree-min.js"></script>        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.1.0/chroma.min.js"></script>
        <style>
            html, body {
                overflow: hidden;
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
            }

            #renderCanvas {
                width: 100%;
                height: 100%;
                touch-action: none;
            }
        </style>
    </head>

Ohhhhhh it sounds like a bad bug related to the content of your scene :frowning:

Is it possible to access your scene or to repro in the playground ?

I really want to tackle this on as a priority.

Also do you know when did it stop, it might help me checking into the changes.

I would say it stopped withing the last 20 minutes from when I posted. I don’t have a playground for it, it’s a local project.

So this would be our latest update let me check what changed in there which might be related.

There is nothing related to inspector in the latest change :frowning: Do you have the project online I could access ?

I unfortunately do not have it online. I will ping you when I put it online - but given your reassurance, I will dig in my code if anything is off.

Thank you

Actually, it looks working in the playground and sandbox but a bug in the inspector linked to your scene data (bug would only show in case of a special condition in the scene) is highly possible.