Skip to content

[Bug]: Font not loaded in 1.8.0 (sourcesanspro.css) #15182

@jim60105

Description

@jim60105

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?

The font Source Sans Pro is not loaded.

Steps to reproduce the problem

  1. Clean install v1.8.0

What should have happened?

Source Sans Pro should be loaded.

What browsers do you use to access the UI ?

Brave

Sysinfo

{
"Platform": "Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.36",
"Python": "3.10.13",
"Version": "1.8.0-RC",
"Commit": "",
"Script path": "/app",
"Data path": "/data",
"Extensions dir": "/data/extensions",
"Checksum": "be195380b92da9844e31ff7c86cda7e09abbecc487350d432fcb668c84628d47",
"Commandline": [
"/app/launch.py",
"--listen",
"--port",
"7860",
"--data-dir",
"/data",
"--gradio-allowed-path",
"/app",
"--allow-code",
"--medvram",
"--xformers",
"--enable-insecure-extension-access",
"--api"
],
"Torch env info": {
"torch_version": "2.1.2+cu121",
"is_debug_build": "False",
"cuda_compiled_version": "12.1",
"gcc_version": "(Debian 12.2.0-14) 12.2.0",
"clang_version": null,
"cmake_version": null,
"os": "Debian GNU/Linux 12 (bookworm) (x86_64)",
"libc_version": "glibc-2.36",
"python_version": "3.10.13 (main, Feb 13 2024, 10:39:58) [GCC 12.2.0] (64-bit runtime)",
"python_platform": "Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.36",
"is_cuda_available": "True",
"cuda_runtime_version": null,
"cuda_module_loading": "LAZY",
"nvidia_driver_version": "546.33",
"nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 3060",
"cudnn_version": null,
"pip_version": "pip3",
"pip_packages": [
"numpy==1.26.2",
"open-clip-torch==2.20.0",
"pytorch-lightning==1.9.4",
"torch==2.1.2+cu121",
"torchdiffeq==0.2.3",
"torchmetrics==1.3.1",
"torchsde==0.2.6",
"torchvision==0.16.2+cu121",
"triton==2.1.0"
],
"conda_packages": null,
"hip_compiled_version": "N/A",
"hip_runtime_version": "N/A",
"miopen_runtime_version": "N/A",
"caching_allocator_config": "",
"is_xnnpack_available": "True",
"cpu_info": [
"Architecture: x86_64",
"CPU op-mode(s): 32-bit, 64-bit",
"Address sizes: 46 bits physical, 48 bits virtual",
"Byte Order: Little Endian",
"CPU(s): 12",
"On-line CPU(s) list: 0-11",
"Vendor ID: GenuineIntel",
"Model name: 13th Gen Intel(R) Core(TM) i7-13700",
"CPU family: 6",
"Model: 183",
"Thread(s) per core: 2",
"Core(s) per socket: 6",
"Socket(s): 1",
"Stepping: 1",
"BogoMIPS: 4224.00",
"Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves umip gfni vaes vpclmulqdq rdpid fsrm flush_l1d arch_capabilities",
"Hypervisor vendor: Microsoft",
"Virtualization type: full",
"L1d cache: 288 KiB (6 instances)",
"L1i cache: 192 KiB (6 instances)",
"L2 cache: 12 MiB (6 instances)",
"L3 cache: 30 MiB (1 instance)",
"Vulnerability Gather data sampling: Not affected",
"Vulnerability Itlb multihit: Not affected",
"Vulnerability L1tf: Not affected",
"Vulnerability Mds: Not affected",
"Vulnerability Meltdown: Not affected",
"Vulnerability Mmio stale data: Unknown: No mitigations",
"Vulnerability Retbleed: Mitigation; Enhanced IBRS",
"Vulnerability Spec rstack overflow: Not affected",
"Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp",
"Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization",
"Vulnerability Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence",
"Vulnerability Srbds: Not affected",
"Vulnerability Tsx async abort: Not affected"
]
},
"Exceptions": [
{
"exception": "list index out of range",
"traceback": [
[
"/app/modules/scripts.py, line 527, load_scripts",
"script_module = script_loading.load_module(scriptfile.path)"
],
[
"/app/modules/script_loading.py, line 10, load_module",
"module_spec.loader.exec_module(module)"
],
[
", line 883, exec_module",
""
],
[
", line 241, _call_with_frames_removed",
""
],
[
"/app/extensions-builtin/hypertile/scripts/hypertile_xyz.py, line 4, ",
"xyz_grid = [x for x in scripts.scripts_data if x.script_class.module == "xyz_grid.py"][0].module"
]
]
},
{
"exception": "list index out of range",
"traceback": [
[
"/app/modules/scripts.py, line 527, load_scripts",
"script_module = script_loading.load_module(scriptfile.path)"
],
[
"/app/modules/script_loading.py, line 10, load_module",
"module_spec.loader.exec_module(module)"
],
[
", line 883, exec_module",
""
],
[
", line 241, _call_with_frames_removed",
""
],
[
"/app/extensions-builtin/hypertile/scripts/hypertile_script.py, line 3, ",
"from scripts.hypertile_xyz import add_axis_options"
],
[
"/app/extensions-builtin/hypertile/scripts/hypertile_xyz.py, line 4, ",
"xyz_grid = [x for x in scripts.scripts_data if x.script_class.module == "xyz_grid.py"][0].module"
]
]
}
],
"CPU": {
"model": "",
"count logical": 12,
"count physical": 6
},
"RAM": {
"total": "23GB",
"used": "6GB",
"free": "1GB",
"active": "7GB",
"inactive": "13GB",
"buffers": "416MB",
"cached": "16GB",
"shared": "79MB"
},
"Extensions": [],
"Inactive extensions": [],
"Environment": {
"GRADIO_ANALYTICS_ENABLED": "False",
"PYTHONPATH": ":/home/1001/.local/lib/python3.10/site-packages"
},
"Config": {
"ldsr_steps": 100,
"ldsr_cached": false,
"SCUNET_tile": 256,
"SCUNET_tile_overlap": 8,
"SWIN_tile": 192,
"SWIN_tile_overlap": 8,
"SWIN_torch_compile": false,
"sd_model_checkpoint": "v1-5-pruned-emaonly.safetensors [6ce0161689]"
},
"Startup": {
"total": 21.453456163406372,
"records": {
"initial startup": 0.025907039642333984,
"prepare environment/checks": 4.863739013671875e-05,
"prepare environment/git version info": 0.005784034729003906,
"prepare environment/torch GPU test": 1.602529764175415,
"prepare environment/install clip": 3.7782399654388428,
"prepare environment/clone repositores": 0.029155492782592773,
"prepare environment/install requirements": 10.270246744155884,
"prepare environment/run extensions installers": 0.00315093994140625,
"prepare environment": 15.688153743743896,
"launcher": 0.002853870391845703,
"import torch": 2.024134635925293,
"import gradio": 0.6038839817047119,
"setup paths": 0.9850642681121826,
"import ldm": 0.0020847320556640625,
"import sgm": 2.6226043701171875e-06,
"initialize shared": 0.2091052532196045,
"other imports": 0.47343921661376953,
"opts onchange": 0.00031113624572753906,
"setup SD model": 0.0012323856353759766,
"setup codeformer": 0.004063844680786133,
"setup gfpgan": 0.004363536834716797,
"set samplers": 3.7670135498046875e-05,
"list extensions": 0.0019216537475585938,
"restore config state file": 1.1920928955078125e-05,
"list SD models": 0.006326436996459961,
"list localizations": 0.00011610984802246094,
"load scripts/ldsr_model.py": 0.14216876029968262,
"load scripts/lora_script.py": 0.11543917655944824,
"load scripts/scunet_model.py": 0.019077539443969727,
"load scripts/swinir_model.py": 0.016368389129638672,
"load scripts/hotkey_config.py": 0.0004935264587402344,
"load scripts/extra_options_section.py": 0.0006854534149169922,
"load scripts/hypertile_script.py": 0.004834413528442383,
"load scripts/hypertile_xyz.py": 0.00016427040100097656,
"load scripts/soft_inpainting.py": 0.0019490718841552734,
"load scripts/comments.py": 0.017961502075195312,
"load scripts/refiner.py": 0.0006122589111328125,
"load scripts/seed.py": 0.0008003711700439453,
"load scripts": 0.3205845355987549,
"load upscalers": 0.003819704055786133,
"refresh VAE": 0.008000373840332031,
"refresh textual inversion templates": 4.839897155761719e-05,
"scripts list_optimizers": 0.00022935867309570312,
"scripts list_unets": 5.245208740234375e-06,
"reload hypernetworks": 0.017555713653564453,
"initialize extra networks": 0.05547022819519043,
"scripts before_ui_callback": 0.005842685699462891,
"create ui": 0.4803781509399414,
"gradio launch": 0.22127676010131836,
"add APIs": 0.3075387477874756,
"app_started_callback/lora_script.py": 0.00026035308837890625,
"app_started_callback": 0.00026345252990722656
}
},
"Packages": [
"accelerate==0.21.0",
"aenum==3.1.15",
"aiofiles==23.2.1",
"aiohttp==3.9.3",
"aiosignal==1.3.1",
"altair==5.2.0",
"annotated-types==0.6.0",
"antlr4-python3-runtime==4.9.3",
"anyio==3.7.1",
"async-timeout==4.0.3",
"attrs==23.2.0",
"blendmodes==2022",
"certifi==2024.2.2",
"charset-normalizer==3.3.2",
"clean-fid==0.1.35",
"click==8.1.7",
"clip==1.0",
"contourpy==1.2.0",
"cycler==0.12.1",
"deprecation==2.1.0",
"einops==0.4.1",
"exceptiongroup==1.2.0",
"facexlib==0.3.0",
"fastapi==0.94.0",
"ffmpy==0.3.2",
"filelock==3.13.1",
"filterpy==1.4.5",
"fonttools==4.49.0",
"frozenlist==1.4.1",
"fsspec==2024.2.0",
"ftfy==6.1.3",
"gitdb==4.0.11",
"gitpython==3.1.32",
"gradio-client==0.5.0",
"gradio==3.41.2",
"h11==0.12.0",
"httpcore==0.15.0",
"httpx==0.24.1",
"huggingface-hub==0.21.4",
"idna==3.6",
"imageio==2.34.0",
"importlib-resources==6.1.3",
"inflection==0.5.1",
"jinja2==3.1.3",
"jsonmerge==1.8.0",
"jsonschema-specifications==2023.12.1",
"jsonschema==4.21.1",
"kiwisolver==1.4.5",
"kornia==0.6.7",
"lark==1.1.2",
"lazy-loader==0.3",
"lightning-utilities==0.10.1",
"llvmlite==0.42.0",
"markupsafe==2.1.5",
"matplotlib==3.8.3",
"mpmath==1.3.0",
"multidict==6.0.5",
"networkx==3.2.1",
"numba==0.59.0",
"numpy==1.26.2",
"omegaconf==2.2.3",
"open-clip-torch==2.20.0",
"opencv-python==4.9.0.80",
"orjson==3.9.15",
"packaging==23.2",
"pandas==2.2.1",
"piexif==1.1.3",
"pillow-simd==9.0.0.post1",
"pillow==9.5.0",
"pip==24.0",
"protobuf==3.20.3",
"psutil==5.9.5",
"pydantic-core==2.16.3",
"pydantic==1.10.14",
"pydub==0.25.1",
"pyparsing==3.1.2",
"python-dateutil==2.9.0.post0",
"python-multipart==0.0.9",
"pytorch-lightning==1.9.4",
"pytz==2024.1",
"pywavelets==1.5.0",
"pyyaml==6.0.1",
"referencing==0.33.0",
"regex==2023.12.25",
"requests==2.31.0",
"resize-right==0.0.2",
"rpds-py==0.18.0",
"safetensors==0.4.2",
"scikit-image==0.21.0",
"scipy==1.12.0",
"semantic-version==2.10.0",
"sentencepiece==0.2.0",
"setuptools==69.1.1",
"six==1.16.0",
"smmap==5.0.1",
"sniffio==1.3.1",
"spandrel==0.1.6",
"starlette==0.26.1",
"sympy==1.12",
"tifffile==2024.2.12",
"timm==0.9.16",
"tokenizers==0.13.3",
"tomesd==0.1.3",
"toolz==0.12.1",
"torch==2.1.2+cu121",
"torchdiffeq==0.2.3",
"torchmetrics==1.3.1",
"torchsde==0.2.6",
"torchvision==0.16.2+cu121",
"tqdm==4.66.2",
"trampoline==0.1.2",
"transformers==4.30.2",
"triton==2.1.0",
"typing-extensions==4.10.0",
"tzdata==2024.1",
"urllib3==2.2.1",
"uvicorn==0.27.1",
"wcwidth==0.2.13",
"websockets==11.0.3",
"wheel==0.42.0",
"xformers==0.0.23.post1",
"yarl==1.9.4"
]
}

Console logs

2024-03-09 01:56:06 fatal: not a git repository: /app/../.git/modules/stable-diffusion-webui
2024-03-09 01:56:06 fatal: not a git repository: /app/../.git/modules/stable-diffusion-webui
2024-03-09 01:56:26 *** Error loading script: hypertile_script.py
2024-03-09 01:56:26     Traceback (most recent call last):
2024-03-09 01:56:26       File "/app/modules/scripts.py", line 527, in load_scripts
2024-03-09 01:56:26         script_module = script_loading.load_module(scriptfile.path)
2024-03-09 01:56:26       File "/app/modules/script_loading.py", line 10, in load_module
2024-03-09 01:56:26         module_spec.loader.exec_module(module)
2024-03-09 01:56:26       File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2024-03-09 01:56:26       File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-03-09 01:56:26       File "/app/extensions-builtin/hypertile/scripts/hypertile_script.py", line 3, in <module>
2024-03-09 01:56:26         from scripts.hypertile_xyz import add_axis_options
2024-03-09 01:56:26       File "/app/extensions-builtin/hypertile/scripts/hypertile_xyz.py", line 4, in <module>
2024-03-09 01:56:26         xyz_grid = [x for x in scripts.scripts_data if x.script_class.__module__ == "xyz_grid.py"][0].module
2024-03-09 01:56:26     IndexError: list index out of range
2024-03-09 01:56:26 
2024-03-09 01:56:26 ---
2024-03-09 01:56:26 *** Error loading script: hypertile_xyz.py
2024-03-09 01:56:26     Traceback (most recent call last):
2024-03-09 01:56:26       File "/app/modules/scripts.py", line 527, in load_scripts
2024-03-09 01:56:26         script_module = script_loading.load_module(scriptfile.path)
2024-03-09 01:56:26       File "/app/modules/script_loading.py", line 10, in load_module
2024-03-09 01:56:26         module_spec.loader.exec_module(module)
2024-03-09 01:56:26       File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2024-03-09 01:56:26       File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-03-09 01:56:26       File "/app/extensions-builtin/hypertile/scripts/hypertile_xyz.py", line 4, in <module>
2024-03-09 01:56:26         xyz_grid = [x for x in scripts.scripts_data if x.script_class.__module__ == "xyz_grid.py"][0].module
2024-03-09 01:56:26     IndexError: list index out of range
2024-03-09 01:56:26 
2024-03-09 01:56:26 ---
2024-03-09 01:56:27 Python 3.10.13 (main, Feb 13 2024, 10:39:58) [GCC 12.2.0]
2024-03-09 01:56:27 Version: 1.8.0-RC
2024-03-09 01:56:27 Commit hash: <none>
2024-03-09 01:56:27 Installing clip
2024-03-09 01:56:27 Installing requirements
2024-03-09 01:56:27 Launching Web UI with arguments: --listen --port 7860 --data-dir /data --gradio-allowed-path /app --allow-code --medvram --xformers --enable-insecure-extension-access --api
2024-03-09 01:56:27 Loading weights [6ce0161689] from /data/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors

Additional information

It's a bug relative to 2f98a35

UI is looking for http://localhost:7863/file=/app/webui-assets/css/sourcesanspro.css but the assets repo is mounted at http://localhost:7863/webui-assets. It is because style.css is loaded at http://localhost:7863/file=/app/style.css and @import url() with relative path.

I will submit a PR.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions