Pre loader

WASM "memory access out of bounds" error in Docker

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.
  • Henrique Rodrigues
    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?
  • Henrique Rodrigues
    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
  • Henrique Rodrigues
    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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies