-
Notifications
You must be signed in to change notification settings - Fork 74
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 Aborted #1273
Comments
Thanks for reporting @feifeidrew ! What's your OS? |
I get the same error on a windows 11 laptop. I am not using any GPU. I was trying to run the first lab from the ISLR2 textbook and got this crash on windows, but it worked correctly on my MacBook Air laptop. Then I tried the minimal example above and it also crashed RStudio R Session Aborted. |
Thanks for reporting @glennfulford ! What's you RStudio version? |
Sorry, I should have said. I am using RStudio version 2024.12.0+467 When it didn't work I also tried to install the development version, but I seemed to be getting a lot of permission errors about not being able to copy dll files, e.g. problem copying C:\Users\Glenn\AppData\Local\R\win-library\4.4\00LOCK-torch\torch\lib\c10.dll to C:\Users\Glenn\AppData\Local\R\win-library\4.4\torch\lib\c10.dll: Permission denied torch version 14.4.1. I will try to install the torch 13.1 version, if I can. My student also got exactly the same error in his windows machine. Thanks, |
Thanks @glennfulford ! Would you be able to also post your
I'm still unable to reproduce in my local Windows machine. |
Actually, I was able to reproduce if installing using the pre-built binaries, but not if installing directly from CRAN. |
This is my sessInfor() output. R version 4.4.2 (2024-10-31 ucrt) Matrix products: default locale: time zone: Australia/Brisbane attached base packages: other attached packages: loaded via a namespace (and not attached): |
Thanks Daniel, Your comment,
I just want to clarify, do you mean you got it to work by installing from source, e.g. install.packages("torch_0.14.1.tar.z"), after downloading this file, instead of the usual install.packages("torch") ? When I tried that I got copy permission errors. Am I supposed to run it in Administrator mode? I'll try it again after reinstalling R and Rstudio. |
I tried the installation from source. It still crashes Rstudio. |
To clarify, I doesn't crash for me if I do: install.packages("torch")
library(torch)
# accept to download additional binaries It crashes if I run: options(timeout = 600) # increasing timeout is recommended since we will be downloading a 2GB file.
kind <- "cpu"
version <- "0.14.1"
options(repos = c(
torch = sprintf("https://torch-cdn.mlverse.org/packages/%s/%s/", kind, version),
CRAN = "https://cloud.r-project.org" # or any other from which you want to install the other R dependencies.
))
install.packages("torch") |
Actually, I was able to reproduce if installing using the pre-built binaries, but not if installing directly from CRAN.nks for the clarifacation. For me it definitely crashes if I do
|
Hi @glennfulford ! I made a speculative fix on current dev version of torch. It would be nice if you could try it and let me know if this is still an issue:
|
I have the same issue with 0.14.1 CPU version. sessionInfo() Matrix products: default locale: time zone: Europe/Berlin attached base packages: other attached packages: loaded via a namespace (and not attached): Rstudio has been updated to the latest version and all packages have been updated. As soon as I call torch_tensor() a crash happens. It must be something with the communication to Rstudio that is causing this behavior. |
Can you install the dev version of torch, using Thanks! |
@dfalbel |
Cool! I'll submit a new version to CRAN soon. |
Using remotes::install_github("mlverse/torch") worked for me also. |
After i installed torch package, I wanna see if it worked, so i tried
"torch_tensor(1:5)"
Then it said R Session Aborted.
Could anyone help me plz? thanks o(╥﹏╥)o
here's the code:
install.packages("torch")
torch::install_torch()
library(torch)
torch_tensor(1:5)
The text was updated successfully, but these errors were encountered: