After adding "pointIntervalUnit" to column chart, highcharts crashes tab with out of memory exception. #6405
Comments
Thank you for this report. Could you post also a demo which doesn't crash the browser? It's a bit hard to debug.. :) Thanks! |
Hello @pawelfus Sure: https://jsfiddle.net/06b4kvge/ :) |
Thanks! The problem is setting After removing |
You're right, removed xAxis.categories and works like a charm! Thanks. |
@pawelfus Hi! Line 745 in b9c6835 It was happen because, I believe, in Therefore I suggest to add warning in this line about big length of tickPositions array. As sample if length more than 10 000 000 |
Hi @inoyakaigor Thanks you for the suggestion! We used to throw @TorsteinHonsi |
Yes, I thought error 19 was no longer necessary after this refactoring. By default, categories will be decimated: http://jsfiddle.net/highcharts/arxqgy5e/. I'll look into the issue. |
I'm not able to reproduce it from the description - can you make changes to http://jsfiddle.net/highcharts/arxqgy5e/5/ in order to showcase the issue? |
@inoyakaigor - could you update the demo posted by Torstein? |
@pawelfus yeah I will try but later |
Can be related to #8026 |
http://jsfiddle.net/d9gu1eoj/5/ @pawelfus @TorsteinHonsi Chrome silent disconnect a devtools. Firefox write in console out of memory error |
Thank you @inoyakaigor for the demo! Simplified demo: http://jsfiddle.net/BlackLabel/twf2kqr9/ (or based on Torstein's demo: http://jsfiddle.net/BlackLabel/arxqgy5e/14/ ) @TorsteinHonsi - how should we resolve this? Prevent categories to display when |
It also fails when the type is not datetime, except it doesn't crash immediately. Maybe we need to reintroduce error 19 for cases when |
I think solution suggested by @inoyakaigor is super easy: simply when we have more than X ticks, show warning/error ? |
I think a warning should be shown if the number of ticks is greater than the width of the graph in pixels. |
…s.step option and a large data range. Re-introduced error 19.
Done. I re-introduced the old logic that fires when the potential tick-interval is more than makes sense, but unlike before, added a more graceful degradation. The axis now render two ticks (min and max) instead of crashing the whole chart, and print a warning in the console. http://jsfiddle.net/highcharts/twf2kqr9/12/ |
Expected behaviour
After adding pointIntervalUnit property to plotOptions.series, browser tab results in out of memory exception. This behavior occurs in Chrome/FF/IE. Added jsFiddle example with crashing code.
Actual behaviour
Crashes with out of memory exception.
NOTE: Changing "type":"datetime" results in freezing tab instead of out of memory exception.
Live demo with steps to reproduce
http://jsfiddle.net/720aboww/
Affected browser(s)
Chrome/FF/IE
The text was updated successfully, but these errors were encountered: