-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory issues on CRAN #165
Comments
On rocker/r-devel-san,
|
I have also reproduced the CRAN issue on rocker/r-devel-san, using the current CRAN version. The same issue goes away when using the fix described above. |
Furthermore, on rocker/r-devel-san with the new update (the current CRAN version crashed it): > devtools::test()
ℹ Testing galamm
✔ | F W S OK | Context
✔ | 12 | galamm-glmm [125.8s]
✔ | 10 | galamm-heteroscedastic [28.0s]
✔ | 8 | galamm-latent-covariates-interaction [690.7s]
✔ | 36 | galamm-lmm [505.8s]
✔ | 13 | galamm-mixed-resp [708.5s]
✔ | 68 | galamm-semiparametric [832.4s]
✔ | 40 | galamm-setup [485.7s]
══ Results ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Duration: 3377.1 s
[ FAIL 0 | WARN 0 | SKIP 0 | PASS 187 ]
|
A note here. As an additional safety measure, I now explicitly make sure the program never asks for vector elements at negative indices: Lines 30 to 50 in 724f799
|
Keeping the issue open until the CRAN checks are ok. |
CRAN checks ok |
Seem to be caused by this in the case where newind = -2
galamm/src/update_funs.h
Lines 24 to 46 in 7cd848a
I was able to reproduce a problem using
R -d lldb
. There may be more problems, of course. This change fixed it:galamm/src/update_funs.h
Lines 24 to 53 in d4e2ab5
The text was updated successfully, but these errors were encountered: