[GH-ISSUE #217] [Bug] endless loading #185

Closed
opened 2026-11-07 17:42:07 +07:00 by bsakaguchi · 17 comments
Owner

Originally created by @ZullD on GitHub (Sep 3, 2023).
Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/217

Issue Feedback

  • I confirm that I have searched for a solution to this issue in the FAQ and couldn't find a solution.
  • I confirm that I have searched for this issue in the Issues list (including closed ones) and couldn't find a solution.
  • I confirm that I have read the Wiki and couldn't find a solution.

Describe the Issue

When an extension is enabled, there is an endless loading on the extensions page. And on pages with hypernet, embedding, lora, checkpoint.

Pressing the "Check for updates" button on extension tab and "Refresh" button on extranets tab helps to load information. But the timer and counter keep running. And the screen remains gray.
2023-09-03_06-17-16
2023-09-03_06-20-09
2023-09-03_06-25-36
I cleaned the gradio cache and the pip. Without effect. Disabled all extensions except this one. The same thing. In all browsers. Opera, Edge, Chrome, Firefox. I also cleaned the cache in browsers. It doesn't help.
I have a lot of loras and checkpoints installed. Symbolic links lead to them on different disks.

Steps to Reproduce

No response

Screenshot or log

Absolutely no errors pop up during the load. The load is clean and error-free.

OS

Windows

Browser

Chrome

Stable Diffusion WebUI version

v1.6.0

Extension version

6a819041

Python version

3.10.9

Gradio version

3.41.2 and 3.42.0

Originally created by @ZullD on GitHub (Sep 3, 2023). Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/217 ### Issue Feedback - [X] I confirm that I have searched for a solution to this issue in the [FAQ](https://aiodoc.physton.com/FAQ.html) and couldn't find a solution. - [X] I confirm that I have searched for this issue in the [Issues](https://github.com/Physton/sd-webui-prompt-all-in-one/issues) list (including closed ones) and couldn't find a solution. - [X] I confirm that I have read the [Wiki](https://aiodoc.physton.com/) and couldn't find a solution. ### Describe the Issue When an extension is enabled, there is an endless loading on the extensions page. And on pages with hypernet, embedding, lora, checkpoint. Pressing the "Check for updates" button on extension tab and "Refresh" button on extranets tab helps to load information. But the timer and counter keep running. And the screen remains gray. ![2023-09-03_06-17-16](https://github.com/Physton/sd-webui-prompt-all-in-one/assets/143943046/092e5ab7-9f1c-4f3e-ba3f-86dea6646bad) ![2023-09-03_06-20-09](https://github.com/Physton/sd-webui-prompt-all-in-one/assets/143943046/5a655a11-4d7b-46f1-a216-a171adafdafa) ![2023-09-03_06-25-36](https://github.com/Physton/sd-webui-prompt-all-in-one/assets/143943046/a3e8d647-6a21-4c84-a560-cd3a0523a191) I cleaned the gradio cache and the pip. Without effect. Disabled all extensions except this one. The same thing. In all browsers. Opera, Edge, Chrome, Firefox. I also cleaned the cache in browsers. It doesn't help. I have a lot of loras and checkpoints installed. Symbolic links lead to them on different disks. ### Steps to Reproduce _No response_ ### Screenshot or log Absolutely no errors pop up during the load. The load is clean and error-free. ### OS Windows ### Browser Chrome ### Stable Diffusion WebUI version v1.6.0 ### Extension version 6a819041 ### Python version 3.10.9 ### Gradio version 3.41.2 and 3.42.0
Author
Owner

@Issues-translate-bot commented on GitHub (Sep 3, 2023):

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Bug]

<!-- gh-comment-id:1704300985 --> @Issues-translate-bot commented on GitHub (Sep 3, 2023): > Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿 ---- **Title:** [Bug]
Author
Owner

@ZullD commented on GitHub (Sep 3, 2023):

Now I found out one thing. If you open two windows with automatic1111 and click refresh in one window, and then wait until the tab with extranets is updated and at the moment when it is updated, switch to the second window and open the tab with extranets there. In the second window everything will be displayed normally, without the eternal loading time and gray shroud.

Perhaps the extension does not allow the web interface to send a signal to update-refresh information automatically after opening the tab with extranets and extensions. This is evidenced by manually launching the refresh and intercepting the response in the second window.

<!-- gh-comment-id:1704385739 --> @ZullD commented on GitHub (Sep 3, 2023): Now I found out one thing. If you open two windows with automatic1111 and click refresh in one window, and then wait until the tab with extranets is updated and at the moment when it is updated, switch to the second window and open the tab with extranets there. In the second window everything will be displayed normally, without the eternal loading time and gray shroud. Perhaps the extension does not allow the web interface to send a signal to update-refresh information automatically after opening the tab with extranets and extensions. This is evidenced by manually launching the refresh and intercepting the response in the second window.
Author
Owner

@Physton commented on GitHub (Sep 4, 2023):

I don't know how this situation occurred. In theory, this extension should not affect the loading of other functionalities.

Please provide more information for me to investigate:

  1. Which translation API are you using?
  2. How were your symbolic links created, and what symbolic links exist?
  3. Can you package and send the "storage" directory under your plugin directory to my email: physton@163.com?
<!-- gh-comment-id:1704506668 --> @Physton commented on GitHub (Sep 4, 2023): I don't know how this situation occurred. In theory, this extension should not affect the loading of other functionalities. Please provide more information for me to investigate: 1. Which translation API are you using? 2. How were your symbolic links created, and what symbolic links exist? 3. Can you package and send the "storage" directory under your plugin directory to my email: physton@163.com?
Author
Owner

@ZullD commented on GitHub (Sep 4, 2023):

Hello!

I use the API from yandex. But this does not affect in any way, since with a clean installation of the extension and disabling the translation function, exactly the same thing happens.

In the following directories inside the stable-diffusion-webui folder, I have created many symbolic links leading to different disks.

stable-diffusion-webui\models\Lora
stable-diffusion-webui\models\LyCORIS
stable-diffusion-webui\models\Stable-diffusion\

To be precise, on four different disks. About 15-20 links in each of these directories (Lora, LyCORIS, Stable-diffusion). And in total I have a little more than 3000 loras and about 500 checkpoints.

Symbolic links are created by a regular command in windows. This one.

mklink /j "C:\dir1" "D:\dir2"

I sent the information from storage to your email.

Thanks for the great extension. It is very functional!

<!-- gh-comment-id:1704636587 --> @ZullD commented on GitHub (Sep 4, 2023): Hello! I use the API from yandex. But this does not affect in any way, since with a clean installation of the extension and disabling the translation function, exactly the same thing happens. In the following directories inside the stable-diffusion-webui folder, I have created many symbolic links leading to different disks. stable-diffusion-webui\models\Lora\ stable-diffusion-webui\models\LyCORIS\ stable-diffusion-webui\models\Stable-diffusion\ To be precise, on four different disks. About 15-20 links in each of these directories (Lora, LyCORIS, Stable-diffusion). And in total I have a little more than 3000 loras and about 500 checkpoints. Symbolic links are created by a regular command in windows. This one. mklink /j "C:\dir1" "D:\dir2" I sent the information from storage to your email. Thanks for the great extension. It is very functional!
Author
Owner

@Physton commented on GitHub (Sep 4, 2023):

Sorry, I accidentally closed this issue.
I will take some time to carefully troubleshoot this issue.

<!-- gh-comment-id:1704637556 --> @Physton commented on GitHub (Sep 4, 2023): Sorry, I accidentally closed this issue. I will take some time to carefully troubleshoot this issue.
Author
Owner

@Physton commented on GitHub (Sep 5, 2023):

I used the storage file you provided and created the same symbolic link as you did, but I didn't test for this issue. Everything is working fine.

<!-- gh-comment-id:1705922210 --> @Physton commented on GitHub (Sep 5, 2023): I used the storage file you provided and created the same symbolic link as you did, but I didn't test for this issue. Everything is working fine.
Author
Owner

@Physton commented on GitHub (Sep 5, 2023):

I'm unable to reproduce the issue, so I don't know how to fix it.

<!-- gh-comment-id:1705924538 --> @Physton commented on GitHub (Sep 5, 2023): I'm unable to reproduce the issue, so I don't know how to fix it.
Author
Owner

@Physton commented on GitHub (Sep 7, 2023):

Just discovered that the code submitted in PR #214 causes the webpage to freeze for at least 10 seconds or more after each refresh. Therefore, I have disabled the code submitted in PR #214 for now. It's possible that this code is causing your issue. You can try again.

<!-- gh-comment-id:1709713850 --> @Physton commented on GitHub (Sep 7, 2023): Just discovered that the code submitted in PR #214 causes the webpage to freeze for at least 10 seconds or more after each refresh. Therefore, I have disabled the code submitted in PR #214 for now. It's possible that this code is causing your issue. You can try again.
Author
Owner

@ZullD commented on GitHub (Sep 7, 2023):

Unfortunately, it didn't help. Sadly. But in any case, thank you so much for the great extension! And thank you for continuing to improve it!
Apparently in my case this is some so specific bug. :-)

<!-- gh-comment-id:1709839220 --> @ZullD commented on GitHub (Sep 7, 2023): Unfortunately, it didn't help. Sadly. But in any case, thank you so much for the great extension! And thank you for continuing to improve it! Apparently in my case this is some so specific bug. :-)
Author
Owner

@ZullD commented on GitHub (Sep 12, 2023):

I figured out the problem in detail. And here's what I found out. The extension cannot work with more than 2000 loras. It's not about symbolic links, the problem is precisely in excess of the amount of loras or other hypernetworks (but I have more than 3500 thousand lora). I consistently added the amount of lora in the catalog (disabling symbolic links completely) and at a certain point, when exceeding 2000, everything began to hang with endless loading. The extension simply cannot digest such a large number of loras.

I did all this on a clean system where there was nothing else. The automatic was clean and just installed.

<!-- gh-comment-id:1715540006 --> @ZullD commented on GitHub (Sep 12, 2023): I figured out the problem in detail. And here's what I found out. The extension cannot work with more than 2000 loras. It's not about symbolic links, the problem is precisely in excess of the amount of loras or other hypernetworks (but I have more than 3500 thousand lora). I consistently added the amount of lora in the catalog (disabling symbolic links completely) and at a certain point, when exceeding 2000, everything began to hang with endless loading. The extension simply cannot digest such a large number of loras. I did all this on a clean system where there was nothing else. The automatic was clean and just installed.
Author
Owner

@ZullD commented on GitHub (Sep 12, 2023):

I think the number is from 2000 to 3000, because apparently the number of all hypernetworks and checkpoints is taken into account, and not each one individually.

<!-- gh-comment-id:1715574987 --> @ZullD commented on GitHub (Sep 12, 2023): I think the number is from 2000 to 3000, because apparently the number of all hypernetworks and checkpoints is taken into account, and not each one individually.
Author
Owner

@Physton commented on GitHub (Sep 12, 2023):

I'm glad you found the cause. However, fixing this bug is not easy. It requires downloading over 2000 Lora for testing, and I will take the time to do that. Additionally, have you used the Civitai hepler to generate info files for these Lora?

<!-- gh-comment-id:1715634592 --> @Physton commented on GitHub (Sep 12, 2023): I'm glad you found the cause. However, fixing this bug is not easy. It requires downloading over 2000 Lora for testing, and I will take the time to do that. Additionally, have you used the Civitai hepler to generate info files for these Lora?
Author
Owner

@ZullD commented on GitHub (Sep 12, 2023):

Yes. Information has been downloaded to all loras using the Civitai hepler. Picture and information file.

<!-- gh-comment-id:1715644023 --> @ZullD commented on GitHub (Sep 12, 2023): Yes. Information has been downloaded to all loras using the Civitai hepler. Picture and information file.
Author
Owner

@ZullD commented on GitHub (Sep 12, 2023):

Definitely. If we take into account embeddings, hypernet, lora, lycoris and checkpoints, then the figure is closer to 3000.

<!-- gh-comment-id:1716272875 --> @ZullD commented on GitHub (Sep 12, 2023): Definitely. If we take into account embeddings, hypernet, lora, lycoris and checkpoints, then the figure is closer to 3000.
Author
Owner

@ZullD commented on GitHub (Sep 12, 2023):

And one more clarification. It is the number of files that matters. After a new scan, civitaihelper added a json file to each lora, embeddings, etc. Consequently, the total number of files increased by another quarter (it was 9000 and became 12000) and again there was an endless load.

Summing up the overall result. The total number of files in hypernet directories should not exceed 9000 (3000 directly by loras and so on and 3000 info and 3000 pictures) otherwise this bug occurs with infinite loading.

I did everything I could to catch and understand the reason for the error. I hope this information will be useful.

<!-- gh-comment-id:1716362660 --> @ZullD commented on GitHub (Sep 12, 2023): And one more clarification. It is the number of files that matters. After a new scan, civitaihelper added a json file to each lora, embeddings, etc. Consequently, the total number of files increased by another quarter (it was 9000 and became 12000) and again there was an endless load. Summing up the overall result. The total number of files in hypernet directories should not exceed 9000 (3000 directly by loras and so on and 3000 info and 3000 pictures) otherwise this bug occurs with infinite loading. I did everything I could to catch and understand the reason for the error. I hope this information will be useful.
Author
Owner

@Physton commented on GitHub (Sep 14, 2023):

Update to the latest version and see if it resolves your issue.

<!-- gh-comment-id:1718700482 --> @Physton commented on GitHub (Sep 14, 2023): Update to the latest version and see if it resolves your issue.
Author
Owner

@ZullD commented on GitHub (Sep 14, 2023):

Yes! You fixed it! That's great! Thanks!

<!-- gh-comment-id:1718955975 --> @ZullD commented on GitHub (Sep 14, 2023): Yes! You fixed it! That's great! Thanks!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Physton/sd-webui-prompt-all-in-one#185
No description provided.