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

Commented Issue: Cannot run unit tests on Linux (Debian) [40]

$
0
0
@ rvision 294

Mono JIT compiler version 3.2.8 (mono-3.2.8/b1e8599
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"

RDotNet.CharacterVectorTest.TestCharacter:
SetUp : RDotNet.EvaluationException : Unable to retrieve an R error message. Evaluating 'geterrmessage()' fails. The R engine is not in a working state.

```
at RDotNet.REngine.get_LastErrorMessage () [0x00000] in <filename unknown>:0
at RDotNet.REngine.Parse (System.String statement, System.Text.StringBuilder incompleteStatement) [0x00000] in <filename unknown>:0
at RDotNet.REngine+<Defer>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.Last[SymbolicExpression] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.LastOrDefault[SymbolicExpression] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at RDotNet.REngine.Evaluate (System.String statement) [0x00000] in <filename unknown>:0
at RDotNet.RDotNetTestFixture.SetUpTest () [0x00000] in <filename unknown>:0
```

Also, the terminal shows: Error: C stack usage is too close to the limit

Also crashes:
```
nunit-console4 src/codeplex/rdotnet/RDotNet.Tests/bin/Debug/RDotNet.Tests.dll
```

Comments: Made some progress. The changes for issue #129 help, however there is the reappearance of a bug which I encountered in rClr, whereby one ends up with (this==null). If I add a null reference check and exception, this is where things bomb. Note that this is a managed bomb once I add the NRE throw: no crash of the whole process. If however an attempt is made at calling an instance member, the process crashes. So, I start to suspect that this is all because at some point the CharacterDeviceAdapter is not referenced by managed objects and is GC-ed (though with pending Finalizer), but then called back by the native layer. At some point one of the tests swaps this CharacterDeviceAdapter for a Mock device. I suspect this is the root cause, but TBD. ``` Test Case Failures: 1) RDotNet.DataConversionTest.TestCreateCharacterVectorValid : System.NullReferenceException : Huh??? how can this == null at RDotNet.Devices.CharacterDeviceAdapter.ResetConsole () [0x00042] in /somepath/rdotnet/R.NET/Devices/CharacterDeviceAdapter.cs:212 at (wrapper managed-to-native) object:wrapper_native_0x7f259b0aaab0 (intptr,intptr,bool&) at RDotNet.Expression.TryEvaluate (RDotNet.REnvironment environment, RDotNet.SymbolicExpression& result) [0x00045] in /somepath/rdotnet/R.NET/Expression.cs:57 at RDotNet.REngine.Parse (System.String statement, System.Text.StringBuilder incompleteStatement) [0x00094] in /somepath/rdotnet/R.NET/REngine.cs:678 at RDotNet.REngine+<Defer>c__Iterator0.MoveNext () [0x000c3] in /somepath/rdotnet/R.NET/REngine.cs:593 at System.Linq.Enumerable.Last[SymbolicExpression] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00034] in /someotherpath/src/mono-3.8.0/mcs/class/System.Core/System.Linq/Enumerable.cs:1198 at System.Linq.Enumerable.LastOrDefault[SymbolicExpression] (IEnumerable`1 source) [0x0003c] in /someotherpath/src/mono-3.8.0/mcs/class/System.Core/System.Linq/Enumerable.cs:1260 at RDotNet.REngine.Evaluate (System.String statement) [0x0000e] in /somepath/rdotnet/R.NET/REngine.cs:558 at RDotNet.RDotNetTestFixture.SetUpTest () [0x0000b] in /somepath/rdotnet/RDotNet.TestBase/RDotNetTestFixture.cs:41 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /someotherpath/src/mono-3.8.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 ```

Viewing all articles
Browse latest Browse all 1634

Latest Images

Trending Articles



Latest Images

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