PCDLoader does not handle errors correctly

Description of the problem

The PCDLoader doesn’t handle errors well. If there’s an error when parsing, the error handler passed in is not called and the resulting exception is only caught by a global process handler. This may apply to all loaders as if there’s an error in the setTimeout method used for loading there’s no way to catch that exception.

        var url = 'https://threejs.org/examples/textures/sprites/disc.png';
        var loader = new THREE.PCDLoader().load(
          () => alert('something loaded'),
          () => {},
          () => alert('error handler - never gets called')
Three.js version
  • r91
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)


Author: Fantashit

1 thought on “PCDLoader does not handle errors correctly

Comments are closed.