Repository navigation
fread on particular file crashes R #2228
Copy link
Copy link
Closed
Description
Activity
please run this from the command line to get a tad more feedback about how R crashed
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")This looks like an instance of #2194
A fix already exists, waiting to be merged.Many thanks @cnoelke. Your file now added to the test suite.
I have the same problem with loading one particular file with fread().
Here is the error file: session_aborted_fatal_error.txt
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)If it is not the same file then I think it make sense to file a new issue


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