Yup, this is two bugs I want to share with you! The two of them are linked to https://wazana.io project
I noticed last week the game was not working anymore. As you can see in the console there is this new error showing up:
Uncaught TypeError: this._caps.parallelShaderCompile.maxShaderCompilerThreadsKHR is not a function at n._initGLContext (engine.782c13b0.js:sourcemap:16) at new n (engine.782c13b0.js:sourcemap:16) at Object.exports.launchBabylon (engine.782c13b0.js:sourcemap:26) at window.onload (engine.782c13b0.js:sourcemap:360)
It really came from nowhere and I can’t really solve it by myself. The online page is using version 4.0.0-alpha.8 but I get the same result with stable version 4.0.3
So I decided to make an update of BabylonJS, but then I get this error message with last version 4.1.0-alpha.14:
scene.ts:3365 Uncaught TypeError: mesh.scaling.lengthSquared is not a function at Scene._evaluateActiveMeshes (scene.ts:3365) at Scene._renderForCamera (scene.ts:3524) at Scene._processSubCameras (scene.ts:3622) at Scene.render (scene.ts:3886) at scene.ts:194 at Engine._renderLoop
I really want to find out which stuff I am using is the source of that error but errors happening in the render function can be hard to solve. For instance is there a way here to console the mesh which is creating the error? It doesn’t work with try/catch.
Thanks for your help.