Open meowcat opened 1 year ago
Same problem with R 4.2.2 from bioconductor/bioconductor_docker:RELEASE_3_16
Tested on two completely different machines
Same problem with R 4.2.1 from bioconductor/bioconductor_docker:RELEASE_3_15
Note: this issue arose with rcdklibs 2.8 Provisional workaround:
remotes::install_github("CDK-R/rcdklibs@c1f2d125cb00e09c8aac815107b54fe1ef8ebe8f")
remotes::install_github("CDK-R/cdkr/rcdk@cef1eed1555947ed82e8303cb6d79c77fd89b3c1")
Hmmm. Works fine for me. Not sure whats happening.
library(rcdk)
library(rinchi)
mol <- parse.smiles("CCCC")
rinchi::get.inchi.key(mol[[1]])
[1] "IJDNQMDRQITEOD-UHFFFAOYSA-N"
> .jcall("java/lang/System", "S", "getProperty", "java.runtime.version")
[1] "17.0.6+10-jvmci-22.3-b13"
Are you on Windows? Linux? For me this happens on Linux, as shown above.
I describe the issue here because
rinchi
is just a wrapper around this functionality, and nothing we can change inrinchi
would make a difference to this issue:results in:
Exception: java.lang.StackOverflowError thrown from the UncaughtExceptionHandler in thread "process reaper"
To reproduce:
in R:
Digging into the haystack, I can trigger the error by doing:
jnainchi<- J("io.github.dan2097.jnainchi.JnaInchi")
which is used called in CDK here: https://github.com/cdk/cdk/blob/d60aaa15c9c4edb3a0103e6d5a1d8ffacc235435/storage/inchi/src/main/java/org/openscience/cdk/inchi/InChIGenerator.java#L537System (please complete the following information):
Interestingly, I do not have the error on R 4.2.0, rJava 1.0-6, rcdk 3.7.0, rcdklibs 2.8 on Windows.
Additional context Add any other context about the problem here.