-
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
R session crash with %>% #1309
Comments
I experienced the very same issue (on windows), the only workaround was to revert to an older version of the library. Unfortunately the Access Violation exception seems to appear "randomly", I do not have the expertise to provide you further details, except the ADplus log |
I cannot reproduce it locally on OSX. I'd bet it's the same as #1231. (BTW 0.4.1.9002 does not clearly identify which version you mean, it just means it's a version after a given fix). Do you still see the problem with the dev version ? |
I just did a pull and cannot reproduce the problem, thanks Romain! I had read #1231 and thought it was perhaps different. I also had done a git pull, but apparently I didn't get it recent enough. Thanks. |
Symptoms were different, but the cause wzs the same i guess |
This may be similar or the same bug as several other issues, but they all appear to be triggered by specific events/functions; this is generic enough that it may apply or be something completely different.
The R session crashes (or sometimes "hangs" busily) with just
mutate
ortransmute
. The "when" of a crash is unpredictable, but I can always crash it with enough replications:Sometimes 100 times works, sometimes 50000 is needed multiple times to get a crash. The system is not otherwise task-saturated. (Though I am using a for-loop here, I initially played with
replicate
with similar results.)It behaves the same with
transmute
in place ofmutate
, perhaps no surprise. If I usemtcars %>% mutate(a=lag(hp))
, I have not seen it hang, nor have I seen it hang witharrange(mpg)
or similar.When it fails, it usually full-up crashes. Infrequently, it just hangs "busily"; I can see no appreciable change in CPU or memory usage. At one point, when I was repeatedly trying to crash it, I started timing things so I knew how long to do something else before coming back to check.
Does this help at all? (It doesn't always err like this, it occasionally just hangs here as well.) Even more interesting to me is that immediately after this error, I tried
and it crashed, despite my previous statement that I never saw
lag
produce a crash.Anecdotally, it seems to crash less often with
mutate(mtcars, a=c(NA,diff(hp)))
than it does withmtcars %>% mutate(a=c(NA,diff(hp)))
, but I don't have hard numbers on it.I cannot reproduce it on ubuntu-14.04, so I believe it's a windows thing.
R-3.2.1, dplyr-0.4.2 and dplyr-0.4.2.9002
The text was updated successfully, but these errors were encountered: