Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002016graphvizDotpublic2011-01-04 07:232011-04-28 04:03
ReporterGanesh 
Assigned ToArif Bilgin 
PrioritynormalSeveritycriticalReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOther-Windows-Windows 7OS Version
Summary0002016: dot.exe not responding for some relationship
Description
I have attached my dot file with this pls check this and let me know what is the problem in that. In dot file creation is there any limitation of relationships? Please guide me on this. When the command line excute for this dot file nothing happens its hangup. Please help me on this. Advance thanks to you.
Additional Information
Please check this dot file in command line execution and plese tell me what is the problem in this dot file, please suggest that.

[erg]
The input character set is Latin-1, not the default UTF-8. Run dot with the -Gcharset=latin1 flag, or convert the input to UTF-8.
I don't know why you didn't see any error message.

[ganesh]
Thanks for the reply sir. Actually what i got is just the dot.exe is executing the dot file without stoping it's hang up for me. Can you run the attached dot file and see why its happening like this please. Please tell me the way to correct this please.

[erg]
If you run dot.exe with the -Gcharset=latin1 flag, does it still hang?

[ganesh]
Yes still its hang :( . Please give some solution for me.

[erg]
Sorry for the delay. I checked this on a Windows XP machine, but I wanted to also check on a Windows 7 machine.

In both cases, if you run dot on your graph, an error message is printed in the console window, and it exits with no output.
If you add the -Gcharset=latin1 flag, dot runs and exits with no error and produces the expected output. So, we are
unable to replicate your problem and have no idea what is happening.

Does dot work on other graphs? What happens if you run dot with the -v flag? What does you get when you run dot -V?
What is the exact command line you use, and from what shell?

Please cc Arif <[email protected]> in your follow-ups, as he is our Windows guru.

[ganesh]
Thanks for your valuable reply sir. Actually im using this dot file in c#.net application. Following code im using for running this dot file sir.
<CD>
            String command = @"C:\Program Files\Graphviz2.26.3\bin\dot.exe";
            String mapFilePath = "my_test.map";
            String gifFilePath = "my_test.gif";
            String dotFilePath = "my_test.dot";
            String args = " -Tcmap -o" + mapFilePath + " -Tgif -o" + gifFilePath + " " + dotFilePath;
            ProcessStartInfo startInfo = new ProcessStartInfo(command, args);
            Process myprocess = new Process();
            myprocess.StartInfo = startInfo;
            myprocess.Start();
            myprocess.WaitForExit();
            myprocess.Close();
</CD>

So my command line is " -Tcmap -omy_test.map -Tgif -omy_test.gif my_test.dot" . Im not well know about the dot file and command line for that, So please help me on this sir what is the syntax for "-Gcharset=latin1" setting this flag sir.

For me other dot files are working fine without any issue. Im also dont know the syntax of -V flag sir :( . Please help me to comeout from this issue sir.

[erg]

I am unfamiliar with the use of c#.net, but it would be helpful to get it out of the way.

Try using gvEdit on your file. Or, better, start a DOS shell and run the dot command from there,
using all of your flags.

  C:\Program Files\Graphviz2.26.3\bin\dot.exe -Tcmap -omy_test.map -Tgif -omy_test.gif my_test.dot

and see if that hangs. If it does, then something is wrong in dot. If not, then the hanging is related
to the c#.net usage.

Command-line flags are just parameters starting with -. For example, -Tcmap and -omy_test.gif are
flags. Thus, to use "-Gcharset=latin1", just add it somewhere in the command line:

  C:\Program Files\Graphviz2.26.3\bin\dot.exe -Gcharset=latin1 -Tcmap -omy_test.map -Tgif -omy_test.gif my_test.dot

or, since the -G flag just sets a graph attribute, you can add the line

  charset=latin1

to your input graph.

Similarly, to use the -v flag, just run

  C:\Program Files\Graphviz2.26.3\bin\dot.exe -v -Gcharset=latin1 -Tcmap -omy_test.map -Tgif -omy_test.gif my_test.dot

You can use the -V flag the same way, but that appears unnecessary, as it is pretty clear your are indeed running
the 2.26 version.

You didn't include any of this information about c# or the extra flags in your bug report, so we didn't use them in
our tests. We'll try to replicate the problem using the added flags. Perhaps they induce the problem.

[ganesh]
I was tested using DOS command itself. Same issue exists there also. Actually, an error is in dot file only that's for sure. However, I'm not exactly found which line of the dot file is causing this issue. I run the dot file using "-Gcharset=latin1" and "-V" flag. I got some message in the command window. I attached that \<A HREF="b2101.png"\>screenshot \</A\> with this mail, please look into that and let me know I did any wrong. Still its hangs it seems :( . I attached the \<A HREF="b2101a.gv"\>dot file\</A\> too, please have a look on this and let me know if any mistake I did. Thanks a lot sir.

[erg]
Okay, I can replicate the problem on Windows7/32-bit with the second file supplied, but not with
the first. The graph can be reduced to \<A HREF="b2101b.gv"\>this\</A\>.
TagsNo tags attached.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b2101.png [^] http://www.graphviz.org/bugs/b2101a.gv [^] http://www.graphviz.org/bugs/b2101b.gv [^]
DATE-FIXED
FIX-COMMENT
FORMER-ID2101
INPUT-FILEhttp://www.graphviz.org/bugs/b2101.gv [^]
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => Arif Bilgin


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