Do you have a CPU-intensive application that you're working on? Check it out here: https://codepen.io/team/amcharts/pen/47c41af971fe467b8b41f29be7ed1880
It involves a Canvas on which various elements are constantly being drawn.
Here's the HTML snippet:
<script src="https://cdn.amcharts.com/lib/5/index.js"></script>
<script src="https://cdn.amcharts.com/lib/5/xy.js"></script>
<script src="https://cdn.amcharts.com/lib/5/themes/Animated.js"></script>
<div id="chartdiv" style="width:100%; height:400px"></div>
And here's a glimpse of the JavaScript code involved:
[JavaScript code snippet]
However, running this application for an extended period seems to cause Chromium-based browsers to crash. Surprisingly, the memory-related metrics in Dev Tools don't indicate any leaks. The peculiar thing is that manipulating the chart (like zooming out or resizing the window) helps stabilize the memory usage. This issue appears only in Chromium browsers, not in Firefox. Any insights on what might be causing this would be greatly appreciated!