Skip to content
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

rbindlist Internal error: savetl_init checks failed #4823

Closed
danbartl opened this issue Nov 26, 2020 · 3 comments · Fixed by #4803
Closed

rbindlist Internal error: savetl_init checks failed #4823

danbartl opened this issue Nov 26, 2020 · 3 comments · Fixed by #4803
Labels
Milestone

Comments

@danbartl
Copy link

Hi, thanks for this awesome package.

I have a weird crash where data.table bugs out unrecoverably (requires R restart) in all versions 1.13.0 to 1.13.3. Here is the minimal example (nonsensical, the true data has more variation and is bigger)

library(data.table)
library(mltools)
data_instance <-data.table(x=rep(0.2972973,101),transfos=0)
buckets <- 12
data_instance[,bucket:=bin_data(transfos, bins=buckets, binType = "quantile")]

Fehler in rbindlist(list(head(x, topn), tail(x, topn)), use.names = FALSE) :
STRING_PTR() can only be applied to a 'character', not a 'NULL'

And then whenever I call a data.table:

Fehler in rbindlist(list(head(x, topn), tail(x, topn)), use.names = FALSE) :
Internal error: savetl_init checks failed (0 100 0x00000135ab4382c0 0x00000135ab4a9670). please report to data.table issue tracker.

Until I restart

Sessioninfo:
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default
Sessioninfo
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252

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

other attached packages:
[1] mltools_0.3.5 data.table_1.13.3

loaded via a namespace (and not attached):
[1] compiler_4.0.3 Matrix_1.2-18 tools_4.0.3 yaml_2.2.1 grid_4.0.3 lattice_0.20-41

@MichaelChirico
Copy link
Member

Sorry about that! I am not reproducing on Linux on current master, nor on the latest CRAN release.

@shrektan
Copy link
Member

shrektan commented Nov 27, 2020

I think #4803 fixes this

@dbart79 It would be great if you can test the patch to see it fixes your issue or not.

(Install the patch via remotes::install_github("Rdatatable/data.table#4803") . Note, since your OS is Windows, you need to close all the R sessions that may use data.table, otherwise the DLL file is locked)

Thanks.

@danbartl
Copy link
Author

Yes, I justed it and it works, issue can be closed 👍 .

Thanks!

@jangorecki jangorecki changed the title data.table crashes with weird bug rbindlist Internal error: savetl_init checks failed Dec 10, 2020
@mattdowle mattdowle added this to the 1.14.1 milestone Apr 29, 2021
@jangorecki jangorecki modified the milestones: 1.14.9, 1.15.0 Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants