Skip to content

[Bug]: WebUI is non-functional only on iPad #226

Open
@halr9000

Description

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

Main interface will not load at all on iPad. Most times I will see only the "Stable Diffusion" window title, and a blank screen, and page load will stop. (Stop button changes to refresh.) Occasionally, with multiple refresh attempts and after a very long delay (>60s ? So long, it's not worth timing), the SDUX loading screen text will appear, but never progresses past that.

I've had it load from this same device previously, but I had not been running SDUX for some months, so I do not know what may have changed. Suspect it's Gradio, but this is very hard to troubleshoot from mobile device without access to js console. Happy to help troubleshoot though if you have some tricks.

Works fine from multiple PCs, Macs, and Android devices in my possession.

Steps to reproduce the problem

  1. Fresh install
  2. Start WebUI
  3. Load page from PC: success
  4. Load page from Android: success
  5. Load page from iPad Safari: fail
  6. Load page from iPad Chrome: fail

What should have happened?

All the things

What browsers do you use to access the UI ?

Google Chrome, Brave, Apple Safari, Android, iOS

Sysinfo

sysinfo-2024-04-06-15-48.json

Console logs

[Note that this output is not from a fresh install, but I have reproduced many times. Definitely some crap in here.]

fatal: No names found, cannot describe anything.
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: fafb0b581bb2b6ba78b62dfba8c95eee6925ce76
D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions\sd-webui-infinite-image-browsing\install.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Launching Web UI with arguments: --server-name 0.0.0.0 --xformers --api --skip-python-version-check --no-download-sd-model --enable-insecure-extension-access --civsfz-api-key [my key was here]
reading lora D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\models\Lora\sdxl_lightning_2step_lora.safetensors: AssertionError
Traceback (most recent call last):
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions-builtin\Lora\network.py", line 38, in __init__
    self.metadata = cache.cached_data_for_file('safetensors-metadata', "lora/" + self.name, filename, read_metadata)
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\modules\cache.py", line 114, in cached_data_for_file
    value = func()
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions-builtin\Lora\network.py", line 31, in read_metadata
    metadata = sd_models.read_metadata_from_safetensors(filename)
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\modules\sd_models.py", line 283, in read_metadata_from_safetensors
    assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\models\Lora\sdxl_lightning_2step_lora.safetensors is not a safetensors file

reading lora D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\models\Lora\sdxl_lightning_8step_lora.safetensors: AssertionError
Traceback (most recent call last):
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions-builtin\Lora\network.py", line 38, in __init__
    self.metadata = cache.cached_data_for_file('safetensors-metadata', "lora/" + self.name, filename, read_metadata)
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\modules\cache.py", line 114, in cached_data_for_file
    value = func()
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions-builtin\Lora\network.py", line 31, in read_metadata
    metadata = sd_models.read_metadata_from_safetensors(filename)
  File "D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\modules\sd_models.py", line 283, in read_metadata_from_safetensors
    assert metadata_len > 2 and json_start in (b'{"', b"{'"), f"{filename} is not a safetensors file"
AssertionError: D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\models\Lora\sdxl_lightning_8step_lora.safetensors is not a safetensors file

CHv1.8.3: Get Custom Model Folder
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
Loading weights [15012c538f] from D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\models\Stable-diffusion\sd15\realisticVisionV51_v51VAE.safetensors
Creating model from config: D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\configs\v1-inference.yaml
CHv1.8.3: Set Proxy: 
D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions\model_preset_manager\scripts\main.py:446: GradioDeprecationWarning: 'scale' value should be an integer. Using 0.1 will cause issues.
  with gr.Column(min_width=100, scale = 0.1):
D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions\model_preset_manager\scripts\main.py:463: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  model_generation_data = gr.Textbox(label = model_generation_data_label_text(), value = "", lines = 3, elem_id = "def_model_gen_data_textbox").style(show_copy_button=True)
D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions\model_preset_manager\scripts\main.py:466: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  triggerWords = gr.CheckboxGroup([], multiselect=True, label="Trigger Words", interactive = True).style(container=True, item_container=True)
D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions\model_preset_manager\scripts\main.py:466: GradioDeprecationWarning: The `item_container` parameter is deprecated.
  triggerWords = gr.CheckboxGroup([], multiselect=True, label="Trigger Words", interactive = True).style(container=True, item_container=True)
D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\extensions\model_preset_manager\scripts\main.py:493: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  output_textbox = gr.Textbox(interactive=False, label="Output").style(show_copy_button=True)
D:\hal\stable-diffusion\StabilityMatrix\Packages\Stable Diffusion Web UI-UX\modules\gradio_extensons.py:25: GradioDeprecationWarning: `height` is deprecated in `Interface()`, please use it within `launch()` instead.
  res = original_IOComponent_init(self, *args, **kwargs)
Applying attention optimization: xformers... done.
Running on local URL:  http://0.0.0.0:7860
Model loaded in 10.7s (load weights from disk: 0.2s, create model: 0.9s, apply weights to model: 7.8s, load textual inversion embeddings: 1.0s, calculate empty prompt: 0.5s).

To create a public link, set `share=True` in `launch()`.
IIB Database file has been successfully backed up to the backup folder.
Startup time: 51.8s (prepare environment: 8.1s, import torch: 9.3s, import gradio: 4.2s, setup paths: 6.1s, initialize shared: 0.5s, other imports: 2.7s, list SD models: 0.4s, load scripts: 5.7s, create ui: 9.9s, gradio launch: 4.4s, add APIs: 0.5s).

Additional information

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions