Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using version 2.9.3 gets Maximum call stack size exceeded exception in google chrome. #7881

Closed
davidspencerward opened this issue Oct 13, 2020 · 5 comments · Fixed by #7906
Closed

Comments

@davidspencerward
Copy link

I am using chartjs to create a scatter chart of OOM events by timestamp. If I use version 2.9.3, I get the "Maximum call stack size exceeded" exception in google chrome. Same for versions 2.9.0, 2.9.1 and 2.9.2. But version 2.8.0 works fine. I will paste in my HTML/JS code. To get the error, just change "2.8.0" to "2.9.3".

Version 74.0.3729.169 (Official Build) (64-bit)

Running on Ubuntu 16.04.

oom-analysis.html.gz

@etimberg
Copy link
Member

Duplicate of #7761?

@davidspencerward
Copy link
Author

davidspencerward commented Oct 13, 2020 via email

@etimberg
Copy link
Member

thanks @davidspencerward, I'll take a look and see if I can also reproduce in v3.0.0-beta.3.

@etimberg
Copy link
Member

The issue seems to be related to stepSize: 1. If I remove that, it's not a problem. I'm guessing that when stepSize is 1, there are too many ticks and we run out of memory when measuring the text.

silentmatt added a commit to silentmatt/Chart.js that referenced this issue Oct 14, 2020
)

Calling Math.max with a large number of values was throwing an exception.
Tracking the current largest width and height as the widths and heights are
built up should be faster and avoids the exception.
@davidspencerward
Copy link
Author

davidspencerward commented Oct 14, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants