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
-
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.
-
Hey Joe, we’ve found and fixed a memory leak, will be publishing an update soon. Will notify you when done.
-
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?
-
Not sure if this is the solution yet, by the way – and thanks for the update about the memory leak
- You must login to post comments
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
- Michael Klishevich answered 3 years ago
- last edited 3 years ago
-
Thanks – weirdly that’s a new one for me – such a simple solution
- You must login to post comments
Please login first to submit.