lshqqytiger / stable-diffusion-webui-amdgpu

Stable Diffusion web UI
GNU Affero General Public License v3.0
1.69k stars 178 forks source link

[Bug]: Generating images causes driver crash after some time #255

Closed Gamemaster2022 closed 10 months ago

Gamemaster2022 commented 10 months ago

Is there an existing issue for this?

What happened?

Generating images after some time causes driver crash that require reinstall after reboot

Steps to reproduce the problem

  1. Start Stable Diffusion webui directml
  2. Start generating more pictures (or turn on "Generate forever", pics are res about 400x300 upscaled to 800x600)
  3. Video drivers crash making GPU fans spin at maximum speed (requires restart and reinstalling drivers)

What should have happened?

SD shouldn't have crashed my PC and kept generating

Version or Commit where the problem happens

253a6bb (but happened to me at every commit yet)

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

AMD GPUs

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--medvram --no-half-vae --no-half --opt-sub-quad-attention --opt-split-attention-v1 --autolaunch --theme=dark

List of extensions

openpose-editor a1111-sd-webui-tagcomplete posex-0.4 sd-extension-system-info sd-webui-controlnet sd-webui-openpose-editor

Console logs

Can't get the console log as it crashes before I can do anything

Additional information

I am not really sure if it's a problem related with the webui itself but I am still making this issue to let you know about it. Maybe it's a DirectML related problem

This is my specifications: AMD Athlon 200GE 24GB RAM Radeon RX580 8GB

lshqqytiger commented 10 months ago

The symptoms appear to be due to unstable power supply.

Gamemaster2022 commented 10 months ago

Hello, thanks for fast reply, I already have 500W Seasonic power supply but I will try to get one with at least 600W

lshqqytiger commented 10 months ago

Try under-volting (and under-clocking) using AMD Software.

ocarina0001 commented 10 months ago

I'm getting the same issue too, same GPU but different PSU. I just tried to undervolt it by -20% and that didn't stop it so I'm gonna try again but with -50%.

EDIT: Important to note that this has actually been happening to me for a while, and it also happens at the very end of the image gen.

Gamemaster2022 commented 10 months ago

Problem solved - upgraded to 700W PSU from 500W (it arrived today) and no more problems.

EDIT: It appeared to be solved but the same issue came back. It took a bit longer than usually now tho. The problem is caused by crashing drivers. Now I don't understand why.

Gamemaster2022 commented 10 months ago

I'm getting the same issue too, same GPU but different PSU. I just tried to undervolt it by -20% and that didn't stop it so I'm gonna try again but with -50%.

EDIT: Important to note that this has actually been happening to me for a while, and it also happens at the very end of the image gen.

One question,

how many tabs do you usually have open in your browser?

Gamemaster2022 commented 10 months ago

So far, closing few tabs in my browser helped a lot