lobehub / sd-webui-lobe-theme

🅰️ Lobe theme - The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.
https://github.com/AUTOMATIC1111/stable-diffusion-webui
GNU Affero General Public License v3.0
2.38k stars 222 forks source link

[Bug] Lobe causing the infinite loading of the model preview feature in web UI 本主题插件导致 webui 的模型预览图功能和已安装扩展列表无限加载 #412

Open BylethC opened 1 year ago

BylethC commented 1 year ago

💻 系统环境 | Operating System

Windows

🌐 浏览器 | Browser

Edge

📦 SD Wbui 版本或提交 | Version or Commit

5ef669d

📦 Lobe Theme 版本或提交 | Version or Commit

ea600a4

🐛 问题描述 | Bug Description

开启lobe主题插件后,几乎导致webui的模型预览图功能完全失效,永远加载不出来

只要关闭lobe插件,恢复到webui默认的gradio样式后,就会一切正常!

After activating the Lobe theme plugin, it almost completely disables the model preview feature of the web UI. The preview image never loads. However, once you deactivate the Lobe plugin and revert back to the default Gradio style of the web UI, everything returns to normal!

image

此外,扩展中的「已安装扩展」界面也受到了影响!也会无限加载!

image

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

开启lobe主题插件,尝试使用webui的模型预览图功能即可复现问题

To reproduce the issue, please activate the Lobe theme plugin and try using the web UI's model preview feature.

📝 补充信息 | Additional Information

No response

canisminor1990 commented 1 year ago

排查方法,将 webui 和 lobe theme 更新到最新,如果依然有问题,尝试排查↓是否和其他插件存在冲突

canisminor1990 commented 1 year ago

https://github.com/lobehub/sd-webui-lobe-theme/issues/410

antorio commented 1 year ago

webui already latest, lobe theme already latest, no conflict log on console whatsoever. This infinite loading problem is still going on. And why the image is not just cache from webui? seems to new loading everytime it opens.

How to solve this? the source code already minified

Or please just take off the loading layer altogether if u will

jinjin327 commented 1 year ago

是的,最新3.08版本无限加载问题依然存在

Kryptonic83 commented 11 months ago

I'm having same problem in Edge browser as well, strange. Works ok in Chrome

lllllllllllllllllllllllll commented 11 months ago

I'm also having a strange version of this problem. In chrome browsers it doesn't load at all like the others said, but in Firefox it shows the model cards with the loading overlay that never goes away. I can select and use them just fine, the only issue is it's darkened and loading number keeps increasing and never goes away.

Is there a way to just disable the loading overlay since that's the obvious bugged part?

Stable_Diffusion_—_Mozilla_Firefox_NLy6XYPN8U

antorio commented 11 months ago

is there anybody know how to solve this? or have any suspect to where the problem lies? the last update seems do nothing to this problem

snowyu commented 11 months ago

@canisminor1990 同上, 所有的预览全部卡住扩展页面也卡住, 今天刚clone的最新的版本, 这也导致:

  1. generate失效,无法创建任何图.
  2. ctrl+c停止sd, 然后从sd的extensions目录中移除sd-webui-lobe-theme,重启sd, 依旧卡死, generate依然失效,无法创建任何图.
    • 必须在扩展选项中点击"Apply and restart UI" 才能恢复正常.
    • 或者重新刷新页面也可以恢复,实质应该是js脚本没有更新,还是用的sd-webui-lobe-theme中的js,估计是sd-webui-lobe-theme中的js 预览加载有bug
Pitpe12 commented 11 months ago

Try removing all Extra networks (Lora, Lycoris) from the folders and only keeping a few you want to use right now, it should remove the infinite loading. It did in my machine, at least. I think the Webui cannot work with more than 100-200 extra networks in the folders, I think it depends on each machine (or maybe it's something completely unrelated to the machine's performance I cannot say), but that's where mine started to cause infinite loading.

antorio commented 11 months ago

Try removing all Extra networks (Lora, Lycoris) from the folders and only keeping a few you want to use right now, it should remove the infinite loading. It did in my machine, at least. I think the Webui cannot work with more than 100-200 extra networks in the folders, I think it depends on each machine (or maybe it's something completely unrelated to the machine's performance I cannot say), but that's where mine started to cause infinite loading.

@Pitpe12 I don't think we can blame this to A1111 webui, because without Lobe Theme they all smoothly no error nor the infinite loading. Besides, I don't use extra network that many, only have about 20-30 of them. And I have tried on three different machines.

Pitpe12 commented 11 months ago

Try removing all Extra networks (Lora, Lycoris) from the folders and only keeping a few you want to use right now, it should remove the infinite loading. It did in my machine, at least. I think the Webui cannot work with more than 100-200 extra networks in the folders, I think it depends on each machine (or maybe it's something completely unrelated to the machine's performance I cannot say), but that's where mine started to cause infinite loading.

@Pitpe12 I don't think we can blame this to A1111 webui, because without Lobe Theme they all smoothly no error nor the infinite loading. Besides, I don't use extra network that many, only have about 20-30 of them. And I have tried on three different machines.

@antorio Yeah, I think you are right. Went back and put well over 200 extra networks in and other than it took ~10 more seconds to fully load there was no infinite loading. But then as a test I activated the sd-webui-controlnet extension and sd-webui-openpose-editor extension (since I don't use them often I disabled them), infinite loading occurred. All I can say then it's gotta be extension conflict as mentioned above. It honestly feels like a “timeout” when it comes to loading some extensions, maybe the number of active extensions causes that? It also seems like with every extension update, lobe might not work well with different extensions each time.

antorio commented 11 months ago

in the meantime, I've found using --no-gradio-queue command parameter in webui-user.sh (or webui-user.bat in you're on windows) solved the problem. Other extension now works too.

I think probably because lobe's preloading-code hitchhiking the websocket conn, instead of just using normal https connection, or there's no error handler when it timed-out, or no preloading time limitation, or all the above. When it stuck, this makes it kinda hinder other extension to works smoothly too because of the bottleneck lobe was created.

@Pitpe12

Pitpe12 commented 11 months ago

@antorio Interesting fix, fortunately I have not had it happen even with various extension updates, but I'll try to use it if I ever get infinite loading again. Also, websocket being weird I guess.

hakaserver commented 10 months ago

The infinite loading happens to me when using chrome, but not when using firefox. However I suspect it isn't actually loading anything anymore: if I click the refresh button, it actually refreshes the model list even though it just keeps the loading progress running uninterrupted.

I'd test disabling the gradio queue, but unfortunately, the civitai-shortcut extension requires gradio queue function, which I use a lot.

neokera commented 10 months ago

I also encountered the same problem. I had to restart Webui many times before it could work normally, which greatly affected the user experience.

chowtime3721 commented 10 months ago

I had the same problem, I noticed that this occurs on specific browser which in my case is MS Edge, however when I tried on Brave and Firefox browsers it doesn't happen similar issue as MS Edge

i-iooi-i commented 10 months ago

遇到了相同的问题,不过这个问题更新过几版,似乎一直存在的。

image image

重载UI好像也无法解决。

NarakoYo commented 9 months ago

me too

NaughtDZ commented 8 months ago

俺也一样!

lobehubbot commented 8 months ago

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


Me too!

jamsdrak commented 7 months ago

The Issue of the infinity loading is still happening | version: [v1.7.0] •  python: 3.10.6  •  torch: 2.0.1+cu118  •  xformers: N/A  •  gradio: 3.41.2 |

In my personalize chrome the problem keeps happening, infinite loading, in tabs Extension, Checkpoints, Lora, etc. Especially the extension, making it annoying not being able to disable the theme.

In incognito mode (that dosent load any chrome extension) the theme works fine. Soo Just "USE INCOGNITO MODE" or like below

PARTIAL SOLUTIONS Add to the start bat file --no-gradio-queue . But apparently this disable the civitai-shortcut extension (no sure what they meant by this)

i-iooi-i commented 4 months ago

似乎发现问题出在哪里了。

我使用Chrome浏览器,安装了很多Chrome扩展插件,启用 lobe theme 的时候,模型缩略图一直提示 “载入中”。 当我使用Chrome的访客模式的时候,缩略图载入正常。

应该是某些Chrome扩展插件造成的问题。

lobehubbot commented 4 months ago

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


It seems that the problem is found.

I use the Chrome browser and have installed many Chrome extensions. When I enable the lobe theme, the model thumbnail keeps saying "Loading". When I use Chrome's guest mode, the thumbnails load fine.

The problem may be caused by some Chrome extensions.