Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The UI will stuck in the intro console command, and wont launch, when having a bad internet #210

Closed
1 task done
orangpelupa opened this issue Dec 13, 2023 · 3 comments

Comments

@orangpelupa
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

when having a bad internet with lots of time outs, the UI will stuck in the intro console command, and wont launch. easily reproducible by manually setting gateway to nonexistent one

Steps to reproduce the problem

  1. manually set your local ip address
  2. set to a non-existent gateway (e.g. 192.168.0.0)
  3. launch stable diffusion webui ux

What should have happened?

it should show the UI once the intro console command finished doing its thing (usually in less than 1 second)

Sysinfo

cannot be done, because the webui hasnt opened yet, it only showing the console command
image

What browsers do you use to access the UI ?

No response

Console logs

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: 1.6.1
Commit hash: 6029303af55dddbd9c60dae829c4e80a5dfa08fb
ReActor preheating... Device: CUDA
Launching Web UI with arguments: --xformers --api --skip-python-version-check
12:08:48 - ReActor - STATUS - Running v0.6.0-a2
Loading weights [3a4b9e1210] from B:\tools\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion Web UI-UX\models\Stable-diffusion\asianrealisticSdlife_v40_realphoto_asian_aodai_suonxam_checkpoint_15.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: B:\tools\StabilityMatrix-win-x64\Data\Packages\Stable Diffusion Web UI-UX\configs\v1-inference.yaml
Startup time: 23.0s (prepare environment: 7.4s, import torch: 4.8s, import gradio: 2.1s, setup paths: 2.3s, initialize shared: 0.3s, other imports: 1.6s, setup codeformer: 0.2s, list SD models: 0.3s, load scripts: 2.9s, create ui: 0.5s, gradio launch: 0.6s).
Applying attention optimization: xformers... done.
Model loaded in 3.0s (load weights from disk: 1.0s, create model: 0.3s, apply weights to model: 1.4s, calculate empty prompt: 0.1s).

Additional information

No response

@orangpelupa
Copy link
Author

to be clear,

  • once the internet is working again, i can relaunch it and it works fine.
  • after the webui has been launching properly, it doesnt matter if the internet is borked

@orangpelupa
Copy link
Author

how to fix

  1. download https://unpkg.com/split.js/dist/split.js
  2. copy split.js to \javascript
  3. edit extensions-builtin\anapnoe-sd-uiux\javascript\anapnoe_sd_uiux_core.js
  4. replace line 1153 https://unpkg.com/split.js/dist/split.js to become file=javascript/split.js

@anapnoe
Copy link
Owner

anapnoe commented Jan 30, 2024

cool that you figure this out
but I don't think I will include this in the core

@anapnoe anapnoe closed this as completed Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants