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.

Uncaught (in promise) RangeError: Maximum call stack size exceeded - 1.0.0-rc.2

See original GitHub issue
  • Using the latest version
  • Testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:

Updating to the latest 1.0.0-rc.2 version, DOM elements with a base64 background-image generate a blocking error (the previous 1.0.0-rc.1 didn’t) :

Uncaught (in promise) RangeError: Maximum call stack size exceeded
    at Tokenizer.write (html2canvas.js:1019)
    at parse (html2canvas.js:4105)
    at new CSSParsedDeclaration (html2canvas.js:3998)
    at new ElementContainer (html2canvas.js:4138)
    at createContainer (html2canvas.js:4485)
    at parseNodeTree (html2canvas.js:4438)
    at parseTree (html2canvas.js:4490)
    at html2canvas.js:6937
    at step (html2canvas.js:83)
    at Object.next (html2canvas.js:64)

You can test yourself the issue here: https://open-lab.com/storyboarder/test/test.html

At this page, you can also see that the image has an “object-fit: cover” CSS property that is ignored and that if you scroll the page the capture of the image is white.

Specifications:

  • html2canvas version tested with: 1.0.0-rc.2
  • Browser & version: Chrome 74.0.3729.169
  • Operating system: Mac OSX 10.14.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

6reactions
z1hazecommented, Jul 31, 2020

Can we get a fix for this on safari?

6reactions
marshallino16commented, Oct 14, 2019

Still happening on mobile devices

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript RangeError: Maximum Call Stack Size Exceeded
The JavaScript RangeError: Maximum call stack size exceeded is an error that occurs when there are too many function calls, or if a...
Read more >
Recursive new Promise: RangeError: Maximum call stack size ...
The possibility of "Maximum call stack size exceeded" can be avoided by forcing the recursive getUser() call to be made asynchronously and the ......
Read more >
Uncaught RangeError: Maximum call stack size exceeded
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >
RangeError: Maximum call stack size exceeded in JavaScript
The "RangeError: Maximum call stack size exceeded" error occurs when a function is called so many times that the invocations exceed the call...
Read more >
maximum call stack size exceeded typescript - You.com
The RangeError: Maximum call stack size exceeded occurs when a function is being called so many times that the invocations exceed the call...
Read more >

github_iconTop Related Medium Post

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