Comments (2)
That error doesn't say much - check your browser console (in Chrome: press F12, click tab Console) and see what the output is. My guess is, it will be:
Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, or (2) set Module.TOTAL_MEMORY before the program runs.
I'm having the same issue with a rather large graph I'm trying to display. I'll let you know if I find how to set the TOTAL_MEMORY higher so it runs.
from viz-js.
Ok, not pretty - I was hoping to be able to set the TOTAL_MEMORY separately in JavaScript so that it would get picked up, but I'm not seeing how to do that.
Dirty hack: open viz.js, search for the line:
ha=e.TOTAL_MEMORY||16777216,da=4096;da<ha||da<2hc;)da=16777216>da?2da:da+16777216;
This seems to limit the process to 16 MB memory usage. (16MB = 16 * 1024 *1024 bytes = 16777216 bytes). Increase the number (three times in the above line) to get more memory available. I've needed to go up to 256 MB, which - eventually - displayed my graph. It took a few minutes to appear though.
Btw if you go really high you'll need to increase other memory limits as well, like the TOTAL_STACK (which is in viz.js just before the above referenced line). It will give you a clear error when you run into these type of limits though.
from viz-js.
Related Issues (20)
- full.render.js is broken on Realese 2.1.1 HOT 4
- Sorry, it's another rollup / typescript question HOT 16
- Name "cluster" is not allowed when format = JSON HOT 1
- node proces crash after single viz instance renderString more then 1714 times HOT 1
- Can't build w/ emscripten 1.38.25 (latest) HOT 2
- Is synchronous use still possible? HOT 1
- Update viz-js.com to use new version
- Add type definitions HOT 4
- Publish lang-dot package
- Figure out why pkg-config doesn't work as expected for Expat
- Investigate distributing a non-WASM build
- Investigate support for separate WebAssembly instantiation
- Support -x (reduce) option
- Image support in v3 HOT 6
- RuntimeError with long label starting with newline HOT 1
- Android Project HOT 1
- Types can not be imported with current package.json HOT 2
- Dynamic font Family HOT 2
- Strict mode but merge labels HOT 1
- Text not rendering in nodes HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viz-js.