TypeError: Window.createImageBitmap: 2 is not a valid argument count for any overload.
See original GitHub issueSometimes I get this error.
Steps to reproduce the behavior:
- Load a gltf model with r124, Idk
- Look into browser console
- 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
Platform:
- Device: Desktop
- OS: Windows 10
- Browser: Firefox
- Three.js version: r124
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FWIW, I have submitted patches to FF to add options support for createImageBitmap. Pending review on latest revision at the moment.
It’s targeted for Firefox 93 due in early October unless it hits problems.