Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000245graphvizGrappapublic2003-07-03 20:142011-04-28 04:02
ReporterJeremy Y. Meng 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-RedHat 7.1OS Version
Summary0000245: grappa can not parse dot files containing "ranksep"?
Description



dg_0.dot is the first digraph from AT&T directed graphs. (got from www.graphdrawing.org.)
<CD>
$java Demo dg_0.dot



Exception: value of attribute "ranksep" is not an instance of String
java.lang.IllegalArgumentException: value of attribute "ranksep" is not an instance of String
    at att.grappa.Attribute.copyValue(Attribute.java:664)
    at att.grappa.Attribute.setValue(Attribute.java:217)
    at att.grappa.Attribute.<init>(Attribute.java:114)
    at att.grappa.Subgraph.setNodeAttribute(Subgraph.java:354)
    at att.grappa.Subgraph.setNodeAttribute(Subgraph.java:293)
    at att.grappa.CUP$Parser$actions.attrStmt(Parser.java:603)
    at att.grappa.CUP$Parser$actions.CUP$Parser$do_action(Parser.java:1138)
    at att.grappa.Parser.do_action(Parser.java:223)
    at java_cup.runtime.lr_parser.parse(lr_parser.java:568)
    at Demo12.doDemo(Demo12.java:44)
    at Demo12.main(Demo12.java:34)
</CD>
Additional Information

[john] The problem is that the user used ranksep as a node
attribute instead of as a
graph attribute. This mistake uncovered a bug in Grappa where it converted the
value to a double since that is how a subgraph would use it, but then assumes
the value should be a string because it is being used with a node and therefore
no longer a special attribute as far as Grappa is concerned. I corrected
Subgraph.java and pushed out an update. The user has another mistake in the
file where they set shape to "1.25", but that Grappa prints a reasonable
exception message in that case.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID320
INPUT-FILEhttp://www.graphviz.org/bugs/b320.dot [^]
OUTPUT-FILE
STATUS-COMMENTFixed (7 July 2003)
VERSION     
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker