Protection stack too large

Posted on
No user picture. Ryan Joined: 02/08/2014

Dear all,

Did anyone have a warning like:

"Warning message:
In runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
Protection stack too large; report this problem to the OpenMx forum"

Does anyone know how we can handle this?

Other information:

- The version of OpenMx: 2.0.0-4004 MASS_7.3-35
- The version of R: 3.1.2
- The operating system and architecture: x86_64, Apple OSX 10.8.5.
- R syntax that brings this warning is a command in "metaSEM": --tssem1--

Thanks!

Replied on Fri, 01/16/2015 - 08:56
Picture of user. jpritikin Joined: May 23, 2012

It should be easy to fix. Can you share the model that provokes this error?

Replied on Fri, 01/16/2015 - 19:41
No user picture. Ryan Joined: Feb 08, 2014

In reply to by jpritikin

Thanks Josh!

The model is pretty simple. Its R code is:
#####
entry <- readLowTriMat(file="116-16entry.txt", no.var=16, na.strings="NA")
samplesize <- read.table("116samplesize.txt")
random1 <- tssem1(entry, samplesize, method="REM", RE.type="Diag")
######

The last line provokes the error.

The dataset has 116 matrices and 16 variables per matrix.

This error never occurred before OpenMx 2.0. With OpenMx 1.4, I even run 118 matrices with 22 variables per matrix.

By the way, I increased my computer's stack size by -- ulimit -s --, but this didn't help me go through this problem.

I probably have to go back to OpenMx 1.4.

Best,

Ryan

Replied on Tue, 01/20/2015 - 00:42
No user picture. Ryan Joined: Feb 08, 2014

In reply to by jpritikin

Dear Joshua,
Here come the data files and the syntax.
Details about - tssem1 - are available at: http://courses.nus.edu.sg/course/psycwlm/Internet/metaSEM/.
Thanks in advance!
Ryan
p.s., Running the same syntax with OpenMx1.4 does not evoke this error.

Replied on Tue, 01/20/2015 - 17:40
Picture of user. jpritikin Joined: May 23, 2012

In reply to by Ryan

Ah, thanks for the data. I am running your script now. It is taking a long time.

Can you build OpenMx from subversion? If you can build SVN 4161 then you can enable some diagnostics,

mxOption(NULL, "Debug Protect Stack", 1)

I will let your script keep running. Maybe I will get some results soon.

Replied on Wed, 01/21/2015 - 03:27
No user picture. Ryan Joined: Feb 08, 2014

In reply to by jpritikin

Thanks Joshua!

Sorry, I don't know how to "build OpenMx from subversion". I only find this "http://openmx.psyc.virginia.edu/wiki/howto-build-openmx-source-repository". Is this what you mean?

Also, I can't find relevant information about "SVN4161".

Without SVN4161, the -- mxOption(NULL,"maxStackDepth", 25000) -- increases stack a bit, because the syntax seems to start working, but reports errors finally.

Best,

Ryan

Replied on Wed, 01/21/2015 - 05:54
Picture of user. jpritikin Joined: May 23, 2012

In reply to by Ryan

> Sorry, I don't know how to "build OpenMx from subversion". I only find this "http://openmx.psyc.virginia.edu/wiki/howto-build-openmx-source-repository". Is this what you mean?

Yes. Or if you can wait a little bit then we're scheduled to release 2.0.1 soon.