stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: RuntimeError: CUDA error

Open Jakewh opened this issue 3 weeks ago • 1 comments

Checklist

  • [x] The issue exists after disabling all extensions
  • [x] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [ ] The issue exists in the current version of the webui
  • [ ] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

Hello. I need some advice. When I try to generate an image, I get this error. RuntimeError: CUDA error: no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1 Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

Steps to reproduce the problem

When I try to generate an image

What should have happened?

Image

What browsers do you use to access the UI ?

No response

Sysinfo

https://pastebin.com/clone/up4rC9L1

Console logs

https://pastebin.com/rh4vKdGV

Additional information

No response

Jakewh avatar Dec 07 '25 09:12 Jakewh

you have from sysinfo

"nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 5060 Ti", you need to use new PyTorch 2.7.0 + use dev branch and tell it to --reinstall-torch or reinstall everything by deleting venv dir or manually install compatible torch version

  • see https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/16818

w-e-w avatar Dec 23 '25 19:12 w-e-w