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.

Fails to execute 'getImageData' on 'CanvasRenderingContext2D'

See original GitHub issue

I got Uncaught TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite. error while executing below snippet.

            var canvas = document.getElementById('canvas');
            canvas.width = 150;
            canvas.height = 150;

            var context = canvas.getContext('2d');
            context.font = "bold 70px Helvetica"
            context.textAlign = 'center'
            context.textBaseline = 'middle'
            context.lineWidth = 3;
            context.fillStyle = "rgb(0, 0, 0)";

            var gif = new GIF({
              workers: 2,
              quality: 10
            });

            gif.addFrame(context, {copy: true, delay: 200});

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

42reactions
Terri5732commented, Jun 7, 2015

/r/reddit issue? I seem to have “upset” the “higher powers” if you will for some odd reason. Non related to reddit rather Ello.com?? Wayback internet archive??? And of course Googlewemaster cache bla bla bla…I am a loyal Apple advocate; hence I’m using mobile e.g, IPad Air 2 and IPhone 6+ certain links, media Are censored, i’m certain you Know this Vk.com is Russian social media? Quite contrary to media of choice…I read the disclaimers, privacy, intellectual property, as well as Safe Harbor Act both versions, Freedom of Information Act, Digital millennium mobilization Act bla bla bla…Get My drift? Sorry, My apologies for digressing. I enjoy social media, love writing (literature, creative writing) that’s my thing. I’m well-traveled, cultured, comical and Self deprecating but “Those” like to Challenge me?? I’m a Fan or Foe with social “Friends”. As s female, I yearn for intelligent communications…they’re out there they find me for certain or various links I’m pretty transparent, but ambiguious, I Prefer for various geographical “small town small mind”. I welcome suggestions, Feedback etc. I was Hoping to create a repository (Outing ill minded, hackers, trolls, digital terrorists, anti-Progressives etc… And can use a Public Benefit Corporation as well, it’s for a good “cause” Benefits there Are a plethora to Choose. Let me Know how I can help…no outer or external “influences” Trust that…you can take that to the “bank” ! No pun intended, well maybe a little! I’m ornery and like wine as aging it matures! So go figure ?

0reactions
fdandancommented, Dec 11, 2016

@anuragagarwal561994 help me very well, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix getImageData() error The canvas has been tainted ...
Uncaught SecurityError : Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. part of my code:
Read more >
DOMException: Failed to execute 'getImageData' on ... - GitHub
DOMException : Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. #26.
Read more >
Uncaught SecurityError: Failed to execute 'getImageData' on ...
HTML : Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D ': The canvas has been tainted by cross-origin ...
Read more >
How to Fix "The canvas has been tainted by cross-origin data ...
Uncaught SecurityError : Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
Read more >
The source width is 0 | RPG Maker Forums
Failed to execute "getImageData" on "CanvasRenderingContext2D ": The source ... It seems to me the error has something to do with drawing the ......
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