From mtmorgan at fhcrc.org  Mon Feb 16 22:06:29 2009
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Mon, 16 Feb 2009 13:06:29 -0800
Subject: [Rd] Newbie - how do I debug a crash of RGUI.EXE
In-Reply-To: <82377DC24E19614291D0B5A4A89DAD74DBAD4B@e2k3ms5.urmc-sh.rochester.edu>
	(Fraser Sim's message of "Mon, 16 Feb 2009 14:43:47 -0500")
References: <82377DC24E19614291D0B5A4A89DAD74DBAD4B@e2k3ms5.urmc-sh.rochester.edu>
Message-ID: <6phprhixfai.fsf@gopher4.fhcrc.org>

"Sim, Fraser" <Fraser_Sim at urmc.rochester.edu> writes:

> Hi-
>
> I'm running Vista64 Business and trying to use a package called
> RGraphViz. Unfortunately, when I try to plot a graph using this package
> it causes RGUI.EXE to crash. This package has no problem working in
> WinXP 32-bit. 
>
> Is there any way to get useful information as to why it crashes?
>
> Here's my commands:
>
>> library(Rgraphviz)
> Loading required package: graph
> Loading required package: grid
> Warning message:
> In fun(...) : Rgraphviz built with Graphviz version 2.20.
> Found Graphviz version 2.21.

It might be worth while to match your Graphviz with the one Rgraphviz
was built against (2.20) -- the problem is almost certainly at the C
level where this could matter.

Duncan Murdoch has hints here

http://www.stats.uwo.ca/faculty/murdoch/software/debuggingR/

If 'newbie' means an inexperienced C programmer then this will be a
lot of work. A first step will be to install tools required to build R
from source, and to rebuild Rgraphviz from source with flags set to
generate debugging information. Again Duncan's pages will come in
handy.

Hope that helps.

Martin

>> sessionInfo()
> R version 2.9.0 Under development (unstable) (2009-01-21 r47661)
> i386-pc-mingw32 
>
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
> States.1252;LC_MONETARY=English_United
> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods
>
> [8] base     
>
> other attached packages:
> [1] Rgraphviz_1.21.7 graph_1.21.3    
>
> loaded via a namespace (and not attached):
> [1] cluster_1.11.12 tools_2.9.0    
>>
>
>
> I then define a graph using the following
>
> G = new("graphNEL", nodes = c("A","B","C"))
> plot(G)
>
> And RUI.exe crashes...
>
> Any help would be most appreciated.
>
> Thanks,
> Fraser
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M2 B169
Phone: (206) 667-2793



[Rd] Newbie - how do I debug a crash of RGUI.EXE
Martin Morgan