Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

Created Unassigned: RDotNet.Closure.Invoke() throws exception. [76]

$
0
0
Error message is
```
Error in <bytecode> : generic 'function' is not a function


Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at RDotNet.Devices.CharacterDeviceAdapter.FlushConsole () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) object:wrapper_native_0x7f5353b97790 (intptr,intptr,intptr,intptr,intptr)
at (wrapper delegate-invoke) <Module>:invoke_intptr__this___intptr_intptr_intptr_intptr_intptr (intptr,intptr,intptr,intptr,intptr)
at RDotNet.Closure.Invoke (System.String[] argNames, RDotNet.SymbolicExpression[] args) [0x00000] in <filename unknown>:0
at RDotNet.Closure.Invoke (RDotNet.SymbolicExpression[] args) [0x00000] in <filename unknown>:0
at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at RDotNet.Devices.CharacterDeviceAdapter.FlushConsole () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) object:wrapper_native_0x7f5353b97790 (intptr,intptr,intptr,intptr,intptr)
at (wrapper delegate-invoke) <Module>:invoke_intptr__this___intptr_intptr_intptr_intptr_intptr (intptr,intptr,intptr,intptr,intptr)
at RDotNet.Closure.Invoke (System.String[] argNames, RDotNet.SymbolicExpression[] args) [0x00000] in <filename unknown>:0
at RDotNet.Closure.Invoke (RDotNet.SymbolicExpression[] args) [0x00000] in <filename unknown>:0
at MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
```

A code to reproduce above is attached.
Envioronment is
Ubuntu 13.10
R 3.0.1 (installed from distro's repos)
R.NET 1.5.5 (Unix)

I created a workaround [patch](https://rdotnet.codeplex.com/SourceControl/network/forks/nakagawa_hiroyuki/rdotnetlinux/changeset/b4c1ce1626fd) for this issue.
This patch is effective for me, but it is very adhoc and doesn't care of any side efect.
Because it is a just a copy of BuiltinFunction.cs and I don't understand why original code doesn't work.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>