graphviz issueshttps://gitlab.com/graphviz/graphviz/-/issues2020-06-06T22:31:52Zhttps://gitlab.com/graphviz/graphviz/-/issues/1380Incorrect links to repos on webpage2020-06-06T22:31:52ZPatrykIncorrect links to repos on webpageOn webpage http://www.graphviz.org/download/
some repo links are incorrect:
* http://204.178.9.49/Download_linux_ubuntu.php
* https://packages.ubuntu.com/precise/graphics/graphviz
* https://packages.ubuntu.com/raring/graphics/graphvizOn webpage http://www.graphviz.org/download/
some repo links are incorrect:
* http://204.178.9.49/Download_linux_ubuntu.php
* https://packages.ubuntu.com/precise/graphics/graphviz
* https://packages.ubuntu.com/raring/graphics/graphvizhttps://gitlab.com/graphviz/graphviz/-/issues/1376svg output displays TITLE of %3 if graph had no name2020-07-19T09:23:55Zsteve roushsvg output displays TITLE of %3 if graph had no nameA graph with no ID (no name) results in an SVG output file with %3 as the TITLE.
It appears that "agnameof" in lib/cgraph/id.c is returning "%3".A graph with no ID (no name) results in an SVG output file with %3 as the TITLE.
It appears that "agnameof" in lib/cgraph/id.c is returning "%3".Magnus JacobssonMagnus Jacobssonhttps://gitlab.com/graphviz/graphviz/-/issues/1370Integration into oss-fuzz?2021-09-02T15:23:31ZNelson ElhageIntegration into oss-fuzz?Hi,
I've been experimenting with fuzzing graphviz, and am interested in submitting an integration to Google's [oss-fuzz](https://github.com/google/oss-fuzz). Would there be interest from the maintainers in such an integration?
The end ...Hi,
I've been experimenting with fuzzing graphviz, and am interested in submitting an integration to Google's [oss-fuzz](https://github.com/google/oss-fuzz). Would there be interest from the maintainers in such an integration?
The end result would be that oss-fuzz would be continually fuzzing graphviz, and periodically reporting any crashes it finds to the maintainers.
If there's interest, what contact address should I put on the integration to receive emails containing crash reports and other ongoing information about the fuzzer?https://gitlab.com/graphviz/graphviz/-/issues/1366Ubuntu linux install instructions (Download links broken)2020-06-06T22:32:37ZMikko RusanenUbuntu linux install instructions (Download links broken)It seems that linux download links are broken in here http://www.graphviz.org/download/. How should we install graphviz software if we can't download .deb packages?It seems that linux download links are broken in here http://www.graphviz.org/download/. How should we install graphviz software if we can't download .deb packages?https://gitlab.com/graphviz/graphviz/-/issues/1362No Windows package for 2.40.12020-06-27T00:15:06Zian hendryNo Windows package for 2.40.1There are sources for the latest version of graphviz 2.40.1.
However the latest stable windows package available for download is 2.38.
Will there be one available soon or is there a reason for this?There are sources for the latest version of graphviz 2.40.1.
However the latest stable windows package available for download is 2.38.
Will there be one available soon or is there a reason for this?https://gitlab.com/graphviz/graphviz/-/issues/1358Linux download links use raw IP addresses2020-06-08T01:21:52ZGabriel SmithLinux download links use raw IP addressesThe official download links for Linux found at "https://www.graphviz.org/download/" use IP addresses. These IP addresses also point to nothing, if that matters.The official download links for Linux found at "https://www.graphviz.org/download/" use IP addresses. These IP addresses also point to nothing, if that matters.https://gitlab.com/graphviz/graphviz/-/issues/1357When using HTML table and port, arrows are sometimes misplaced2023-04-18T14:51:30ZarnaudroquesWhen using HTML table and port, arrows are sometimes misplacedThe following example should draw 3 nodes with 2 edges.
```
@startuml
digraph unix {
sh0004 [shape=rect,label="4"];
sh0005 [shape=rect,label=<<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD></TD><TD FIXEDSIZE="...The following example should draw 3 nodes with 2 edges.
```
@startuml
digraph unix {
sh0004 [shape=rect,label="4"];
sh0005 [shape=rect,label=<<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD></TD><TD FIXEDSIZE="TRUE" WIDTH="1.0" HEIGHT="18"></TD><TD></TD></TR><TR><TD FIXEDSIZE="TRUE" WIDTH="22" HEIGHT="1"></TD><TD BGCOLOR="#0000bb" FIXEDSIZE="TRUE" WIDTH="18" HEIGHT="18" PORT="h"></TD><TD FIXEDSIZE="TRUE" WIDTH="22" HEIGHT="1"></TD></TR><TR><TD></TD><TD FIXEDSIZE="TRUE" WIDTH="1" HEIGHT="18"></TD><TD></TD></TR></TABLE>>];
sh0006 [shape=rect,label="6"];
#This link in red should have no arrow
sh0004->sh0005:h[arrowtail=none,arrowhead=none,minlen=0,color="#FF0000"];
#This link in gree should have one arrow
sh0005:h->sh0006[arrowtail=empty,arrowhead=none,arrowsize=0.5,minlen=0,color="#00FF00"];
}
@enduml
```
When generated with GraphViz 2.38.0:
* The first link (in red) has an arrow (it should not)
* The second link (in green) has no arrow (it should)https://gitlab.com/graphviz/graphviz/-/issues/1356SEGV for input file with two digraphs2021-03-21T22:40:16ZFederico Bondfedericobond@gmail.comSEGV for input file with two digraphsThe following input causes the dot command to access invalid memory sometimes:
```
digraph A {
}
digraph B {
}
```
Tested in macOS 10.13.3The following input causes the dot command to access invalid memory sometimes:
```
digraph A {
}
digraph B {
}
```
Tested in macOS 10.13.3https://gitlab.com/graphviz/graphviz/-/issues/1353pic output broken?2023-01-22T00:31:43ZBernhard Fissenipic output broken?I do not really manage to get `-Tpic` to output anything useful (dot 2.38.0 and 2.40.1 on Linux, [groff](https://www.gnu.org/software/groff/) 1.22.3, but does not work with [Heirloom troff](https://github.com/n-t-roff/heirloom-doctools) ...I do not really manage to get `-Tpic` to output anything useful (dot 2.38.0 and 2.40.1 on Linux, [groff](https://www.gnu.org/software/groff/) 1.22.3, but does not work with [Heirloom troff](https://github.com/n-t-roff/heirloom-doctools) either).
# Almost works: Very simple graph:
```dot
digraph {
a -> b;
a -> c;
}
```
Calling
```sh
dot -Tpic a.dot |groff -step >a.ps
```
I get:
```
pic:stdin:12: width specified for picture with zero width
pic:stdin:12: height specified for picture with zero height
pic:stdin:12: syntax error before '.'
pic:stdin:12: giving up on this picture
```
The syntax errors are due to in-line comments starting with ` .\"` instead of `\"` only.
Fixing these (moving the comment to the next line) works.
# Fails: Moderately simple graph
However, the following file:
```dot
digraph {
a[label="A"]
b[label="B"]
a -> b;
a -> c;
}
```
does not. Even after fixing the comments, I get:
```
pic:./b.pic:43: width specified for picture with zero width
pic:./b.pic:43: height specified for picture with zero height
pic:./b.pic:43: syntax error before '.'
pic:./b.pic:43: giving up on this picture
```https://gitlab.com/graphviz/graphviz/-/issues/1352Windows installer does not register plugins2020-10-07T06:42:29ZDavid CookWindows installer does not register pluginsI just downloaded a Windows installer from a recent Appveyor build (2.41.20180302.1211) and the first time I ran dot.exe with arguments, including `-Tsvg`, it told me that svg was not a supported output type. I then ran dot.exe without a...I just downloaded a Windows installer from a recent Appveyor build (2.41.20180302.1211) and the first time I ran dot.exe with arguments, including `-Tsvg`, it told me that svg was not a supported output type. I then ran dot.exe without arguments, and got an error message suggesting I run `dot -c` as an administrator to register plugins. I did this, and then I was able to render graphs.
The Windows installer should run this command during the installation process to improve ease of use.Magnus JacobssonMagnus Jacobssonhttps://gitlab.com/graphviz/graphviz/-/issues/1348`xlabel` not centered in horizontal graph2022-07-07T16:19:26ZJohn Szwast`xlabel` not centered in horizontal graphWhen I make a horizontal graph with `xlabel` attributes on edges they are not centered. The labels are right-justified with the center of the edges. I have tried PNG, SVG, and PDF output and they are all affected. I am using dot 2.38 ...When I make a horizontal graph with `xlabel` attributes on edges they are not centered. The labels are right-justified with the center of the edges. I have tried PNG, SVG, and PDF output and they are all affected. I am using dot 2.38 on Windows 7.
digraph G {
rankdir=LR;
0 -> 1 [xlabel="label"];
1 -> 0 [xlabel="label"];
}https://gitlab.com/graphviz/graphviz/-/issues/1342Cylinder Shape2021-05-30T05:11:54ZSGCylinder ShapeHi,
I am using the version 2.38 and the node shape type cylinder doesn't work. I searched for 'cylinder' but couldn't find any issue. I wonder if this issue is addressed already.
Best,
SerhatHi,
I am using the version 2.38 and the node shape type cylinder doesn't work. I searched for 'cylinder' but couldn't find any issue. I wonder if this issue is addressed already.
Best,
Serhathttps://gitlab.com/graphviz/graphviz/-/issues/1331Static Windows Build2024-02-25T00:10:57ZZoey Gerrit PriggeStatic Windows BuildHi,
I am trying to produce a static Windows build resulting in a single dot_static.exe. I have managed using cygwin and ./configure --enable-static, however this results in a dependency to cygwin's DLL. As the official Windows Build now...Hi,
I am trying to produce a static Windows build resulting in a single dot_static.exe. I have managed using cygwin and ./configure --enable-static, however this results in a dependency to cygwin's DLL. As the official Windows Build now seems to use CMake, I have tried to change the CMake files step-by-step, but have not had much luck so far - in part because I do not understand all the macros that are used to distinguish platforms.
Has this been achieved before? And could you signpost me to the necessary changes?
Thank you for the assistance.https://gitlab.com/graphviz/graphviz/-/issues/1320Graphviz crashes on Mac during render using Quartz2024-02-26T06:01:32ZLaurent SchuermansGraphviz crashes on Mac during render using QuartzThe problem can be reproduced by installing Graphviz on Mac OS High Sierra and running the following command:
`dot -v -Tpng:quartz /path/to/graph.dot -o /path/to/out.png`
graph.dot must contain the following (minimal) graph structure t...The problem can be reproduced by installing Graphviz on Mac OS High Sierra and running the following command:
`dot -v -Tpng:quartz /path/to/graph.dot -o /path/to/out.png`
graph.dot must contain the following (minimal) graph structure to reproduce the bug:
```
digraph {
imgnode[image="/path/to/some-image.png", label=""];
}
```
As seen in the tracelog below, the error is raised when dot tries to load an image into the graph. The error takes place in libgvplugin_quartz when embedding some-image.png in the resulting graph PNG using gvloadimage_quartz:
Source code: https://gitlab.com/graphviz/graphviz/blob/master/plugin/quartz/gvloadimage_quartz.c at line 130.
Upgrading Graphviz, Quartz or Mac OS does not seem to have any effect, so the question is: why does this error occur and how to fix it? Is the error caused by me or is this a bug in Graphviz or Mac OS? I cannot seem to find any solutions online except for a bug report which hasn't been active for a while: https://github.com/Homebrew/homebrew-core/issues/18684
Dot tracelog:
```
dot[11528:2474068] +[__NSCFConstantString length]: unrecognized selector sent to class 0x7fffa240c578
dot[11528:2474068] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[__NSCFConstantString length]: unrecognized selector sent to class 0x7fffa240c578'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff4811200b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff6ececc76 objc_exception_throw + 48
2 CoreFoundation 0x00007fff481aac14 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fff480883f0 ___forwarding___ + 1456
4 CoreFoundation 0x00007fff48087db8 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x00007fff48025914 CFStringCompareWithOptionsAndLocale + 68
6 ImageIO 0x00007fff4a976ad0 _ZN17IIO_ReaderHandler15readerForUTTypeEPK10__CFString + 52
7 ImageIO 0x00007fff4a94ac94 _ZN14IIOImageSource14doBindToReaderEv + 434
8 ImageIO 0x00007fff4a94b30d _ZN14IIOImageSource18createImageAtIndexEmP13IIODictionary + 39
9 ImageIO 0x00007fff4a93906b CGImageSourceCreateImageAtIndex + 237
10 libgvplugin_quartz.6.dylib 0x0000000108ef648b memory_data_consumer_get_byte_pointer + 699
11 libgvc.6.dylib 0x0000000108e26afa gvloadimage + 250
12 libgvc.6.dylib 0x0000000108e24e58 gvrender_usershape + 1080
13 libgvc.6.dylib 0x0000000108e4cd5a html_port + 4186
14 libgvc.6.dylib 0x0000000108e492cc emit_html_label + 524
15 libgvc.6.dylib 0x0000000108e50569 emit_label + 57
16 libgvc.6.dylib 0x0000000108e5f187 find_user_shape + 10151
17 libgvc.6.dylib 0x0000000108e3edda getObjId + 2778
18 libgvc.6.dylib 0x0000000108e435ae emit_graph + 3998
19 libgvc.6.dylib 0x0000000108e45a51 gvRenderJobs + 6673
20 dot 0x0000000108e1dc95 dot + 11413
21 libdyld.dylib 0x00007fff6f8dc115 start + 1
22 ??? 0x0000000000000004 0x0 + 4
)
libc++abi.dylib: terminating with uncaught exception of type NSException
```https://gitlab.com/graphviz/graphviz/-/issues/1304Chocolatey package graphviz.portable does not install2020-09-08T02:12:09ZJordan BrownChocolatey package graphviz.portable does not install```
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> choco install graphviz.portable
Chocolatey v0.10.8
Installing the following packages:
graphviz.portable
By installing you acce...```
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> choco install graphviz.portable
Chocolatey v0.10.8
Installing the following packages:
graphviz.portable
By installing you accept licenses for the packages.
Progress: Downloading graphviz.portable 2.38.20170103... 100%
graphviz.portable v2.38.20170103 [Approved]
graphviz.portable package files install completed. Performing other installation steps.
The package graphviz.portable wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[N]o/[P]rint): Y
Attempt to get headers for http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.38.zip failed.
The remote file either doesn't exist, is unauthorized, or is forbidden for url 'http://www.graphviz.org/pub/graphviz/s
table/windows/graphviz-2.38.zip'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an e
rror: (404) Not Found."
Downloading graphviz.portable
from 'http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.38.zip'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'http://www.graphviz.org/pub/graph
viz/stable/windows/graphviz-2.38.zip'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned
an error: (404) Not Found."
This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn.
The install of graphviz.portable was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\graphviz.portable\tools\chocolateyInstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- graphviz.portable (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\graphviz.portable\tools\chocolate
yInstall.ps1'.
See log for details.
PS C:\WINDOWS\system32>
```https://gitlab.com/graphviz/graphviz/-/issues/1303Segmentation fault for a node with rank=sink that is not connected to other n...2021-03-21T18:00:56ZAlexander GaraninSegmentation fault for a node with rank=sink that is not connected to other nodesWhen there is a node with *rank=sink* and some others with different ranks (*rank=same* in my instance), then this "sink-node" have to be connected to any of "not-sink-nodes", otherwise graphviz fails with **Segmentation Fault**.
Additio...When there is a node with *rank=sink* and some others with different ranks (*rank=same* in my instance), then this "sink-node" have to be connected to any of "not-sink-nodes", otherwise graphviz fails with **Segmentation Fault**.
Additionally, if there are several "sink-nodes", only one of them has to be connected to "non-sink" nodes.
I attached two files as examples.
Environment: dot - graphviz version 2.40.1 (20161225.0304), Fedora 27
[fails](/uploads/c860b8974a2b633d06d76e5f6ec459eb/bad.dot)
[works](/uploads/c9c29314b48ee22ea166e49663df285c/good.dot)https://gitlab.com/graphviz/graphviz/-/issues/1298Windows 10 linux?2020-03-18T16:15:20ZKevin CoelhoWindows 10 linux?Running ConEmu, bash.exe on windows subsystem linux. Stack trace below, not sure what's going on.
python2 graph_edditor.py
Traceback (most recent call last):
File "graph_edditor.py", line 15, in <module>
import graph_printer
Fi...Running ConEmu, bash.exe on windows subsystem linux. Stack trace below, not sure what's going on.
python2 graph_edditor.py
Traceback (most recent call last):
File "graph_edditor.py", line 15, in <module>
import graph_printer
File "/mnt/c/Users/katc/Documents/work/crowdamp/Compass/graph_printer.py", line 74, in <module>
printGraph()
File "/mnt/c/Users/katc/Documents/work/crowdamp/Compass/graph_printer.py", line 72, in printGraph
graph.view()
File "/usr/local/lib/python2.7/dist-packages/graphviz/files.py", line 202, in view
cleanup=cleanup)
File "/usr/local/lib/python2.7/dist-packages/graphviz/files.py", line 181, in render
self._view(rendered, self._format)
File "/usr/local/lib/python2.7/dist-packages/graphviz/files.py", line 217, in _view
view_method(filepath)
File "/usr/local/lib/python2.7/dist-packages/graphviz/backend.py", line 223, in view_unixoid
subprocess.Popen(['xdg-open', filepath])
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directoryhttps://gitlab.com/graphviz/graphviz/-/issues/1296How to increase the separation/gap between parallel edges, in Graphviz2020-07-29T23:21:28ZBhshitha Nandun GamageHow to increase the separation/gap between parallel edges, in GraphvizI am rendering a graph which is written in dot language, using the Neato layout engine in graphviz.
My graph consisting with orthogonal lines and, I am facing a problem of lying the parallel edges too close to each other.
Please refer ...I am rendering a graph which is written in dot language, using the Neato layout engine in graphviz.
My graph consisting with orthogonal lines and, I am facing a problem of lying the parallel edges too close to each other.
Please refer the following diagram
![Screen_Shot_2017-12-02_at_1.50.38_PM](/uploads/9c0b05947bf78be4c17ebb230a32adf5/Screen_Shot_2017-12-02_at_1.50.38_PM.png)
In above diagram, horizontal parallel edges between node1 and node2 lies too close to each other.
I would be really glad if someone can give me an idea on how to introduce a gap/space in between parallel edges, in order to make the graph looks more clearer.
Following is the dot language code, that I used to render node1 and node2.
digraph G { graph[size="70,20.25"]
splines=ortho;
edge[style=solid, penwidth="10",labeldistance="10"];
node [style="rounded,filled"];
node1 [ pos = "2369.7957583862712,8520.228273052428!", fontsize=300, shape = box, fixedsize=true, width=20, height=20 ];
node2 [ pos="2314.7097320138455,8503.38134510704!", fontsize=300, shape = box, fixedsize=true, width=21, height=28 ];
node1 -> node2[taillabel="99", headlabel="25" , fontsize=100];
node1 -> node2[taillabel="29", headlabel="49" , fontsize=100];
node1 -> node2[taillabel="36", headlabel="07" , fontsize=100];
node1 -> node2[taillabel="62", headlabel="37" , fontsize=100];
node2 -> node1[taillabel="251", headlabel="21" , fontsize=100];
node2 -> node1[taillabel="140", headlabel="30" , fontsize=100];
node2 -> node1[taillabel="21", headlabel="05" , fontsize=100];
node2 -> node1[taillabel="35", headlabel="57" , fontsize=100];
}https://gitlab.com/graphviz/graphviz/-/issues/1291bus error when dot is run in parallel2020-07-20T01:30:04ZNanda Gopalbus error when dot is run in parallelWhen multiple dot sessions are run in parallel, each appears to refresh the fontconfig file in the user's home directory, and this can cause Bus errors. Is there a way to turn off the cache file refresh? Running fc-cache before invokin...When multiple dot sessions are run in parallel, each appears to refresh the fontconfig file in the user's home directory, and this can cause Bus errors. Is there a way to turn off the cache file refresh? Running fc-cache before invoking dot in parallel did not help.https://gitlab.com/graphviz/graphviz/-/issues/1286Add links to cairo pdf output2018-11-25T19:35:41ZAdrian JohnsonAdd links to cairo pdf outputHere's a patch I used to test graphviz with cairo pdf links. PDF links feature is not yet in a stable release of cairo. Links are in the current cairo 1.15.8 snapshot. The patch is only a prototype I used for testing. It probably should ...Here's a patch I used to test graphviz with cairo pdf links. PDF links feature is not yet in a stable release of cairo. Links are in the current cairo 1.15.8 snapshot. The patch is only a prototype I used for testing. It probably should check the size of the url.
Also, the no white background option should be enabled for PDF. PDFs have a transparent background. The viewer will always render on top of a white background. The transparent background is useful in case you want to use a PDF file like an EPS file.
[link.diff](/uploads/054e9d1d4f5fdf0768da70538b61193c/link.diff)