TypeError: Window.createImageBitmap: 2 is not a valid argument count for any overload.

Sometimes I get this error.

Steps to reproduce the behavior:

  1. Load a gltf model with r124, Idk
  2. Look into browser console
  3. See error

Code

let manager = new THREE.LoadingManager, loader = new GLTFLoader( manager );
...
loader.load( config.path, function( result ) {
// nothing special here

Live example

n/a

Expected behavior

The error never happens

Screenshots

gltfloader stack

gltfloader code

Platform:

  • Device: Desktop
  • OS: Windows 10
  • Browser: Firefox
  • Three.js version: r124

1 possible answer(s) on “TypeError: Window.createImageBitmap: 2 is not a valid argument count for any overload.

  1. FWIW, I have submitted patches to FF to add options support for createImageBitmap. Pending review on latest revision at the moment.