Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000395graphvizDotpublic2004-05-27 00:002011-04-28 04:02
ReporterGregor Bruce 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSWindows-i386OS Version
Summary0000395: Incorrect edge label coordinate
Description



The input graph evaluated with "dot -Tdot" incorrectly places the
edge label (large negative y value):
<CD>
    P3qq219 -> P3qq220 [labelfloat=true, label="CBLqq306rq1*2",
pos="e,1366,132 1292,132 1312,132 1335,132 1356,132",
lp="1329,-2147483565"];
</CD>
The label is correctly placed if I directly generate png output.
Steps To Reproduce

digraph top {
    rankdir=LR
    fontname=Courier
    fontsize=8
    ranksep=1.0
    nodesep=0.5
    P8qq212
[shape=record,label="P8qq212|{<p1>|<p7>}|{<p2>|<p8>}|{<p3>|<p9>}|{<p4>|<p10>}|{<p5>|<p11>}|{<p6>|<p12>}"]

    P3qq213 [shape=box]
    P8qq212:p7 -> P3qq213
    P3qq214 [shape=box]
    P3qq213 -> P3qq214
    P3qq215 [shape=box]
    P3qq214 -> P3qq215
    P3qq216 [shape=box]
    P3qq215 -> P3qq216
    P5qq217
[shape=record,label="P5qq217|{<p1>|<p5>}|{<p2>|<p6>}|{<p3>|<p7>}|{<p4>|<p8>}"]

    P3qq216 -> P5qq217:p1
    P8qq212:p8 -> P5qq217:p2
[labelfloat=true,label="CBLqq305rq1*2,CBLqq306rq1*2"]
    P3qq218 [shape=box]
    P5qq217:p5 -> P3qq218 [labelfloat=true,label="CBLqq306rq1*2"]
    P3qq219 [shape=box]
    P3qq218 -> P3qq219 [labelfloat=true,label="CBLqq306rq1*2"]
    P3qq220 [shape=box]
    P3qq219 -> P3qq220 [labelfloat=true,label="CBLqq306rq1*2"]
    P5qq221
[shape=record,label="P5qq221|{<p1>|<p5>}|{<p2>|<p6>}|{<p3>|<p7>}|{<p4>|<p8>}"]

    P3qq220 -> P5qq221:p1 [labelfloat=true,label="CBLqq306rq1*2"]
    P8qq200
[shape=record,label="P8qq200|{<p1>|<p7>}|{<p2>|<p8>}|{<p3>|<p9>}|{<p4>|<p10>}|{<p5>|<p11>}|{<p6>|<p12>}"]

    P8qq200:p9 -> P8qq212:p1
[labelfloat=true,label="CBLqq307rq1*2",minlen=2]
    P8qq200:p10 -> P8qq212:p2
}
Additional Information

[erg] The problem is in clipping the path planning boxes to the spline
in dotgen/routespl.c, function routesplines, starting at line 261.
The spline is sampled and, if unlucky, no point will apply to a box,
so it will be left with LL.x = MAXINT and UR.x = MININT. To make matters
worse, the bug can be self-correcting. Even though the wrong answer
occurs in dot_splines, somehow it can disappear before code generation. The
following graph will trip the bug:
<CD>
digraph top {
    rankdir=LR
    ranksep=1.0

    P3qq218 [shape=box]
    P5qq217 -> P3qq218 [labelfloat=true label="CBLqq306rq1*2"]
}
</CD>
TagsNo tags attached.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b456.html [^]
DATE-FIXED
FIX-COMMENT
FORMER-ID456
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (11 Oct 2007)
VERSION 1.12
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 => erg


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