Comfy Launch failure
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
Successful completion of installation process leading to display of a comfyUI window.
### Actual Behavior
The process stalls with an error 803.
Following the instructions on the web site
https://comfyui-wiki.com/en/install/install-comfyui/install-comfyui-on-linux
The command "comfy install" results in this warning message in red, output twice
"The recent workspace /home/eng883/comfy/ComfyUI is not a valid ComfyUI path."
Carrying on anywy, the command "comfy launch'" gives an error 803 . Here is the relevant section of output to the terminal:-
"Traceback (most recent call last):
File "/home/eng883/comfy/ComfyUI/main.py", line 149, in
import execution
File "/home/eng883/comfy/ComfyUI/execution.py", line 15, in
import comfy.model_management
File "/home/eng883/comfy/ComfyUI/comfy/model_management.py", line 237, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
^^^^^^^^^^^^^^^^^^
File "/home/eng883/comfy/ComfyUI/comfy/model_management.py", line 187, in get_torch_device
return torch.device(torch.cuda.current_device())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/eng883/comfy-env/lib/python3.12/site-packages/torch/cuda/__init__.py", line 1069, in current_device
_lazy_init()
File "/home/eng883/comfy-env/lib/python3.12/site-packages/torch/cuda/__init__.py", line 410, in _lazy_init
torch._C._cuda_init()
RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 803: system has unsupported display driver / cuda driver combination
"
### Steps to Reproduce
Follow the steps to install comfyI for Ubuntu given on this web site
https://comfyui-wiki.com/en/install/install-comfyui/install-comfyui-on-linux
### Debug Logs
```powershell
no log files produced. Terminal output reproduced above
```
### Other
I have not progressed to the point where there might be an issue with custom nodes.
This error occurs both with GPU and CPU only options.
Contributor guide
Assessment
This issue has not been assessed yet.