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.

Internet Explorer IndexSizeError on Drawer.blendSketch context.drawImage

See original GitHub issue

Demo: http://plnkr.co/edit/ormkIn

It works fine on Chrome, but IE throws an error and the image freezes (cannot pan or zoom). There are multiple Google results for “ie drawImage IndexSizeError” but I could not get it to work.

IE spec says:

IndexSizeError The numeric arguments are not valid (for example, the destination is a 0x0 rectangle). Versions earlier than Internet Explorer 10 use INDEX_SIZE_ERR.

https://msdn.microsoft.com/en-us/library/ff975414(v=vs.85).aspx

EDIT: homeFillsViewer: true makes IE throw the error consistently. homeFillsViewer: false still throws the error, but if you pan or zoom when the image first shows up, sometimes it does not throw the error and everything works afterwards.

https://github.com/openseadragon/openseadragon/blob/v2.2.1/src/drawer.js#L426

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
avandecremecommented, Sep 23, 2016

Excellent! I will leave this issue open until the fix is merged.

0reactions
iangilmancommented, Oct 11, 2016

Fixed by #1035

Read more comments on GitHub >

github_iconTop Results From Across the Web

IndexSizeError on drawImage on IE and Edge - Stack Overflow
According to MDN, I should only be getting this error if the size of either the canvas or the source rectangle is 0,...
Read more >
OpenSeadragon issue on Internet Explorer
blendSketch ; OpenSeadragon.Drawer.prototype.blendSketch = function(options) { if(this.useCanvas && this.sketchCanvas && options && options.bounds) ...
Read more >
CanvasRenderingContext2D.drawImage() - Web APIs | MDN
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.
Read more >
drawImage method (Windows) | Microsoft Learn
The image parameter is not an img object, canvas element, or video element. Versions earlier than Internet Explorer 10 use TYPE_MISMATCH_ERR.
Read more >
HTML canvas drawImage() Method - W3Schools
The numbers in the table specify the first browser version that fully supports ... The drawImage() method draws an image, canvas, or video...
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