win10安装RStudio报错
原创大约 1 分钟
背景介绍
在windows10中安装RStudio后,启动一闪而过。经过日志和命令行查看发现错误如下
# win10 启动RStudio报错
C:\Program Files\RStudio>rstudio.exe
C:\Program Files\RStudio>
[5828:0125/182238.478:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.490:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.490:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.490:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.505:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.505:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.505:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.505:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.521:ERROR:gpu_process_host.cc(951)] GPU process launch failed: error_code=18
[5828:0125/182238.521:FATAL:gpu_data_manager_impl_private.cc(431)] GPU process isn't usable. Goodbye.
环境说明
系统为windows10桌面操作系统
RStudio版本为是 RStudio-2023.12.0-369
nvidia版本信息如下 :C:\Users\Administrator>nvidia-smi
Thu Mar 15 18:21:43 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 551.23 Driver Version: 551.23 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4070 ... WDDM | 00000000:01:00.0 On | N/A |
| 0% 28C P8 5W / 220W | 237MiB / 12282MiB | 1% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 4272 C+G ..._8wekyb3d8bbwe\Microsoft.Photos.exe N/A |
| 0 N/A N/A 7076 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 8372 C+G ....Search_cw5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 8924 C+G ...CBS_cw5n1h2txyewy\TextInputHost.exe N/A |
+-----------------------------------------------------------------------------------------+
解决方案
"添加启动参数""
"C:\Program Files\RStudio\rstudio.exe" --no-sandbox
验证问题是否解决
双击软件发现问题已经解决