aframe icon indicating copy to clipboard operation
aframe copied to clipboard

Asset loading hangs forever when errors hit loading an asset.

Open diarmidmackenzie opened this issue 3 years ago • 0 comments

Description:

  • A-Frame Version: 1.3.0
  • Platform / Device: All
  • Reproducible Code Snippet or URL: https://glitch.com/edit/#!/assets-dont-timeout-on-error?path=index.html%3A29%3A92

When a URL referred to by an asset is not resolvable, A-Frame scene loading just hangs forever.

See linked Glitch, which is a modified version of this https://aframe.io/examples/showcase/modelviewer/ but with the GLTF URL set to an invalid value.

One reason why it would be nice to initialize the scene, rather than hang forever, is that it would allow application-specific error handling.

I have a potential fix for this that seems to work, which I'll present as a PR.

diarmidmackenzie avatar Mar 22 '22 14:03 diarmidmackenzie