-
Notifications
You must be signed in to change notification settings - Fork 64
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
FastR internal error: java.lang.NullPointerException #201
Comments
Hello @epragtbeamtree, thanks for the report. How did you produce the I was able to reproduce the issue on Ubuntu 20.04, with the latest Graal master, with: $GRAALVM_HOME/bin/javac HelloWorldR.java
$GRAALVM_HOME/bin/native-image --language:R HelloWorldR helloworldr
env R_HOME=$GRAALVM_HOME/languages/R ./helloworldr From the generated Moreover, why are you setting |
Hi @Akirathan , Thanks for your quick feedback. I created the image using the following:
I'm setting the
|
Seems related to MacOS-specific issue in hpi-swa/trufflesqueak#168. On Ubuntu 20.04, I don't have to specify Our problem is with providing correct home directories for Truffle languages. The issue is with configuration - just run native image build with:
and everything works as expected. For more info, see https://github.com/oracle/graal/blob/master/sdk/src/org.graalvm.home/src/org/graalvm/home/impl/DefaultHomeFinder.java |
I am closing this issue now as it is unrelated to FastR. |
@Akirathan Thanks for looking into this. Would it be helpful to give a bit more information than just the NPE? I'm happy to help in that, but is there a way how I can run with debug or verbose information to see where exactly the NPE occured? |
Truffle team is planning to work on documenting and improving this experience (setting language home for native images with some languages embedded) in general. It is good point that |
@steve-s @epragtbeamtree @Akirathan I am not sure how the issue is related to the LLVM's language home, because what fixed it was setting the |
@jchalou - So, if TL:DR; NPE is thrown not directly in |
Ok, I missed that |
We do not plan to change the functionality at the moment. It is up to the languages to react properly to the situation where |
Can you reproduce with the latest development build?
Haven't tried yet, but currently running the latest version of GraalVM:
Include the following info
No error logs are produced. The only output is this:
I've attempted to run the binary with the printStackTrace flag, like this:
but not output is produced. When I run the application using Java instead of a binary, the application works fine.
This is the whole source file:
fastr_errors_pid{xyz}.log
orfastr_errors.log
, attach them to the issue.$GRAALVM_HOME/bin/R --vm.version
and include the full output.macOS Monterey Version 12.4
The text was updated successfully, but these errors were encountered: