I updated schichart to the very last version and turn on the memory usage debug mode to see if there are any memory leaks in our application and ran into the following problem.
When MemoryUsageHelper.isMemoryUsageDebugEnabled = true;
and sciChartSurface has the following modifiers(RolloverModifier, CursorModifier) when moving the mouse over the chart I have the following console warnings.
From RolloverModifier instance
From CursorModifier instance
The message below is written on your docs about debugging, so I gues this is the case with the chart modifiers console warnings.
Usually this boils down to failing to call SciChartSurface.delete()
(or series.delete()
, annotation.delete()
when adding/removing objects) or plain JavaScript memory leaks where references to SciChart are held in the customer application & not garbage collected by the browser.
Steps To Reproduce
- Follow the codesandbox example by the link https://codesandbox.io/s/ts-band-chart-xwlxcm?file=/src/App.tsx;
- Once the chart is loaded and rendered, try moving the mouse cursor over the chart;
- Open the browser console ⇒ You will see the warnings I wrote about above.
The current behavior
Moving the mouse over the chart causes warning logs to appear in the browser console and possibly memory leaks.
The expected behavior
No warning logs while moving the mouse over the chart.
- You must login to post comments
Hello,
In the case of Rollover and Cursor Tooltips, you can ignore the warning most of the time.
You can confirm if they are actually leaking by following our guide https://www.scichart.com/documentation/js/current/TutorialReusableReactComponent.html
Also I see there are other problems with your setup so consider checking out our example of a React Chart Component https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-react-typescript
- Jim Risen answered 8 months ago
- You must login to post comments
Thanks for the reply, I’ll check with the provided guide!
As for React setup, it was forked from your codesendbox example, I just enabled debug mode and added a RolloverModifier.
- Sergey Chernyakov answered 8 months ago
- You must login to post comments
Please login first to submit.