Menu

rcdklibs(Java) causes R/rkward to crash

Help
2009-06-05
2013-01-15
  • Ralf  Tautenhahn

    Ralf Tautenhahn - 2009-06-05

    The following line works fine in the R-shell but not in rkward (version: svn today).

    library(rcdklibs)

    Loading required package: rJava

    *** caught segfault ***
    address 0x7f4453444aa0, cause 'invalid permissions'

    Traceback:
    1: .External(interface, obj@jobj, returnSig, method, ..., PACKAGE = "rJava")
    2: .jcall(ic, "Ljava/lang/reflect/Field;", "getField", "TYPE")
    3: .jinit(classpath = c(jar.cdk))
    4: f(libname, pkgname)
    5: firstlib(which.lib.loc, package)
    6: doTryCatch(return(expr), name, parentenv, handler)
    7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8: tryCatchList(expr, classes, parentenv, handlers)
    9: 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]]        if (14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") >             LONG)             prefix <- paste(prefix, "\n  ", sep = "")    }    else prefix <- "Error : "    msg <- paste(prefix, conditionMessage(e), "\n", sep = "")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),         TRUE)) {        cat(msg, file = stderr())        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error"))})
    10: try(firstlib(which.lib.loc, package))
    11: library(rcdklibs)

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

    Any ideas ?

    Thanks!
    Ralf.

     
    • Thomas Friedrichsmeier

      Hi Ralf,

      just so I know, where to start looking:
      Did this work, before? If so, when (roughly) did you last try this, successfully?

      Regards
      Thomas

       
    • Ralf  Tautenhahn

      Ralf Tautenhahn - 2009-06-11

      Hi Thomas,

      sorry, no idea. I never used this package before.

      Ralf.

       
      • Thomas Friedrichsmeier

        Ok, too bad. That looks like a really obscure problem. I do have an idea for one thing to try to address this (and a few similar) problems, but that's a lot of work, and won't happen soon (and whether it really fixes this issue, remains to be seen).

        Interestingly, this problem does not appear in RKWard on windows.

        Regards
        Thomas

         
    • Ralf  Tautenhahn

      Ralf Tautenhahn - 2009-06-23

      Just found another way to crash rkward :(
      library(RGtk2)