Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002086graphvizDotty/Lneato/Leftypublic2011-04-28 14:002011-04-28 14:02
Reporterdperry 
Assigned Toerg 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusassignedResolutionopen 
PlatformOS*-Linux-UbuntuOS Version
Summary0002086: dotty fails to display graph
DescriptionDotty fails to show the render a graph:


[email protected]:~/r/papers/fpga_articles/0_FPGA_Intro$ cat graph.g | dotty -
graph parser: syntax error near line 19
context: >>> SDK <<< Intro:
dotty.lefty: giving up on dot
dotty.lefty: graph that causes dot
dotty.lefty: to fail has been saved in file dottybug.dot
dotty.lefty: please fill out a bug report at
dotty.lefty: http://www.graphviz.org/bugs/bugform.html [^]

"dot", however, can render the graph without a problem and correct image is created:


dot -Tpng graph.g > graph.png
dot -Tpng graph.g > graph.jpg
[email protected]:~/r/papers/fpga_articles/0_FPGA_Intro$
Additional Information
Dotty's version:

[email protected]:~/r/papers/fpga_articles/0_FPGA_Intro$ dotty -V dotty version 96c (09-24-96) lefty version 10 Mar 2005 graphviz version 2.20.2 (Tue Mar 2 21:46:26 UTC 2010)

[erg] I'm not sure you sent the correct input graph. The error message from dotty reports


> graph parser: syntax error near line 19
> context: >>> SDK <<< Intro:

but the input graph contains nothing like SDK or Intro. So it is hard for me to make any particular suggestions.

However, the 2.20 version of Graphviz is almost 3 years old, and we have made various fixes to dotty during that time, so you should probably update your version and try again.

Finally, we hope to have the 2.28 release out shortly. Dotty will still be in that release, but its use is deprecated. It still has many quirks, and its author probably won't be making any significant changes. We recommend using the gvedit program instead.

[koszek] I have installed whatever Ubuntu has in its package collection. No idea why it's so old - my system is being updated on a regular basis.

I have just submited file which dotty reported as buggy. This is the file that comes from the bug report printed by dotty.

The original file "graph.g", which I use like that:


    [email protected]:~/r/papers/fpga_articles/0_FPGA_Intro$ cat
    graph.g | /usr/bin/dotty -
    graph parser: syntax error near line 19
    context: >>> SDK <<< Intro:
    dotty.lefty: giving up on dot
    dotty.lefty: graph that causes dot
    dotty.lefty: to fail has been saved in file dottybug.dot
    dotty.lefty: please fill out a bug report at
    dotty.lefty: http://www.graphviz.org/bugs/bugform.html [^]

Is below:


digraph test123 {
        rankdir=LR;
        bgcolor=black;
        edge [
                color=orange
        ];
        node [
                peripheries=2,
                style=filled,
                bgcolor=gray,
                color=white,
                fontsize=10,
                fontcolor=black,
                shape=circle
        ];

"HW" -> "SW"; }

If you need anything else, let me know.

[erg]


> I have installed whatever Ubuntu has in its package collection. No idea why
> it's so old - my system is being updated on a regular basis.
>

That is up to the people who maintain the Ubuntu packages. You might want to ask for them to update the software.


> I have just submited file which dotty reported as buggy. This is the file
> that comes from the bug report printed by dotty.
>
> The original file "graph.g", which I use like that:
>
> [email protected]:~/r/papers/fpga_articles/0_FPGA_Intro$ cat
> graph.g | /usr/bin/dotty -
> graph parser: syntax error near line 19
> context: >>> SDK <<< Intro:

My problem is that dotty is reporting a syntax error in the input it receives. In particular, it is reporting that somewhere around line 19, it is seeing the text "SDK Intro:". But your input graph does not contain those words.

What happens if you don't cat the file but just run

dotty graph.g

? Can you send me the file dottybug.dot that dotty produces?

[koszek] Same error. I know it doesn't make sense. I know there's no "SDK" anywhere there. But the "dottybug.dot" which you ask me about below is what I have submitted in a bug report.

So you should have thisfile already.

The file which I pasted in the e-mail is a input file which I either send through pipe to dotty, or which I use as "dotty graph.g".

Just try to repaste it in your file and see if your dotty produces the same bug. If it doesn't it might be just my old dotty's version.

[erg]

No, dotty works fine for me.

One possibility is that dotty, as a shell script, causes a shell program to be created, and sometimes this produces output which gets read by dotty. See


  http://www.graphviz.org/bugs/b549.html [^]

This same problem has arisen multiple times.

Beyond that, I have no idea what to recommend beyond building your own copy of graphviz or getting the ubuntu people to update the package.

[koszek] Thanks for help. Will try to solve this problem on my own. Wanted to exclude software's fault.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILEhttp://www.graphviz.org/bugs/b2174.gv [^]
OUTPUT-FILE
STATUS-COMMENT
VERSION     2.20.2
Attached Files? file icon b2174.gv (Attachment missing)

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 14:00 dperry New Issue
2011-04-28 14:00 dperry Status new => assigned
2011-04-28 14:00 dperry Assigned To => erg
2011-04-28 14:02 dperry File Added: b2174.gv


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