Skip to content

fread on particular file crashes R #2228

Description

@cnoelke

Looks very similar to #2167, I have a file that crashes R if read with fread. Very similar files do not have this problem. read.csv works fine with this file.

The file is a csv (renamed to .txt to upload).

df <- read.csv("session_aborted_fatal_error.txt", header=F)
dt <- fread("session_aborted_fatal_error.txt", header=F, verbose = TRUE)

Thanks!

session_aborted_fatal_error.txt

image

Activity

  1. MichaelChirico commented on Jun 29, 2017

    @MichaelChirico
    Member

    please run this from the command line to get a tad more feedback about how R crashed

  2. cnoelke commented on Jun 29, 2017

    @cnoelke
    Author

    Sorry, is this better?

    image

  3. MichaelChirico commented on Jun 29, 2017

    @MichaelChirico
    Member

    no, this:

    library(data.table)
    # data.table 1.10.5 IN DEVELOPMENT built 2017-06-07 23:18:40 UTC; travis
    #   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
    fread('~/Downloads/session_aborted_fatal_error.txt')
    
    #  *** caught bus error ***
    # address 0x7f8e627ee000, cause 'non-existent physical address'
    
    # Traceback:
    #  1: fread("~/Downloads/session_aborted_fatal_error.txt")
    
  4. cnoelke commented on Jun 29, 2017

    @cnoelke
    Author

    Sorry, not sure what you mean. I'm running this on Windows RStudio. I can run the script from the Windows command line, but the output is identical to what RStudio produces.

    image

    Thanks!

  5. st-pasha commented on Jul 4, 2017

    @st-pasha
    Contributor

    This looks like an instance of #2194
    A fix already exists, waiting to be merged.

  6. added this to the milestone on Aug 4, 2017
  7. mattdowle commented on Aug 4, 2017

    @mattdowle
    Member

    Many thanks @cnoelke. Your file now added to the test suite.

  8. brankokovac commented on Sep 26, 2017

    @brankokovac

    I have the same problem with loading one particular file with fread().

    Here is the error file: session_aborted_fatal_error.txt

  9. e-nascimento commented on Jun 11, 2021

    @e-nascimento

    Hello,

    It has been awhile since this closed, but I am facing the same issue on R version 4.1.0 (2021-05-18)
    I could isolate the issue.

    RStudio crashes if you try to read row 183131
    DT <- fread(file = "file.csv", sep = ";", fill = T, verbose = T, nrows = 183130)

    file.zip

  10. jangorecki commented on Jun 11, 2021

    @jangorecki
    Member

    If it is not the same file then I think it make sense to file a new issue

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions