[Bug]: GPU crashing when generating an image
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Win 10 64 bit RTX 3060 12gb (DisplayPort) 16gb RAM
When i start generating an image with txt2img, my gpu sort of crashes - the screen blacks out and only a restart helps.
I don't use any command line args, though i use a custom model.
Also, when i tried it at first, it worked fine. GPU started crashing after second launch. I tried reinstalling, but it didn't help.

Steps to reproduce the problem
- Launch webui-user.bat
- Open http://127.0.0.1:7860/
- Use any prompt and click "generate"
What should have happened?
I shoud get an image
Commit where the problem happens
Commit hash:
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
No response
Additional information, context and logs
No response
Do you have sufficient power? Maybe you're going over your power supply limit
I don't use any command line args
Try --medvram
I have a video card like that, and some models can't generate an image larger than 512x512, otherwise I get an error.
I don't use any command line args, though i use a custom model.
Following up ClashSAN and mykeehu's comments, you could try adding
--medvram
in your console arguments.
If argument doesn't work either, you can try
--lowvram
Can you paste the log you get on the bottom of where the image should generate?
It usually says why it wasn't possible, usually it's a "not enough allocated vram" type of error (in which these arguments try and fix that error on lower end cards and even high end cards sometimes).
I used to get those errors and I set my webui-user.bat's COMMANDLINE_ARGS to
set COMMANDLINE_ARGS=--lowvram --precision full --no-half
so it worked on a laptop with a GTX 1650 haha :)
Sorry, guys, but it turned out to be my PSU problem 😬 I sent my pc to a repair shop, they tested the pc with their psu and everything was fine So, sorry again for bothering you and thx for the help 😀
I am facing the same issue, i have radion rx 580 8gb ram, with a PSU of 600w. Still am facing the issue. It's not always but after few generations it crashes. And sometimes the images generated are blank have to press generate ones ot twice to get it work again