Skip to content

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

Description

@niths4u

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"

Activity

  1. MichaelChirico commented on Jun 28, 2017

    @MichaelChirico
    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.

  2. niths4u commented on Jun 28, 2017

    @niths4u
    Author

    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.

  3. MichaelChirico commented on Jun 28, 2017

    @MichaelChirico
    Member
  4. MichaelChirico commented on Oct 17, 2017

    @MichaelChirico
    Member

    @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().

  5. niths4u commented on Nov 3, 2017

    @niths4u
    Author

    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

  6. MichaelChirico commented on Nov 3, 2017

    @MichaelChirico
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions