stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Heavy UI lag when using Tree view with too many Loras
Checklist
- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet
What happened?
The recently added tree view is great, but it causes heavy lag on the UI once opened, even on other tabs of the web UI. Clicking on some options can take 3-5 seconds for them to react, and typing takes 1-2s for text to appear. This is mostly fixed once closing the tree view, though switching from the Generation tab back to the Lora tab takes about 10 seconds. This seems to be caused yet again by having way too many Loras (I'm starting to clean them up).
The last commit I tested that doesn't have this issue is this one https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/f939bce845ae07536b1c920618743af83e0b01ec
Before that I always had a very small delay when switching back and forth from the Lora tab, but after that the UI was fully responsive the whole way through.
Steps to reproduce the problem
- Open Extra Networks Lora tab
- Open Tree View
- Wait for it to load
- UI becomes unresponsive right after
What should have happened?
- Open Tree view
- Understandable proportional delay for loading such a high amount of files
- UI is fully responsive once everything is loaded
What browsers do you use to access the UI ?
Mozilla Firefox
Sysinfo
Console logs
No additional console logs related to the issue.
Additional information
No response
So I noticed the Civitai Helper extension wasn't displaying its thumbnails anymore again, and after testing for a bit with it enabled vs disabled, I think it might be the cause for the lag. I did say in the OP I tested without extensions but I should have actually done that. Will keep testing more as I keep trying to get out of Lora organizing hell.
So after about a month, I can confirm it was definitely Civitai Helper causing this issue, as I haven't had it since disabling it, and the issue did reappear when re-enabling it. It also seems the recent updates to the zixaphir fork also fixed this noticeable lag, it sort of "feels" like there's still a very minimal amount of it, but it's very negligible. I'd say this is closed for now.