kogalur / randomForestSRC

DOCUMENTATION:
https://www.randomforestsrc.org/
GNU General Public License v3.0
115 stars 18 forks source link

Numerical Recipes Run-Time Error: Illegal indices in gvector #28

Closed shadogray closed 5 years ago

shadogray commented 5 years ago

R crash on predict: (minimal example provided as attachment) crash_rfsrc.zip

RF-SRC RF-SRC: ERROR RF-SRC: Numerical Recipes Run-Time Error: RF-SRC:
Illegal indices in gvector(). RF-SRC: Please Contact Technical Support.<simpleError in doTryCatch(return(expr), name, parentenv, handler): RF-SRC: The application will now exit.

Fehler in generic.predict.rfsrc(object, newdata, ensemble = ensemble, m.target = m.target, : An error has occurred in prediction. Please turn trace on for further analysis. Ruft auf: predict -> predict.rfsrc -> generic.predict.rfsrc Ausf�hrung angehalten

RF-SRC RF-SRC: ERROR RF-SRC: Numerical Recipes Run-Time Error: RF-SRC:
Illegal indices in gvector(). RF-SRC: Please Contact Technical Support.Fehler: RF-SRC: The application will now exit. Fatal error: error during cleanup

Invocation: Rscript crash_rfsrc.R

SessInfo: R version 3.5.2 (2018-12-20) Platform: x86_64-suse-linux-gnu (64-bit) Running under: openSUSE Tumbleweed

Matrix products: default BLAS: /usr/lib64/R/lib/libRblas.so LAPACK: /usr/lib64/R/lib/libRlapack.so

locale: [1] LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8 LC_COLLATE=de_DE.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=de_DE.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C

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

other attached packages: [1] randomForestSRC_2.8.0 forcats_0.3.0 stringr_1.3.1
[4] dplyr_0.7.8 purrr_0.3.0 readr_1.3.1
[7] tidyr_0.8.2 tibble_2.0.1 ggplot2_3.1.0
[10] tidyverse_1.2.1

loaded via a namespace (and not attached): [1] Rcpp_1.0.0 cellranger_1.1.0 pillar_1.3.1 compiler_3.5.2
[5] plyr_1.8.4 bindr_0.1.1 tools_3.5.2 jsonlite_1.6
[9] lubridate_1.7.4 gtable_0.2.0 nlme_3.1-137 lattice_0.20-38 [13] pkgconfig_2.0.2 rlang_0.3.1 cli_1.0.1 rstudioapi_0.9.0 [17] parallel_3.5.2 haven_2.0.0 bindrcpp_0.2.2 withr_2.1.2
[21] xml2_1.2.0 httr_1.4.0 generics_0.0.2 hms_0.4.2
[25] grid_3.5.2 tidyselect_0.2.5 glue_1.3.0 R6_2.3.0
[29] readxl_1.2.0 modelr_0.1.2 magrittr_1.5 backports_1.1.3 [33] scales_1.0.0 rvest_0.3.2 assertthat_0.2.0 colorspace_1.4-0 [37] stringi_1.2.4 lazyeval_0.2.1 munsell_0.5.0 broom_0.5.1
[41] crayon_1.3.4

shadogray commented 5 years ago

seems to be activated by: bootstrap = 'by.node'

kogalur commented 5 years ago

Thank you for the excellent example. There was indeed a bug w.r.t. bootstrap="by.node". You can find a beta build with the fix here, if it's convenient:

https://www.dropbox.com/s/z71ta4yb00cxrba/randomForestSRC_2.8.0.10.tar.gz?dl=0

We'll likely push a new build up to CRAN in a couple of weeks.