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

[Bug]: GPU crashing when generating an image

Open xxxneo7 opened this issue 3 years ago • 3 comments

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. image

Steps to reproduce the problem

  1. Launch webui-user.bat
  2. Open http://127.0.0.1:7860/
  3. 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

xxxneo7 avatar Nov 03 '22 17:11 xxxneo7

Do you have sufficient power? Maybe you're going over your power supply limit

I don't use any command line args

Try --medvram

ClashSAN avatar Nov 03 '22 20:11 ClashSAN

I have a video card like that, and some models can't generate an image larger than 512x512, otherwise I get an error.

mykeehu avatar Nov 04 '22 05:11 mykeehu

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 :)

mycpphurts avatar Nov 04 '22 12:11 mycpphurts

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 😀

xxxneo7 avatar Nov 10 '22 18:11 xxxneo7

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

Tedy202 avatar Oct 03 '23 02:10 Tedy202