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

stack overflow error while executing fread after loading xlsx package #2220

Closed
niths4u opened this issue Jun 28, 2017 · 6 comments
Closed

stack overflow error while executing fread after loading xlsx package #2220

niths4u opened this issue Jun 28, 2017 · 6 comments
Labels

Comments

@niths4u
Copy link

niths4u commented Jun 28, 2017

Steps to reproduce :

t2<-data.frame(matrix(0,ncol=144391,nrow=2) )
library("data.table")
data.table 1.10.4
  The fastest way to learn (by data.table authors): https://www.datacamp.com/courses/data-analysis-the-data-table-way
  Documentation: ?data.table, example(data.table) and browseVignettes("data.table")
  Release notes, videos and slides: http://r-datatable.com
fwrite(t2,file="t1.csv",row.names = FALSE,col.names = FALSE )
t1<-fread(file="t1.csv")
library("xlsx")
Loading required package: rJava
Loading required package: xlsxjars
t1<-fread(file="t1.csv")
An irrecoverable stack overflow has occurred.
Please check if any of your loaded .so files has enabled executable stack (see man page execstack(8))
Error: segfault from C stack overflow

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"

@MichaelChirico
Copy link
Member

Not a fix, but I always found xlsx to be a memory hog. I find the readxl package strictly dominant, especially with the much-improved latest release.

@niths4u
Copy link
Author

niths4u commented Jun 28, 2017

You are right , I also ended up using readxl at the end. Solved a big headache. Worst case is debugging this issue to figure out that it is due to such a package load. Because this error comes inside a code which has no relation with xlsx package and hence no one would suspect it.

@MichaelChirico
Copy link
Member

MichaelChirico commented Jun 28, 2017 via email

@MichaelChirico
Copy link
Member

MichaelChirico commented Oct 17, 2017

@niths4u I can't reproduce with data.table 1.10.5 (built 2017-09-28 22:35:08 UTC) on R 3.4.1/OSX El Capitan 10.11.6

Can you try installing the current development version (see here) & try again? If there's still an error, try restarting your machine to run from a fresh session. If the bug still persists, please provide more details about your setup, including your sessionInfo().

@niths4u
Copy link
Author

niths4u commented Nov 3, 2017

Hi,
i am not able to reproduce on latest development version 1.10.5 on R 3.3.2. I guess this can be closed now.

Also just to note few more observation to help other readers who face the same issue

  1. R 3.3.2 - data.table 1.10.4 fails
  2. R 3.4.2 - data.table 1.10.4 works ( but note that this has all other packages including xlsx and xlsxjars updated)
  3. R 3.3.2 - data.table 1.10.5 works
  4. R 3.4.2 - data.table 1.10.5 works

Thanks

@niths4u niths4u closed this as completed Nov 3, 2017
@MichaelChirico
Copy link
Member

MichaelChirico commented Nov 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants