OS: Windows 10
GPU: GTX 1050 2GB
Browser: Firefox 122
Ver: 7.10.2
Url: https://sandbox.babylonjs.com/
Expected: A message popup telling user that the gltf is invalid
Actual: Loading never ends
Screenshot:
The invalid gltf used for reproduction: invalid.zip (170 Bytes)
Assuming a simple try-catch would workaround this, but not sure if there is better solutions, like some global or shared error handlers
The error being catched here is never logger, nor passed to onError, so users or devs can only know about the model being loaded is not right, but not exactly where went wrong, which in my example invalid model, is the JSON.parse error.