Coder Social home page Coder Social logo

Comments (5)

nidi3 avatar nidi3 commented on May 18, 2024

Good point! Merging as soon as the pull request is ready.

from graphviz-java.

nidi3 avatar nidi3 commented on May 18, 2024

Thanks for the PR, it's merged.

from graphviz-java.

luxmar avatar luxmar commented on May 18, 2024

I get the error

Exception in thread "main" guru.nidi.graphviz.engine.GraphvizException: abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info.

despite

setting the total memory size by using toalMemory

Graphviz.fromGraph(g).totalMemory(999999999).render(Format.SVG).toFile(new File("ex1.svg"));

Do you have a working example how to use it?

from graphviz-java.

nidi3 avatar nidi3 commented on May 18, 2024

This is working for me (with an even number like 1000000000). Are you using the latest version? Which GraphvizEngine?

from graphviz-java.

luxmar avatar luxmar commented on May 18, 2024

Thank you very much for your answer. It works now. I was indeed not using the latest version.
I was working with version 0.8.1 instead of version 0.10.1

from graphviz-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.