-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc library exception in Renjin #569
Comments
The Renjin-versions of packages are produced by compiling C or C++ code to JVM bytecode, and it looks like there is a problem with our compiler here. It seems to compile a certain operation to a call to Integer.remainderUnsigned(): Line 102 in e658ffd
However, this Java method throws a ArithmeticException on divide by zero, while obviously the corresponding machine instruction emitted by GCC does not. This can be fixed by providing our own static method which does the check for a zero divisor, but I suspect something else is going wrong which leads to a zero divisor. Unfortunately, debugging compiled C++ code is quite difficult, as it turns out. You can see the method in dplyr that triggers the exception here: You can demangle the stacktrace using
Unfortuantely, unless you're willing to wade through all of this I'm afraid you're not going to be able to use dplyr with Renjin. If I look at the test page none of the tests have ever passed with Renjin. |
Without dplyr and tidyr library (only with data.table, lubridate and sqldf), I get this exception now:
|
Hi all,
I have a spring boot 3 service that integrates a R rate calculation script to be run into it. The problem here is I can't understand the exception I get when run:
These are my Renjin libraries in my POM:
and here the R integration code:
Any help'll be apreciated!
The text was updated successfully, but these errors were encountered: