question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
aardgoosecommented, Jan 10, 2021

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

1reaction
aardgoosecommented, Sep 3, 2021

It’s targeted for Firefox 93 due in early October unless it hits problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1533680 - createImageBitmap throws not enough arguments ...
When I run the snippet in Nightly (20190312095443), the error that I receive is: "TypeError: 2 is not a valid argument count for...
Read more >
when I run my code i get this error - Stack Overflow
Tried the same with Python 3.5, which still had wxPython-Phoenix 3.0.3 something. Showed the same exception with the match overload.
Read more >
One of 250,000 asteroids generated procedurally with GLSL ...
Uncaught (in promise) TypeError: Window.createImageBitmap: 2 is not a valid argument count for any overload. load three.module.js:39691.
Read more >
createImageBitmap() reports "source image could not be ...
1. No error should be thrown 2. ImageBitmap should be created ... using Mac 10.14,Ubuntu 18.04 and Windows 10 by following steps as...
Read more >
Diff - ae4f2e7b1fa8ee131ff70160b11378c58697cd9a^!
+# If any IDL file uses an extended attribute or values not ... OR of ANDs: each term in the OR corresponds to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found