motifStack crashes when trying to execute one of the examples from its own documentation (from page 5 of the vignette)
Namely, the following code exactly reproduces the crash:
pcms <- readPCM(file.path(find.package("motifStack"),"extdata"),"pcm$")
motifs <- lapply(pcms,pcm2pfm)
motifStack(motifs,layout="stack",ncex=1.0)
This causes R to segfault. Below if the error message produced by R
> motifStack(motifs,layout="stack",ncex=1.0)
*** caught segfault ***
address 0x3a00000000, cause 'memory not mapped'
Traceback:
1: .Call("RS_XML_ParseTree", as.character(file), handlers, as.logical(ignoreBlanks), as.logical(replaceEntities), as.logical(asText), as.logical(trim), as.logical(validate), as.logical(getDTD), as.logical(isURL), as.logical(addAttributeNamespaces), as.logical(useInternalNodes), as.logical(isHTML), as.logical(isSchema), as.logical(fullNamespaceInfo), as.character(encoding), as.logical(useDotNames), xinclude, error, addFinalizer, as.integer(options), as.logical(parentFirst), PACKAGE = "XML")
2: xmlTreeParse(rgmlFile, ...)
3: readPicture(paste(psfilename, ".xml", sep = ""))
4: coloredSymbols(ncha, font, colset, rname, fontsize)
5: plotMotifLogo(pfm = x@mat, motifName = x@name, p = x@background[rownames(x@mat)], colset = x@color[rownames(x@mat)], ...)
6: plot(pfms[[n - i + 1]], xlab = NA, ...)
7: plot(pfms[[n - i + 1]], xlab = NA, ...)
8: plotMotifLogoStack(pfms, ...)
9: motifStack(motifs, layout = "stack", ncex = 1)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Hi,
I can't reproduce this. Your installation might be out-of-sync. Please show the output of:
Thanks,
H.