manybabies / mb1-cdi-followup

ManyBabies 1 Longitudinal CDI Followup
MIT License
4 stars 7 forks source link

3b issue #46

Closed mohmdsh closed 1 year ago

mohmdsh commented 1 year ago

I encountered a bug again while running a code snippet on 3b lines 334-365:

Sys.setenv(R_FUTURE_RNG_ONMISUSE = "ignore")

lmer.bf_full_1.nae <- brm(standardized.score.CDI.num ~ CDI.z_age_months + gender +
  z_age_months + method + z.IDS_pref +
  (1 | labid) + (1 | subid_unique),
data = data.nae,
family = gaussian,
prior = prior_nae_1,
iter = 4000,
warmup = 2000,
chains = 4,
save_pars = save_pars(all = T),
control = list(adapt_delta = .95),
seed = 456
)

summary(lmer.bf_full_1.nae)

lmer.bf_null_1.nae <- brm(standardized.score.CDI.num ~ CDI.z_age_months + gender +
  z_age_months + method +
  (1 | labid) + (1 | subid_unique),
data = data.nae,
family = gaussian,
prior = prior_nae_null_1,
iter = 4000,
warmup = 2000,
chains = 4,
save_pars = save_pars(all = T),
control = list(adapt_delta = .95),
seed = 123
)

summary(lmer.bf_null_1.nae)
Warning: Rows containing NAs were excluded from the model.Compiling Stan program...
Start sampling
Error in unserialize(node$con) : 
  MultisessionFuture (<none>) failed to receive results from cluster RichSOCKnode #1 (PID 69836 on localhost ‘localhost’). The reason reported was ‘error reading from connection’. Post-mortem diagnostic: No process exists with this PID, i.e. the localhost worker is no longer alive. Detected a non-exportable reference (‘externalptr’ of class ‘DLLHandle’) in one of the globals (‘args’ of class ‘list’) used in the future expression. The total size of the 1 globals exported is 158.96 KiB. There is one global: ‘args’ (158.96 KiB of class ‘list’)
mcfrank commented 1 year ago

I can't reproduce this error having pulled and run, so my guess is that it is a package versioning issue, see #44.

mohmdsh commented 1 year ago

I can't reproduce this error having pulled and run, so my guess is that it is a package versioning issue, see #44.

Problem solved. Docker handles stan differently and needs a special installation. You can close the issue now. I should push the image after some checkup and then publish it in the coming days.

mcfrank commented 1 year ago

Nice work!