LykosAI / StabilityMatrix

Multi-Platform Package Manager for Stable Diffusion
https://lykos.ai
GNU Affero General Public License v3.0
4.71k stars 298 forks source link

RuntimeError: CUDA error: an illegal instruction was encountered #635

Open ClaudeRobbinCR opened 5 months ago

ClaudeRobbinCR commented 5 months ago

The below error occurs when I try to launch SD webui.

Nvidia RTX 3060, with the 552xx drivers. Should I install some other version for the drivers?

"Traceback (most recent call last): File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api result = await self.call_function( File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(args, **kwargs) File "D:\matrix\Packages\stable-diffusion-webui\modules\call_queue.py", line 77, in f devices.torch_gc() File "D:\matrix\Packages\stable-diffusion-webui\modules\devices.py", line 81, in torch_gc torch.cuda.empty_cache() File "D:\matrix\Packages\stable-diffusion-webui\venv\lib\site-packages\torch\cuda\memory.py", line 159, in empty_cache torch._C._cuda_emptyCache() RuntimeError: CUDA error: an illegal instruction was encountered 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. "

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

ClaudeRobbinCR commented 4 months ago

Any updates? I find it working under ubuntu with 535 but not 550 though.

ClaudeRobbinCR commented 4 months ago

Any updates? I find it working under ubuntu with 535 but not 550 though.