[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 <firstname.lastname@example.org> 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.
String command = @"C:Program FilesGraphviz2.26.3bindot.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();
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.
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 FilesGraphviz2.26.3bindot.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 FilesGraphviz2.26.3bindot.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
to your input graph.
Similarly, to use the -v flag, just run
C:Program FilesGraphviz2.26.3bindot.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 screenshot with this mail, please look into that and let me know I did any wrong. Still its hangs it seems :( . I attached the dot file too, please have a look on this and let me know if any mistake I did. Thanks a lot sir.
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 this.