Bug 1058323 - dotty fails to render any text in graph
Summary: dotty fails to render any text in graph
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: graphviz
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-27 14:45 UTC by Daniel Berrangé
Modified: 2014-11-18 12:13 UTC (History)
5 users (show)

Fixed In Version: graphviz-2.38.0-10.fc21
Clone Of:
Environment:
Last Closed: 2014-11-17 06:33:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Upstream patch for errors (1.21 KB, patch)
2014-01-27 14:48 UTC, Daniel Berrangé
no flags Details | Diff

Description Daniel Berrangé 2014-01-27 14:45:39 UTC
Description of problem:
Try to view the sample graph from the dotty man page

eg

$ cat > b.dot
digraph test123 {
               a -> b -> c;
               a -> {x y};
               b [shape=box];
               c [label="hello\nworld",color=blue,fontsize=24,
                    fontname="Palatino-Italic",fontcolor=red,style=filled];
               a -> z [label="hi", weight=100];
               x -> z [label="multi-line\nlabel"];
               edge [style=dashed,color=red];
               b -> x;
               {rank=same; b x}
       }

$ dotty  b.dot 
dotty.lefty: draw language parser error: t
dotty.lefty: draw language parser error: t
dotty.lefty: draw language parser error: t
dotty.lefty: draw language parser error: t
dotty.lefty: draw language parser error: t
dotty.lefty: draw language parser error: t
dotty.lefty: draw language parser error: t
dotty.lefty: draw language parser error: t


it displays the graph shapes but none of the text associated with them


Version-Release number of selected component (if applicable):
graphviz-2.34.0-4.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1. dotty <any dot file>
2.
3.

Actual results:
Spews errors to stderr and doesn't display text

Expected results:
Graph displays fully with no errors

Additional info:

Comment 1 Daniel Berrangé 2014-01-27 14:48:25 UTC
Created attachment 856094 [details]
Upstream patch for errors

This patch taken from the upstream git repository "fixes" the errors printed on stderr, but for me at least text still doesn't render correctly. I just see a single pixel black dot where the text should be.

Comment 2 Christian Klomp 2014-11-03 15:40:51 UTC
After I installed xorg-x11-fonts-ISO8859-1-100dpi it correctly shows node names.

Comment 3 Christian Klomp 2014-11-09 11:57:20 UTC
Correction, I also need Graphviz from F21.
Graphviz from F21 alone only displays a dot for node names.
Together with the xorg fonts it works correctly.

$ sudo yum update graphviz --releasever=21
  Updating                : graphviz-2.38.0-9.fc21.x86_64                   1/2 
  Cleaning                : graphviz-2.34.0-8.fc20.x86_64                   2/2

Comment 4 Jaroslav Škarvada 2014-11-11 11:05:11 UTC
Thanks for the patch, the xdot1.2 is needed.

Regarding the fonts, the ISO8859-1 encoding is enforced by the fontmap in /usr/share/graphviz/lefty/dotty.lefty, so I am adding the 100dpi fonts to requirements. It already requires X, so this additional requirement shouldn't add much burden.

Comment 5 Fedora Update System 2014-11-11 13:20:26 UTC
graphviz-2.34.0-9.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/graphviz-2.34.0-9.fc20

Comment 6 Fedora Update System 2014-11-11 14:03:43 UTC
graphviz-2.38.0-10.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/graphviz-2.38.0-10.fc21

Comment 7 lnie 2014-11-12 06:33:41 UTC
graphviz-2.34.0-9.fc20 works

Comment 8 Fedora Update System 2014-11-13 18:06:25 UTC
Package graphviz-2.34.0-9.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing graphviz-2.34.0-9.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-14802/graphviz-2.34.0-9.fc20
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-11-17 06:33:36 UTC
graphviz-2.34.0-9.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2014-11-18 12:13:24 UTC
graphviz-2.38.0-10.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.