fastr icon indicating copy to clipboard operation
fastr copied to clipboard

java.lang.RuntimeException: com.oracle.truffle.r.runtime.RInternalError: not implemented: unexpected SEXPTYPE PROMSXP

Open lemmy opened this issue 4 years ago • 6 comments

markus@banana:/opt/graalvm/graalvm-ce-java16-21.1.0$ head Some.csv
trace#level#P#C#B#over#under
1#4#1#1#8#1#0
1#12#2#2#256#2#0
1#11#1#1#16#1#0
1#14#2#2#256#2#0
1#17#2#2#2#1#0
2#13#2#2#32#2#0
2#21#2#2#1#1#0
1#14#2#2#4#1#0
2#56#4#4#16#4#0
data <- read.csv(header=TRUE, sep = "#", file = "Some.csv")
library(dplyr)
data %>% group_by(P,C,B) %>% summarise(mean_level = mean(level))
markus@banana:/opt/graalvm/graalvm-ce-java16-21.1.0$ uname -a
Linux banana 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
markus@banana:/opt/graalvm/graalvm-ce-java16-21.1.0$ bin/java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment GraalVM CE 21.1.0 (build 16.0.1+9-jvmci-21.1-b05)
OpenJDK 64-Bit Server VM GraalVM CE 21.1.0 (build 16.0.1+9-jvmci-21.1-b05, mixed mode, sharing)

fastr_errors_pid106142.log

lemmy avatar Jul 13 '21 19:07 lemmy

Hi Lemmy, thanks for the report. This is a well-known bug. As noted in CHANGELOG.md, we recently switched to a newer version of MRAN snapshot, which contains dplyr version 1.0.3, and support for this version of dplyr is a work in progress.

Akirathan avatar Aug 13 '21 09:08 Akirathan

When can can we expect this to be fixed? dplyr library is quite commonly used. It's been a year opened.

nikola-arcadis avatar Sep 11 '22 21:09 nikola-arcadis

Hi @nnikolic-arcadis, thanks for the notification. I am currently working on a PR that fixes this issue, I expect it to be merged within 2 weeks. Once it is merged, I will close this issue. Note, however, that dplyr will not be fully supported, i.e., on my PR, many dplyr tests run successfully, but there are dozens that are ignored because of other compatibility issues with FastR.

Akirathan avatar Sep 12 '22 16:09 Akirathan

Thanks for the update. Looking forward to see stable and production ready release.

nikola-arcadis avatar Sep 12 '22 19:09 nikola-arcadis

Hello @nnikolic-arcadis,

please note that @Akirathan's work will only fix this specific issue. We have limited resources and pushing for more complete compatibility with this dplyr version is not at the top of our list at this point. Regarding stable and production ready release of FastR, there is still significant amount of work to reach this goal, so there are no immediate plans for a production release.

steve-s avatar Sep 13 '22 08:09 steve-s

I understand. Thanks for the effort.

nikola-arcadis avatar Sep 14 '22 10:09 nikola-arcadis