GLB loading error

Hi,

I have a random problem loading the glb file. Sometimes it loads well, not twice, three times again … What problem it can be? Thanks.

TypeError: Cannot read property ‘byteLength’ of null
at https://preview.babylonjs.com/loaders/babylonjs.loaders.js:8722:45
at XMLHttpRequest.g (https://preview.babylonjs.com/babylon.js:16:582652)
glTFFileLoader.ts:528
Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR [https://pedagogicka-stredni.cz/terrain337.glb]

BABYLON.SceneLoader.ImportMesh("", “https://pedagogicka-stredni.cz/”, “terrain337.glb”, scene, function (newMeshes) {

    camera.target = newMeshes[0];

    teren = newMeshes[0];

});

What is it repro, please? :smiley:

can you share a repro maybe?

Can you create a playground? It will be easier for us to help if we can see a playground.

https://playground.babylonjs.com/

1 Like

https://playground.babylonjs.com/#MZ6G3S#2

I do not repro :frowning: Should I run it multiple times? I ran it 3 times already

I can not repro either ?