BlafKing / sd-civitai-browser-plus

Extension to access CivitAI via WebUI: download, delete, scan for updates, list installed models, assign tags, and boost downloads with multi-threading.
GNU Affero General Public License v3.0
320 stars 55 forks source link

[Bug]: can't start webui with `--no-gradio-queue` enabled #77

Closed cupang-afk closed 1 year ago

cupang-afk commented 1 year ago

Describe the bug.

ValueError: Progress tracking requires queuing to be enabled

log provided below

Steps to reproduce the problem.

enable --no-gradio-queue when launching

Expected behavior

webui run

System info

Console logs

Traceback (most recent call last):
  File "/root/sd/launch.py", line 48, in <module>
  File "/root/sd/launch.py", line 44, in main
  File "/root/sd/modules/launch_utils.py", line 436, in start
  File "/root/sd/webui.py", line 79, in webui
  File "/root/.venv/lib/python3.10/site-packages/gradio/blocks.py", line 1858, in launch
    self.validate_queue_settings()
  File "/root/.venv/lib/python3.10/site-packages/gradio/blocks.py", line 1690, in validate_queue_settings
    raise ValueError("Progress tracking requires queuing to be enabled.")
ValueError: Progress tracking requires queuing to be enabled.

Additional information

when i uninstalled this extension, webui run just fine

BlafKing commented 1 year ago

Well, a fix for this is to not use the --no-gradio-queue command flag. This extension relies on the queue system to show download progression, it won't work without it.

May I ask what you need this flag for?

cupang-afk commented 1 year ago

May I ask what you need this flag for?

running on mobile broken when using gradio queue (webui has warning for that but i forgot what the messages)

run fine when without gradio queue

i can rely on the logs alone when it come to download progress, so for my use case i really don't need it to be shown on the webui

BlafKing commented 1 year ago

That's odd, SD-WebUI works fine for me on mobile without requiring --no-gradio-queue to be used.

I'll see if I can add a check that disables the download progress on the web page if --no-gradio-queue is used.

cupang-afk commented 1 year ago

That's odd, SD-WebUI works fine for me on mobile without requiring --no-gradio-queue to be used.

its an old phone, sorry bout that.

maybe the chrome version in this phone is not supporting websocket yet eventhough the chrome version is already latest

BlafKing commented 1 year ago

The latest hotfix now disables progress tracking if the --no-gradio-queue command flag is used.

It currently does not automatically display the download progress in the terminal when the flag is used, I will try to add that in a future version, a workaround for now is enabling the Aria2 logs in the CivitAI settings tab :)

I'll close this issue since it should be resolved now! :)