[R-SIG-Mac] Rgraphviz installation problem

Rob J Goedman goedman at mac.com
Sat Aug 19 06:47:14 CEST 2006


I  see the exact same behavior. In this example, plot(g1, "dot")  
works fine, but as soon as "neato"
or "twopi" is selected:

Host Name:      Robs-Laptop
Date/Time:      2006-08-18 21:29:07.564 -0700
OS Version:     10.4.7 (Build 8J135)
Report Version: 4

Command: R
Path:    /Users/rob/Projects/Mac-GUI/build/Development/R.app/Contents/ 
MacOS/R
Parent:  WindowServer [99]

Version: 1.17-pre (3415)

PID:    18865
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0   libpack.2.dylib                	0x04fb50d4 packGraphs + 240  
(pack.c:778)
1   libpack.2.dylib                	0x04fb5324 packSubgraphs + 32  
(pack.c:827)
2   ...plugin_neato_layout.2.dylib 	0x06b5ad34 twopi_layout + 408  
(twopiinit.c:118)
3   libgvc.2.dylib                 	0x06807510 gvLayoutJobs + 100  
(gvlayout.c:69)
4   libgvc.2.dylib                 	0x0680a604 gvLayout + 64 (gvc.c:71)
5   Rgraphviz.so                   	0x04f3b754 Rgraphviz_doLayout +  
508 (Rgraphviz.c:429)
...

Happens both with the the binaries from Simon's web site + the  
Rgraphiz binary and if I build
them from sources.

Rob


On Aug 18, 2006, at 6:37 PM, Michael Kubovy wrote:

>
> On Aug 18, 2006, at 5:59 PM, Seth Falcon wrote:
>
>> Michael Kubovy <kubovy at virginia.edu> writes:
>>> Works perfectly!
>>>
>>> Except:
>>>
>>> library(Rgraphviz)
>>> set.seed(123)
>>> V <- letters[1:10]
>>> M <- 1:4
>>> g1 <- randomGraph(V, M, .2)
>>> plot(g1, "neato")
>>>
>>> Crashes R:
>>>
>>>  *** caught bus error ***
>>> address 0x0, cause 'invalid alignment'
>>
>> Hmm, I suspect your are getting caught by having more than one  
>> version
>> of graphviz installed on your system.  Here are a few things to  
>> try...
>>
>> In R, do:
>>
>> rglibs <- system.file("libs/Rgraphviz.so", package="Rgraphviz")
>> system(paste("otool -L", rglibs))
>>
>> This will only work, I suspect, if you have the Xcode tools installed
>> already, but it should tell you which version of graphviz, your
>> Rgraphviz is linked against.
>
> No such luck. AFAIK, I have Xcode (I downloaded the latest developer
> tools recently), but:
>
>> rglibs <- system.file("libs/Rgraphviz.so", package="Rgraphviz")
>> system(paste("otool -L", rglibs))
>> rglibs
> [1] ""
>
> The system command returned nothing.
>
> _____________________________
> Professor Michael Kubovy
> University of Virginia
> Department of Psychology
> USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
> Parcels:    Room 102        Gilmer Hall
>          McCormick Road    Charlottesville, VA 22903
> Office:    B011    +1-434-982-4729
> Lab:        B019    +1-434-982-4751
> Fax:        +1-434-982-4766
> WWW:    http://www.people.virginia.edu/~mk9y/
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list