Crash with web worker since release 6.34.2

Hi everyone and thanks again for the amazing work !

I just migrated to the last BJS release and found a bug when using a web worker.

There are infinite recursive calls while loading textures from a GLTF/GLB which leads to the onError callback of the import function because of

Maximum call stack size exceeded

_createTextureBase method seems to loop

It happens since release 6.34.2

No PR, but the demo has it.
https://www.babylonjs.com/Demos/Offscreen/

Thanks !

Hi! What version were you using before?

I was using 6.11.2. I tried several versions and it seems to work till 6.34.1. Then since 6.34.2 the problem occurs.

1 Like

Thank you very much for the report, I’ve submitted a fix: Force texture loading with bitmap when in offscreen canvas by carolhmj · Pull Request #14676 · BabylonJS/Babylon.js (github.com) :slight_smile:

3 Likes

Awesome ! Thank you for the quick fix !