[graalvm-users] Polyglot bug

Rodrigo Botafogo rodrigo.a.botafogo at gmail.com
Tue Aug 14 09:54:04 PDT 2018


Hello....

I've being posting bugs here... should I do it here or is it better to go
to the issues in github?

This works fine in Gnu R:

> pl = list("ggplot2")
> do.call("library", pl)

But doing:

pl = Polyglot.eval("R", "list").call("ggplot2")
Polyglot.eval("R", "do.call").call("library", pl)

Crashes with:

com.oracle.truffle.r.runtime.ffi.DLL$DLLException: package 'init' method
failed
    at
com.oracle.truffle.r.runtime.ffi.DLL$LoadPackageDLLNode.execute(DLL.java:581)
    at
com.oracle.truffle.r.nodes.builtin.base.DynLoadFunctions$DynLoad.doDynLoad(DynLoadFunctions.java:77)
    at
com.oracle.truffle.r.nodes.builtin.base.DynLoadFunctionsFactory$DynLoadNodeGen.execute(DynLoadFunctionsFactory.java:46)
    at
com.oracle.truffle.r.nodes.builtin.RBuiltinNode$Arg4.call(RBuiltinNode.java:213)
    at
com.oracle.truffle.r.nodes.builtin.InternalNode$InternalCallNode.execute(InternalNode.java:233)

Thanks...

-- 
Rodrigo Botafogo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/graalvm-users/attachments/20180814/4abe59b0/attachment.html 


More information about the GraalVM-Users mailing list