"Unable to compile effect" in version 8

Hello, I stepped away from working on my BabylonJS scene for a week or so and came back and was confronted with a host of errors.

I’m using the CDN to run the scene on my own website so this is using v8.2.0, if I rollback to 7.54.3 it works no problem so it’s nothing to do with any code I’ve changed. I suspect something has changed in version 8+ but for the life of me I can’t work out what based on this error.
top part of the error logs

bottom part of the error logs

Sorry for no playground, I can’t share the model files but I have reproduced this issue in the playground. I copied my code over from a 7.5.4 playground where it worked perfectly to an 8.2.0 playground where I get the same error.

Some general characteristics of my scene:

  • importing glb files
  • using pbr materials
  • using ssr and ssao post-processing
  • using shadow casters
  • using the audio engine
  • using mesh instances
  • scene is about 215 meshes before instancing, 2000+ including instances and ~16M indices.

I think you experience the problem fixed by this PR:

It has been merged yesterday, so it is not yet available on npm.

To know if it’s really the problem, can you update your node materials to connect a float with value 1.5 to the PBRMetallicRoughness block:

Perfect, that has fixed it! Forgot to mention I had a NME in the scene, good catch :slight_smile: