Comfy-Org / Comfy-Org/ComfyUI

Hook cuMemAlloc_v2 failed | - Windows fatal exception: access violation

Open
#14,405 8 comments 0 reactions 0 assignees View on GitHub
Potential Bug
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

ComfyUI to boot up and start

### Actual Behavior

ComfyUI crashes during startup

### Steps to Reproduce

Just trying to launch ComfyUI

### Debug Logs

```powershell
: src-win/cuda-detour.c:38:INFO:aimdo_setup_hooks: installing 6 hooks
aimdo: src-win/cuda-detour.c:16:ALL:install_hook_entries: Hook cuMemAlloc_v2 failed 00007FFF0FB05340
Windows fatal exception: access violation

Stack (most recent call first):
File "E:\AI\ComfyUI\.venv-pt210\Lib\site-packages\comfy_aimdo\control.py", line 98 in init_devices
File "E:\AI\ComfyUI\main.py", line 234 in
Traceback (most recent call last):
File "E:\AI\ComfyUI\main.py", line 234, in
elif comfy_aimdo.control.init_devices(d.index for d in comfy.model_management.get_all_torch_devices()):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\ComfyUI\.venv-pt210\Lib\site-packages\comfy_aimdo\control.py", line 98, in init_devices
if lib.init(device_array, len(requested)):
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: exception: access violation writing 0x0000000000000000
```

### Other

**Crashes with :** RTX-3090, Python 3.13.5, torch 2.10.0+cu130
(this is my main venv that i been using for months)

I do have my older venv (that i keep up to date), and this works fine.
**Works with:** RTX-3090, Python 3.12 torch 2.7.1+cu128

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.