SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

1
0

Hi,

In past versions of SciChart JS I was able to run a webpack-built set of static files on an Nginx-based Docker container without issues.

I’m now seeing the error “memory access out of bounds” (screenshot attached) when doing this, and as a result does not render the charts at all, whether it’s running locally or hosted on AWS. This happens in both Chrome and Firefox.

It runs absolutely fine using webpack dev server.

The error seems to be coming from scichart2d.wasm. Any ideas?

Thanks
Joe

Version
1.2.1463
Images
  • Andrew Burnett-Thompson
    Hi Joe, no idea I’m afraid, can you help us reproduce it? We do have a known memory leak in the Wasm that we’re working on at the moment, but I’m not sure if this is related.
  • Andrew Burnett-Thompson
    Hey Joe, we’ve found and fixed a memory leak, will be publishing an update soon. Will notify you when done.
  • Joe Brady
    Hey Andrew, I’ve spent a few hours narrowing it down and eventually found that it only occurs when the chart is on a page in a React app where you’re in a second-level path, e.g. example.com/pagename is fine, but example.com/pagename/nestedpage breaks. I’m going to see if I can fix this with an improved NGINX config – I’ve got the webpack dev server rewriting requests for scichart2d.data to the root path, but I’m not convinced NGINX is doing this. Might be something you want to document? Or make SciChart automatically look for the absolute path to the .data and .wasm files, not relative?
  • Joe Brady
    Not sure if this is the solution yet, by the way – and thanks for the update about the memory leak
  • You must to post comments
1
0

Hi Joe.
If the problem with Docker is related to a second-level path. Try to add HTML base Tag like we have it on demo.scichart.com for Load 500 Series x 500 Points Performance Demo

Images
  • Joe Brady
    Thanks – weirdly that’s a new one for me – such a simple solution
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.