-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
IDE/ R session crashed with read_delim/mutate #5977
Comments
I'm not sure there is much we can do at the Did you try outside of the IDE ? Perhaps it is an IDE issue ? Unfortunately, without a usable reprex, there isn't much more we can do to help, e.g. we don't have |
So the first things I did was to un-pipe it and it worked fine until the I tried with rgui but it crashed too, besides it says r session crashed and not the IDE. I think that if the IDE crashed it wouldn't prompt anything. unfortunately i can't provide a usefull reprex since the r session crashes and the data are available here on the french government site : |
This seems like a potential readr/vroom bug (maybe ALTREP related). What happens if you try |
Still crashing... |
I can reproduce this as a vroom bug, and opened an issue over there. It seems to be related to |
The bottom line is that This worked by accident in older version of readr, but it was never the intended usage. I have added a workaround to avoid this problem in vroom in the future. However if your intent is to just read the lines into a vector I would suggest using |
# vroom 1.5.7 * Jenny Bryan is now the official maintainer. * Fix uninitialized bool detected by CRAN's UBSAN check (tidyverse/vroom#386) * Fix buffer overflow when trying to parse an integer field that is over 64 characters long (tidyverse/readr#1326) * Fix subset indexing when indexes span a file boundary multiple times (#383) # vroom 1.5.6 * `vroom(col_select=)` now works if `col_names = FALSE` as intended (#381) * `vroom(n_max=)` now correctly handles cases when reading from a connection and the file does _not_ end with a newline (tidyverse/readr#1321) * `vroom()` no longer issues a spurious warning when the parsing needs * to be restarted due to the presence of embedded newlines * (tidyverse/readr#1313) Fix performance * issue when materializing subsetted vectors (#378) * `vroom_format()` now uses the same internal multi-threaded code as `vroom_write()`, improving its performance in most cases (#377) * `vroom_fwf()` no longer omits the last line if it does _not_ end with a newline (tidyverse/readr#1293) * Empty files or files with only a header line and no data no longer cause a crash if read with multiple files (tidyverse/readr#1297) * Files with a header but no contents, or a empty file if `col_names = FALSE` no longer cause a hang when `progress = TRUE` (tidyverse/readr#1297) * Commented lines with comments at the end of lines no longer hang R (tidyverse/readr#1309) * Comment lines containing unpaired quotes are no longer treated as unterminated quotations (tidyverse/readr#1307) * Values with only a `Inf` or `NaN` prefix but additional data afterwards, like `Inform` or no longer inappropriately guessed as doubles (tidyverse/readr#1319) * Time types now support `%h` format to denote hour durations greater than 24, like readr (tidyverse/readr#1312) * Fix performance issue when materializing subsetted vectors (#378) # vroom 1.5.5 * `vroom()` now supports files with only carriage return newlines (`\r`). (#360, tidyverse/readr#1236) * `vroom()` now parses single digit datetimes more consistently as readr has done (tidyverse/readr#1276) * `vroom()` now parses `Inf` values as doubles (tidyverse/readr#1283) * `vroom()` now parses `NaN` values as doubles (tidyverse/readr#1277) * `VROOM_CONNECTION_SIZE` is now parsed as a double, which supports scientific notation (#364) * `vroom()` now works around specifying a `\n` as the delimiter (#365, tidyverse/dplyr#5977) * `vroom()` no longer crashes if given a `col_name` and `col_type` both less than the number of columns (tidyverse/readr#1271) * `vroom()` no longer hangs if given an empty value for `locale(grouping_mark=)` (tidyverse/readr#1241) * Fix performance regression when guessing with large numbers of rows (tidyverse/readr#1267)
Hello,
Quite a few months ago I wrote this code for importing a csv file that worked fine at the time :
But when I run this same code on the same data as before my IDE crash (I think) I get a dialog box saying

R session aborded, R encountered a fatal error. The session was terminated :
Here is my session info :
And an extract of the logfile :
It's the first time I see the second error since I'm trying to execute the code so i don't think that one is causing trouble but I don't know.
Also with the help of rstudio community, it seems that it's the read_delim function that caused issue since we were able to import the file ussing read_lines.
Note : the data and code has no change since the time it was working fine.
plus a link to the thread : https://community.rstudio.com/t/ide-r-session-crashed-with-mutate/112330
The text was updated successfully, but these errors were encountered: