I’m using Windows 10, R 3.4, Rtools 3.4, RStudio 1.0.143, and Stan 2.15.1 … or trying to. I reinstalled my entire system to update it, and rstan is now randomly breaking (random with a high probability).
I’ve got a half dozen models that all ran entirely reliably under 2.13 and 2.14, and don’t run reliably under 2.15.1. I’m trying to sort out some rhyme or reason for it all. rats.stan and my simplest model seem to run OK… always? A slightly more involved model worked fine once and now sometimes gives a compilation error, sometimes fails to connect, and sometimes works.
There are a number of warnings and messages that I don’t remember from before, including (in some combination from one run to the next and one RStudio session to the next):
“recompiling to avoid crashing R session”
“Gradient evaluation took 0 seconds
1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
Adjust your expectations accordingly!”
"Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! 0 [main] make (1320) c:\Rtools\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0xF97408/0x10D7408.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version should
reside in x:\cygwin\bin, where ‘x’ is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
0 [main] make 10764 fork: child -1 - forked process 1320 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
make: vfork: Resource temporarily unavailable
running command ‘make -f “C:/PROGRA~1/R/R-34~1.0/etc/x64/Makeconf” -f “C:/PROGRA~1/R/R-34~1.0/share/make/winshlib.mk” -f “D:/Users/helink/Documents/.R/Makevars” SHLIB_LDFLAGS=’(SHLIB_CXXLDFLAGS)' SHLIB_LD='(SHLIB_CXXLD)’ SHLI
In addition: Warning message:
running command ‘C:/PROGRA~1/R/R-34~1.0/bin/x64/R CMD SHLIB file2c3c7c4e3aaa.cpp 2> file2c3c7c4e3aaa.cpp.err.txt’ had status 1
"Error in unserialize(socklist[[n]]) : error reading from connection
Error in serialize(data, node$con, xdr = FALSE) :
error writing to connection
When I run with cores=1 things are generally more stable but not perfect. When I run four chains on four cores, things are generally less stable but not always failing. R encounters a fatal error sometimes once a chain starts to warm up on cores=1 after failing to connect calling stan with cores=4. I’ve rebooted since my install and only have one cygwin.dll anywhere.
So, I’ve seen people having trouble with 2.15.1, here
and here Redirecting to Google Groups
Has the issue been pinned down or do you need help isolating it? And should I revert to 2.14 or some such, or is a 2.16 that fixes whatever issues we’re having expected to be out soon?