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

Commented Issue: R.Net 1.5.5 problem multithread and loaded machine. [115]

$
0
0
Hi,

Here is test project on problems reported in blogpost http://kostylizm.blogspot.ru/2014/05/run-r-code-from-c-sharp.html

Error messages we had in production:

Version 1.5.5:
Error: C stack usage is too close to the limit
In addition: Warning messages:
1: package 'xts' was built under R version 3.0.3
2: package 'rugarch' was built under R version 3.0.3
A first chance exception of type 'RDotNet.ParseException' occurred in RDotNet.dll

Version 1.5.11
at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement)
at RDotNet.REngine.<Defer>c__Iterator4.MoveNext()
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
at RDotNet.REngine.Evaluate(String statement)

In attached project reproduced only second.
Run method ParallelRFromRNetTest

Hope will help resolve problem.
Comments: Can you clarify the purpose of this test? The reason I ask is that its called 'ParallelRFromRNetTest' and you do set the tasks to run asynchronously, but you're locking on the containing object so that all the "parallel" tasks are spinning till they can get hold of the lock. It should be said that the REngine is not threaded, so this seems logical, but I'm not sure of the point. Anyway, I've let the test run for a few iterations and it seems fine. Really slow, but fine. Does it fail on a particular iteration? If not, Is there a deterministic way to make this fail? --> R.Net 1 @ 05/08/2014 21:58:16 [1] "Start" Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric Package Rsolnp (1.14) loaded. To cite, see citation("Rsolnp") KernSmooth 2.23 loaded Copyright M. P. Wand 1997-2009 [1] "Loading" [1] "Loaded" --> R.Net 1 @ 05/08/2014 21:58:16 [1] "Start" Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric Package Rsolnp (1.14) loaded. To cite, see citation("Rsolnp") KernSmooth 2.23 loaded Copyright M. P. Wand 1997-2009 [1] "Loading" [1] "Loaded" [1] "Done" <-- R.Net 1 elapsed 00:02:51.9124875 @ 05/08/2014 22:01:08 --> R CMD 1 @ 05/08/2014 22:01:08 --> R.Net 1 @ 05/08/2014 21:58:16 [1] "Start" Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric Package Rsolnp (1.14) loaded. To cite, see citation("Rsolnp") KernSmooth 2.23 loaded Copyright M. P. Wand 1997-2009 [1] "Loading" [1] "Loaded" [1] "Done" <-- R.Net 1 elapsed 00:02:51.9124875 @ 05/08/2014 22:01:08 --> R CMD 1 @ 05/08/2014 22:01:08 [1] "Start" [1] "Loading" [1] "Loaded" [1] "Done" <-- R CMD 1 elapsed 00:02:02.6824308 @ 05/08/2014 22:03:11 --> R.Net 2 @ 05/08/2014 22:03:11 [1] "Start" [1] "Loading" [1] "Loaded"

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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