viz-js icon indicating copy to clipboard operation
viz-js copied to clipboard

RuntimeError with long label starting with newline

Open mdaines opened this issue 1 year ago • 1 comments

Rendering this graph throws an error, while rendering the same graph with Graphviz 9.0.0 works:

digraph {
  a [label="
01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"]
}

long label

But these graphs don't:

digraph {
  a [label="
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567"]
}

shorter by one character

digraph {
  a [label="01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234"]
}

longer, no initial newline

Error message:

RuntimeError: Out of bounds call_indirect (evaluating 'G.apply(null,M)')

mdaines avatar Sep 16 '23 01:09 mdaines

@mdaines have u noticed that as the length of label increases the width of eclipse increases ..after a certain point the text gets smaller and then when there is no space to fit the characters it throws this exception..

shubhankar-mern avatar Sep 28 '23 09:09 shubhankar-mern