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

fread on particular file crashes R #2228

Closed
cnoelke opened this issue Jun 29, 2017 · 9 comments
Closed

fread on particular file crashes R #2228

cnoelke opened this issue Jun 29, 2017 · 9 comments

Comments

@cnoelke
Copy link

cnoelke commented Jun 29, 2017

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

@MichaelChirico
Copy link
Member

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

@cnoelke
Copy link
Author

cnoelke commented Jun 29, 2017

Sorry, is this better?

image

@MichaelChirico
Copy link
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")

@cnoelke
Copy link
Author

cnoelke commented Jun 29, 2017

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!

@st-pasha
Copy link
Contributor

st-pasha commented Jul 4, 2017

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

@mattdowle
Copy link
Member

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

@brankokovac
Copy link

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

Here is the error file: session_aborted_fatal_error.txt

@e-nascimento
Copy link

e-nascimento commented Jun 11, 2021

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

@jangorecki
Copy link
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
Projects
None yet
Development

No branches or pull requests

7 participants