civitai / civitai-link-desktop

Manage your Civitai models for your Stable Diffusion Web UI models folder
16 stars 7 forks source link

Program slow startup and not responding for several minutes. #50

Open Doctor0S opened 3 months ago

Doctor0S commented 3 months ago

Every time I start my computer, I start the program and the program is nonresponsive for 10-15 minutes. This wasn't always the case, at one point it was pretty snappy. However, I had to adjust the repositories because they weren't pointing to the correct folders. This persists through uninstall and reinstall now.

Is this expected behavior?

Doctor0S commented 3 months ago

main.log

cmoody commented 3 months ago

Hey @Doctor0S ! Thanks for your patience on this. We just did a big overhaul to how we hash files and watch folders for models. Hoping this helps alleviate a lot of the slow startup issues and getting stuck on initial setup. Your app should automatically update to 1.18.0 but it might be worth reinstalling just so it doesnt try to start the download process in 1.16.1.

As for the model folders, if you uninstall and reinstall I think it should clear out your saved folders causing you to re-setup everything. Weve been talking about ways we could improve the folder setup since everyone has a different way they maintain models.

thiagojramos commented 2 months ago

Well, I was going to start a new issue, but since this one is already here, I'll just mention the message I was going to write in the new topic:


I know my case must be one of the few here, but the program takes a long time to start/load the models completely, taking up to about 10 minutes (it’s always been this way). I have around 2418 files (according to the link app count).

Details

![Desktop Image 19-06-2024 22-18-18-934](https://github.com/civitai/civitai-link-desktop/assets/45890502/dfebcf3e-2435-4d26-8775-081bead35e53)

And today, I noticed that it opened 2 instances instead of one as usual (I didn’t think that was even possible).

Details

![Desktop Image 19-06-2024 22-13-14-649](https://github.com/civitai/civitai-link-desktop/assets/45890502/2d74edc4-3b0f-474d-9c04-795ac06e4d3f)

In the devtools console of each one, there are only these image not found errors.

Details

![Desktop Image 19-06-2024 22-15-49-824](https://github.com/civitai/civitai-link-desktop/assets/45890502/850f2e17-c6e2-4269-9236-e91d08f7921b)

And also, the text "Loading Models" is always there.

Details

![Desktop Image 19-06-2024 22-23-02-659](https://github.com/civitai/civitai-link-desktop/assets/45890502/878a82ad-0148-43c1-86ba-e285fb05e434)

I noticed that since I started writing this issue, the errors in the devtools console jumped from 16 to 32 (I closed the second instance, but the errors appeared much later).

Details

![Desktop Image 19-06-2024 22-23-02-659](https://github.com/civitai/civitai-link-desktop/assets/45890502/70b3993a-cbaf-4035-8602-0b19f1bcdd24)

Log: main.log