View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004625 | mantisbt | relationships | public | 2004-09-28 08:04 | 2005-04-18 10:43 |
Reporter | masc | Assigned To | masc | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | X86 | OS | Windows | OS Version | Win2K |
Product Version | git trunk | ||||
Fixed in Version | 0.19.1 | ||||
Summary | 0004625: Relationship graph: crash when the bug has no relationship | ||||
Description | When the bug has no relationship, the php crashes trying to open the relation graph, while it's all OK opening the dependancy graph. | ||||
Tags | No tags attached. | ||||
Attached Files | workaround for 4625.diff (669 bytes)
--- core/graphviz_api.php 2004-10-08 23:08:35.698529016 -0300 +++ core/graphviz_api.php 2004-10-08 23:13:24.448632328 -0300 @@ -270,6 +270,13 @@ # If we are under Windows, we use the COM interface provided # by WinGraphviz. Thanks Paul! + # Issue #4625: Work around WinGraphviz bug that fails with + # graphs with zero or one node. It is probably too much to + # generate a graphic output just to explain it to the user, + # so we just return a null content. + if ( count( $this->nodes ) <= 1 ) + return; + $t_graphviz = new COM( $this->graphviz_com_module ); # Check if we managed to instantiate the COM object. | ||||
Inviato memorandum a jferraz Juliano, this for you! Still problem with WinGraphViz. Marcello |
|
Hi masc, Same thing... Can't reproduce this problem here (on Linux). I can't reboot into Windows right now, but I'll do it as soon as possible to check this. It is possible that this is related to 0004614. |
|
In this case I got a fatal error box directly from PHP (it seems like a division by 0...). |
|
It's the DLL itself imo.. |
|
Juliano to avoid the crash you can disable (skip) the image generation in case of no relationships. In this way at least this bug can be fixed. |
|
Hi, |
|
$t_dot_source = 'digraph 0000055 { rankdir="LR"; node [ fontname="Arial", fontsize=8, shape="record", style="filled", height="0.2", width="0.4" ]; edge [ style="solid", color="#C00000", dir="back" ]; "0000055" [ label="0000055", color="#0000FF", style="bold, filled", fillcolor="#ffa0a0", URL="foo", tooltip="[new] 5" ]; }; "'; ^ sample source that crashes |
|
Form the notes, it seems that this issue is confirmed. So I marked it accordingly. Masc, do you want to commit your workaround, just in case we release 0.19.1 before jferraz gets a change to look at this issue. |
|
Hi, It looks like it is really a bug in WinGraphviz. Check the attached script, if i'm correct, it should cause a gpf. It happens just for WinGraphviz.neato, and only if graph has either no or a single node. It is not reproducible under either neato.exe or the linux version. I'll contact the author of WinGraphviz, and ask him to check this as soon as possible. I'll upload a workaround patch today later. If it happens that the WinGraphviz author answers in time and releases a fixed version of it, we may leave it as is and just ask Mantis users to use the latest version. |
|
Four days passed and I received no answer from the author. I'm afraid that he is not maintaining WinGraphviz anymore. |
|
think I sent an email a 'few' days before you did on the same issue. Either way, from the lack of response, and also lack of response to a previous mail (about source code / performance of wingraphviz) sent to the graphviz list by someone else, I think we can assume we aren't going to get a fast response. My understanding of the graphing is quite limited - this is an issue just with 'neato' graphs? - can we not just use 'dot' or whatever instead? Other option (in the future ) if we don't get a response, might be to look at the c# lib ( http://www.codeproject.com/cs/miscctrl/quickgraph.asp ) that someone has done, and look at using the php .net support if it doesn't expore a COM object. Either way, maybe we should add a $g_graphviz_exe to allow windows users to choose between 'some object interface' vs 'modifying their php executes files / granting access to cmd.exe' options |
|
Thanks Juliano, I will apply your workaround to CVS. At least, it avoids the crash. |
|
Commit workarount to CVS. |
|
MantisBT: master 7a7d53a6 2004-10-14 13:24 Details Diff |
Workaround to partially fix bug 0004625 git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3051 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0004625 |
|
mod - core/graphviz_api.php | Diff File |