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

New Post: protect(): protection stack overflow

$
0
0
I got the following error:
RDotNet.EvaluationException: Error: protect(): protection stack overflow
at RDotNet.REngine.Parse(String statement, StringBuilder incompleteStatement)
at RDotNet.REngine.<Defer>d__0.MoveNext()
at System.Linq.Enumerable.LastOrDefault[TSource](IEnumerable`1 source)
at RDotNet.REngine.Evaluate(String statement)
This happened while running something like this:
_rEngine.Evaluate("newcol <- c(...values...)").AsNumeric();
I.e. creating a new column with some values, which is then used to create a DataFrame. I did not change the code for some time and it always worked correctly. It only threw after few days of running. That's why (and also because of the err. message) it looks like there was some memory limit reached.

I create a new linear regression model and data frames every time the application accesses R - could this be the issue? How do I clean the memory once done with the model/data-frame?

Thanks

Viewing all articles
Browse latest Browse all 1634

Trending Articles



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