Hi, I have been using my own C++ plugin for a while. On a new machine I now keep getting the C stack usage is too close to the limit error. I played with it and it appears to come after I printed a fixed number of text to R via Rprintf (not from the main thread). Didn't happen on the old machine. Old version was 2.14. Now on 3.0.3. Not sure whats going on. Florian [[alternative HTML version deleted]]
Prof Brian Ripley
2014-Mar-28 23:13 UTC
[Rd] Error: C stack usage is too close to the limit
On 28/03/2014 21:55, Florian Burkart wrote:> Hi, > > I have been using my own C++ plugin for a while. > > On a new machine I now keep getting the > > C stack usage is too close to the limit > > error. I played with it and it appears to come after I printed a fixed > number of text to R via Rprintf (not from the main thread). > > Didn't happen on the old machine. Old version was 2.14. Now on 3.0.3. > > Not sure whats going on.Did you read 'Writing R Extensions' about the support for threads? E.g. 'Calling any of the R API from threaded code is ?for experts only?: they will need to read the source code to determine if it is thread-safe. In particular, code which makes use of the stack-checking mechanism must not be called from threaded code.' It reads like that is what you did.> > Florian > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
I have similar experience previously. What I done was disabling stack limit checking R_CStackLimit = -1; and increasing the stack size to .16*1024*1024. Hope it helps. Randy On Mar 28, 2014, at 2:55 PM, Florian Burkart <florian.burkart at gmail.com> wrote:> Hi, > > I have been using my own C++ plugin for a while. > > On a new machine I now keep getting the > > C stack usage is too close to the limit > > error. I played with it and it appears to come after I printed a fixed > number of text to R via Rprintf (not from the main thread). > > Didn't happen on the old machine. Old version was 2.14. Now on 3.0.3. > > Not sure whats going on. > > Florian > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Seemingly Similar Threads
- Rprintf and "C stack usage is too close to the limit"
- "Error: C stack usage is too close to the limit" (can't understand explanations of how to fix this)
- About " Error: C stack usage is too close to the limit"
- About " Error: C stack usage is too close to the limit"
- About " Error: C stack usage is too close to the limit"--resend