rstanarm
rstanarm copied to clipboard
rstanarm stan_jm crash - Error in check_stanfit(stanfit)
Summary:
I was following the example in the rstanarm joint model vignette. I was at the very basic mod1 in the vignette and as I ran it, an error message pops out.
`SAMPLING FOR MODEL 'jm' NOW (CHAIN 1).
Chain 1: empty_nested() must be true before calling recover_memory()
[1] "Error in sampler$call_sampler(args_list[[i]]) : "
[2] " empty_nested() must be true before calling recover_memory()"
error occurred during calling the sampler; sampling not done Error in check_stanfit(stanfit) : Invalid stanfit object produced please report bug`
I then ran mod1 again and the following pops out:
Error in sampler$call_sampler(c(args, dotlist)) : empty_nested() must be true before calling recover_memory()
So it looks like I'm requested to file a bug report. Any help would be very much appreciated.
RStanARM Version:
The version of the rstanarm package I am running is 2.21.1
R Version:
The version of R you are running 3.6.2
Operating System:
My operating system is Mac OS X 10.15.5
Hmm, haven't ever seen an error like this before! @jgabry @bgoodri Any idea where this might be coming from? I'm guessing it is rstan and the sampling is failing to start / initialise for some reason...?
Hmm, I think I've seen that before but it's been a while and I don't remember the reason for it. It's possible that upgrading to a more recent version of R (>= 4.0) will do the trick but @bgoodri might have a better suggestion.
It is quite tedious to get RStan-related things to work correctly on Macs with R 3.x .
On Tue, Nov 10, 2020 at 12:33 PM Jonah Gabry [email protected] wrote:
Hmm, I think I've seen that before but it's been a while and I don't remember the reason for it. It's possible that upgrading to a more recent version of R (>= 4.0) will do the trick but @bgoodri https://github.com/bgoodri might have a better suggestion.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstanarm/issues/485#issuecomment-724853680, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZ2XKRPPUV7Q56GK4W2FY3SPF2N7ANCNFSM4TQLZLKA .