Coder Social home page Coder Social logo

Error when generating graph about viz-js HOT 3 CLOSED

mdaines avatar mdaines commented on May 20, 2024
Error when generating graph

from viz-js.

Comments (3)

LBierkandt avatar LBierkandt commented on May 20, 2024

I encountered the same error; perhaps another example helps pinning down the problem:

I get the error when trying to generate the following graph with dot:

digraph G{
    type="digraph";
    rankdir="TB";
    3->5[label="e1",color="#00cc00",constraint="false",fontcolor="#00cc00"]
    5->4[label="e2",color="#00cc00",constraint="false",fontcolor="#00cc00"]
    10->5[label="e3",color="#00cc00",constraint="false",fontcolor="#00cc00"]
    10->8[label="e6",color="#00cc00",constraint="false",fontcolor="#00cc00"]
    3->4[style="invis"]
    4->5[style="invis"]
    5->6[style="invis"]
    6->7[style="invis"]
    7->8[style="invis"]
    8->9[style="invis"]
    9->10[style="invis"]
    10->11[style="invis"]
    subgraph tokens{
        rank="same";
        3[label="t1",shape="box"]
        4[label="t2",shape="box"]
        5[label="t3",shape="box"]
        6[label="t4",shape="box"]
        7[label="t5",shape="box"]
        8[label="t6",shape="box"]
        9[label="t7",shape="box"]
        10[label="t8",shape="box"]
        11[label="t9",shape="box"]
    }
}

The stacktrace:
InternalError: uncaught exception: abort() at jsStackTrace@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:5:20800 stackTrace@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:5:20983 abort@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:28:5424 _abort@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:5:603385 O4@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:21:14501 zf@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:11:124669 sf@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:11:120869 gF@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:9:172924 ec@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:11:882 ccallFunc@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:5:8075 render@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:62:25 Viz@http://mdaines.github.io/viz.js/bower_components/viz.js/viz.js:44:14 onmessage@http://mdaines.github.io/viz.js/worker.js:4:16 If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

Graph generation works as soon as you remove one of the visible edges.

from viz-js.

LBierkandt avatar LBierkandt commented on May 20, 2024

This is actually an instance of the bug reported in #65.

from viz-js.

mdaines avatar mdaines commented on May 20, 2024

Addressed in 2257a40.

from viz-js.

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.