igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Error when loading the tkcl interface


From: Silvia Solis
Subject: Re: [igraph] Error when loading the tkcl interface
Date: Sat, 17 Nov 2012 21:25:14 -0600

Hi,

As for the info that you ask:

> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets 
[6] methods   base     

other attached packages:
[1] igraph_0.6-3

MacOS 10.8

And I couldn't find the gcc version.


I did load the igraph, and the library(tcltk) as you suggested and got the same message and options to quit R.  You are right that I don't need to start XQuarts in order to get graphics, but when I plot the window is a Quarts device.


> library(tcltk)
Loading Tcl/Tk interface ... 
 *** caught segfault ***
address 0x20044, cause 'memory not mapped'

Traceback:
 1: sys.nframe()
 2: dynGet("__NameSpacesLoading__", NULL)
 3: loadNamespace(package, c(which.lib.loc, lib.loc))
 4: doTryCatch(return(expr), name, parentenv, handler)
 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6: tryCatchList(expr, classes, parentenv, handlers)
 7: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),         TRUE)) {        cat(msg, file = stderr())        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
 8: try({    ns <- loadNamespace(package, c(which.lib.loc, lib.loc))    dataPath <- file.path(which.lib.loc, package, "data")    env <- attachNamespace(ns, pos = pos, dataPath = dataPath,         deps)})
 9: library(igraph)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

Selection: 



S



El 17/11/2012, a las 16:39, Gábor Csárdi <address@hidden> escribió:


On Sat, Nov 17, 2012 at 5:29 PM, Silvia Solis <address@hidden> wrote:
Hi,

The Quartz is apparently the graphic device in R for Mac.  

Yes, but you don't need Xquartz or even an X server to plot to a quartz device. Start start R from a terminal and type plot(1:10) and it will be plotted on a quartz device, even if you don't start an X server.

An X server is optional and only needed if you want to plot to an X11 device. Actually I was wrong and not all OSX versions have an X server included. But as I said, you don't need an X server, anyway. 
 
See sections 7 (Quartz) and 8 (Tcl/Tk issues) from this FAQ for Mac users, that's what I followed: 

You mean you did 

install.packages("igraph")

? That is good. 
 
I'm not sure if is necessary to install the Quarts in order the get the graphics,

It is not, AFAIK. I can happily plot without having the X server running.

Gabor
 
but the R console have a tab for it.  I installed the latest versions of everything, and I have the tcltk interface on my package manager. 
I'm going to try loading as you say.

Thanks for the answers, I'll let you know if it worked

S

El 17/11/2012, a las 14:10, Gábor Csárdi <address@hidden> escribió:

Hi, 

I am not sure what is XQuartz, but you don't need it at all. There is an X server in OSX, AFAIK, unless you are using a very old version. But the X server might not matter for the bug, anyway. 

What is your igraph version? R version? Output of sessionInfo()? OSX version? gcc version? Even with these, it seems hard to reproduce this bug, without these it is impossible.

Btw. if you just load the tcktk package with 'library(tcltk)', does that work?

Gabor


On Sat, Nov 17, 2012 at 12:46 PM, Silvia SM <address@hidden> wrote:
Hello,

Maybe someone can help me.  I just switch to Mac, and I'm trying to use the "tkplot" function, but I get this error and message when the program tries to load the tcl/tk interface, and I cannot continue working, I have the XQuartz 2.7.4 (xorg-server 1.13.0), and the tcltk interface and additions on my package manager list.  I'm I missing something?



> tkigraph()
Loading required package: tcltk
Loading Tcl/Tk interface ...
 *** caught segfault ***
address 0x0, cause 'unknown'

Traceback:
 1: sys.parent()
 2: sys.function(sys.parent())
 3: formals(sys.function(sys.parent()))
 4: match.arg(encoding)
 5: match(match.arg(encoding), c("", "bytes", "UTF-8"))
 6: textConnection("rval", "w", local = TRUE)
 7: capture.output(print(args(setwd)))
 8: paste(capture.output(print(args(setwd))), collapse = "")
 9: gsub("\\s+", " ", paste(capture.output(print(args(setwd))), collapse = ""))
10: doTryCatch(return(expr), name, parentenv, handler)
11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
12: tryCatchList(expr, classes, parentenv, handlers)
13: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),         TRUE)) {        cat(msg, file = stderr())        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
14: try(gsub("\\s+", " ", paste(capture.output(print(args(setwd))),     collapse = "")), silent = TRUE)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

>
Selection:
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



--
Gabor Csardi <address@hidden>     MTA KFKI RMKI

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help


_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help




--
Gabor Csardi <address@hidden>     MTA KFKI RMKI

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]