AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: CONSTANT crash to black screen. RX 6800 #15541

Open abire2 opened 6 months ago

abire2 commented 6 months ago

Checklist

What happened?

Alright this is a problem that has been absolutely killing me for the past month and I can't find anything on it. Long story short, randomly, my pc will black screen, reboot itself, then does not display an image as if there were no gpu signal. A full power off and on turns on the pc like normal. This has ONLY happened in txt2img. This has ONLY started happening in the past ~30 days. Sometimes I can go a whole day without a single crash, and other times, like today, I crash within 10 seconds of clicking generate every time without fail. I have tried a plethora of things to try and fix this issue. This issue is so random; I think I fixed it by changing a setting but then 3 hours later it happens again.

Things I've tried: -reinstall of sd -couple different python versions (cant remember which. system info shows what im on rn) -different prompts (happens on any prompt) -deleting venv -tried like every commandline arg (system info shows my current ones) -very low resolutions like 100 does NOT make my pc crash however I believe that's because there's low gpu utilization -reseat gpu -reseat entire pc -undervolt gpu (temps never go above 70c and 85c hot spot) -overclocked gpu -full pc stress test through other programs like cinebench (never crashed once) -different power supply -different power bank + plugging into wall -reinstalled drivers -tried multiple driver versions (currently on 23.10.2 which has always been the most stable for me outside of sd) -different checkpoints, lora, etc. -updated motherboard bios -a couple others that I cant remember

Things I haven't tried off the top of my head: -windows reinstall -trying different gpu or motherboard

Additional info: -event viewer used to show gameinput errors + amd driver errors however I've fixed all of them but I still crash -again, only happens in txt2img. I've run inpaint or img2img upscales for hours and no crash -again, I ONLY crash in sd, ive done full system stress tests on multiple overclock + undervolt settings with no crash

I really hope someone can help with this and I'll try to provide as much info as I can. I'm starting to think this is simply a vram issue on my card and sd is the only thing that puts a big load on it which is why nothing else crashes it. I'm gonna try and borrow another amd gpu soon and see if it still happens. If I don't crash with a different one then I'll be in the market for an nvidia gpu. Anyways, I'm a complete novice and have tried every general solution that I can think of so I hope one of you guys can suggest something better, thanks in advance.

Steps to reproduce the problem

txt2img anything

What should have happened?

not crash

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo-2024-04-16-22-44.json

Console logs

pc crash cant retrieve

Additional information

No response

gnubrio commented 3 months ago

Same issue, brand new AMD build with 6800 and system crashes. Let me know if you figured anything out. I'm using Arch, imgtoimg works for me as well, only txttoimg crashes.

EDIT: The only way I got it to work was clocking my GPU way down. Maximum VRAM all the way down to 674MHz, anything above that crashes it even 675MHz, and the GPU clock to 1000MHz.

har-nick commented 3 months ago

Thank you for this advice @gnubrio, this has worked great with my 6800 XT!

However, for anyone reading this, the low clock rates may be unnecessary for you. I followed this by dropping my max rates to 750MHz, doubled to 1500MHz, and have left it at 2000MHz, with the preset max being 2250MHz.