Algebraic Solver Problems on Windows?

I had weird results running this model on windows. At first it worked fine, then without changing anything it crashed RStudio a few times in a row. Now it’s back to working fine. Also, when it caused R to crash it looked like the model was able to run and return the print statement.

Here’s the code and options I was using

library(rstan)
options(mc.cores = parallel::detectCores(FALSE))
rstan_options(auto_write = TRUE)
stan("model.stan", chains = 1, iter=1, warmup=0, algorithm = "Fixed_param")

And here’s my sessionInfo()

R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rstan_2.18.2       StanHeaders_2.18.0 ggplot2_3.1.0     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0         pillar_1.3.0       compiler_3.5.1     plyr_1.8.4        
 [5] bindr_0.1.1        prettyunits_1.0.2  base64enc_0.1-3    tools_3.5.1       
 [9] pkgbuild_1.0.2     tibble_1.4.2       gtable_0.2.0       pkgconfig_2.0.2   
[13] rlang_0.3.0.1      cli_1.0.1          rstudioapi_0.8     parallel_3.5.1    
[17] loo_2.0.0          bindrcpp_0.2.2     gridExtra_2.3      withr_2.1.2       
[21] dplyr_0.7.8        knitr_1.20         stats4_3.5.1       grid_3.5.1        
[25] tidyselect_0.2.5   glue_1.3.0         inline_0.3.15      R6_2.3.0          
[29] processx_3.2.0     purrr_0.2.5        callr_3.0.0        magrittr_1.5      
[33] codetools_0.2-15   matrixStats_0.54.0 scales_1.0.0       ps_1.2.1          
[37] assertthat_0.2.0   colorspace_1.3-2   lazyeval_0.2.1     munsell_0.5.0     
[41] crayon_1.3.4 

I also want to mention that I’ve had problems with the ODE solvers crashing Rstudio on windows as well. I brought it up in this thread. When i encountered those problems it was very inconsistent. At one point I had a RK45 solver working fine; then, when I added one more parameter to the ODE system the model would compile but crash RStudio during sampling. I also couldn’t get the BDF solver to work at all. Not sure if any of this is related to the algebra solver.