AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.28k stars 26.71k forks source link

[Bug]: Uncaught TypeError: Cannot read properties of null (reading 'classList') at modalZoomSet (imageviewer.js?1680040404.2261481:150:20) at HTMLImageElement.<anonymous> (imageviewer.js?1680040404.2261481:139:3) modalZoomSet @ imageviewer.js?1680040404.2261481:150 (анонимная) @ imageviewer.js?1680040404.2261481:139 #9510

Closed hrach333 closed 1 year ago

hrach333 commented 1 year ago

Is there an existing issue for this?

What happened?

After generating the image, I can't open the image to the full screen and writes an error in the console Снимок экрана от 2023-04-09 18-28-30

Steps to reproduce the problem

  1. Click generate
  2. click on the picture to open to full screen
  3. an error will occur and the picture will not open to full screen

What should have happened?

The picture was supposed to open to the full screen

Commit where the problem happens

this is the latest version

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

export COMMANDLINE_ARGS="--xformers --opt-split-attention --medvram"
export XFORMERS_PACKAGE="xformers==0.0.17.dev447"

List of extensions

StylePile deforum-for-automatic1111-webui ebsynth_utility openpose-editor sd-webui-additional-networks sd-webui-controlnet sd_civitai_extension

Console logs

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on hrach user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
Installing requirements for Web UI

#######################################################################################################
Initializing Civitai Link
If submitting an issue on github, please provide the below text for debugging purposes:

Python revision: 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
Civitai Link revision: c4d4b2e374eccb5f192929a1332e46852f494173
SD-WebUI revision: 3856ada5cc9ac4124e20ff311ce7aa77330845d9

Checking Civitai Link requirements...
[+] python-socketio[client] version 5.7.2 installed.

#######################################################################################################

Launching Web UI with arguments: --xformers --opt-split-attention --medvram
2023-04-09 18:15:39.381127: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-04-09 18:15:39.463479: I tensorflow/core/util/port.cc:104] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-04-09 18:15:39.808349: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :-URL121//lib64/:/usr/local/cuda-12.1/lib64/
2023-04-09 18:15:39.808405: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :-URL121//lib64/:/usr/local/cuda-12.1/lib64/
2023-04-09 18:15:39.808410: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Civitai: API loaded
Loading weights [9aba26abdf] from /home/hrach/Program/stable-diffusion-webui/models/Stable-diffusion/Deliberate_v2.safetensors
Creating model from config: /home/hrach/Program/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(1): New
Model loaded in 1.8s (load weights from disk: 0.1s, create model: 0.2s, apply weights to model: 0.3s, apply half(): 0.2s, load VAE: 1.0s).
*Deforum ControlNet support: enabled*
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai: Check resources for missing preview images
Startup time: 13.6s (import torch: 1.3s, import gradio: 0.5s, import ldm: 0.2s, other imports: 0.4s, load scripts: 1.0s, load SD checkpoint: 1.8s, create ui: 8.2s).
Civitai: Found 16 resources missing preview images
Civitai: Failed to fetch preview images from Civitai
Civitai Link: Connected to Civitai Link Server
Civitai Link: Joined room 
Civitai Link: Presence update: SD: 199, Clients: 0
Closing server running on port: 7860
Restarting UI...
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Civitai: API loaded
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai Link: Connecting to Civitai Link Server
Civitai: Check resources for missing preview images
Startup time: 2.4s (load scripts: 0.4s, create ui: 0.7s, gradio launch: 1.3s).
Civitai: Found 16 resources missing preview images
Civitai Link: Joined room 
Civitai Link: Presence update: SD: 199, Clients: 0
Civitai: Failed to fetch preview images from Civitai
100%|███████████████████████████████████████████| 22/22 [00:05<00:00,  4.12it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:05<00:00,  4.40it/s]
Civitai Link: Presence update: SD: 199, Clients: 022/22 [00:05<00:00,  5.18it/s]
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 201, Clients: 0
Civitai Link: Presence update: SD: 201, Clients: 0
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 201, Clients: 0
Closing server running on port: 7860
Restarting UI...
Error loading script: deforum.py
Traceback (most recent call last):
  File "/home/hrach/Program/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/home/hrach/Program/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/hrach/Program/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum.py", line 29, in <module>
    from deforum_helpers.video_audio_utilities import ffmpeg_stitch_video, make_gifski_gif, handle_imgs_deletion, find_ffmpeg_binary, get_ffmpeg_params
ImportError: cannot import name 'get_ffmpeg_params' from 'deforum_helpers.video_audio_utilities' (/home/hrach/Program/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/video_audio_utilities.py)

[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Civitai: API loaded
Civitai Link: Presence update: SD: 202, Clients: 0
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai Link: Connecting to Civitai Link Server
Civitai: Check resources for missing preview images
Startup time: 1.2s (load scripts: 0.4s, create ui: 0.6s).
Civitai: Found 16 resources missing preview images
Civitai Link: Joined room 
Civitai Link: Presence update: SD: 202, Clients: 0
Civitai: Failed to fetch preview images from Civitai
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.91it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:05<00:00,  4.39it/s]
Civitai Link: Presence update: SD: 200, Clients: 022/22 [00:05<00:00,  5.18it/s]
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 201, Clients: 0
Civitai Link: Presence update: SD: 199, Clients: 0
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 199, Clients: 0
Civitai Link: Presence update: SD: 198, Clients: 0
 41%|██████████████████                          | 9/22 [00:02<00:02,  4.67it/s]Civitai Link: Presence update: SD: 198, Clients: 0 9/22 [00:01<00:02,  4.93it/s]
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.62it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:05<00:00,  4.16it/s]
Civitai Link: Presence update: SD: 199, Clients: 022/22 [00:05<00:00,  4.87it/s]
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 200, Clients: 0
Civitai Link: Presence update: SD: 201, Clients: 0
Civitai Link: Presence update: SD: 202, Clients: 0
Civitai Link: Presence update: SD: 202, Clients: 0
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.72it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:04<00:00,  4.49it/s]
Civitai Link: Presence update: SD: 201, Clients: 022/22 [00:04<00:00,  4.93it/s]
Closing server running on port: 7860
Restarting UI...
Error loading script: deforum.py
Traceback (most recent call last):
  File "/home/hrach/Program/stable-diffusion-webui/modules/scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/home/hrach/Program/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/hrach/Program/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum.py", line 29, in <module>
    from deforum_helpers.video_audio_utilities import ffmpeg_stitch_video, make_gifski_gif, handle_imgs_deletion, find_ffmpeg_binary, get_ffmpeg_params
ImportError: cannot import name 'get_ffmpeg_params' from 'deforum_helpers.video_audio_utilities' (/home/hrach/Program/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/scripts/deforum_helpers/video_audio_utilities.py)

[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Civitai: API loaded
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Civitai Link: Connecting to Civitai Link Server
Civitai: Check resources for missing preview images
Startup time: 1.2s (load scripts: 0.4s, create ui: 0.7s).
Civitai: Found 16 resources missing preview images
Civitai Link: Joined room 
Civitai Link: Presence update: SD: 201, Clients: 0
Civitai: Failed to fetch preview images from Civitai
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.69it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:05<00:00,  4.23it/s]
  5%|██                                          | 1/22 [00:00<00:08,  2.38it/s]Civitai Link: Presence update: SD: 202, Clients: 0       | 0/22 [00:00<?, ?it/s]
 59%|█████████████████████████▍                 | 13/22 [00:02<00:01,  4.86it/s]Civitai Link: Presence update: SD: 203, Clients: 013/22 [00:02<00:01,  4.91it/s]
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.64it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:04<00:00,  4.42it/s]
Civitai Link: Presence update: SD: 204, Clients: 022/22 [00:04<00:00,  4.86it/s]
Civitai Link: Presence update: SD: 205, Clients: 0
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.65it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:04<00:00,  4.49it/s]
Civitai Link: Presence update: SD: 205, Clients: 022/22 [00:04<00:00,  4.85it/s]
Civitai Link: Presence update: SD: 204, Clients: 0
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.55it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:05<00:00,  4.10it/s]
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.67it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:04<00:00,  4.46it/s]
Civitai Link: Presence update: SD: 204, Clients: 022/22 [00:04<00:00,  4.90it/s]
Civitai Link: Presence update: SD: 204, Clients: 0
Civitai Link: Presence update: SD: 202, Clients: 0
Civitai Link: Presence update: SD: 201, Clients: 0
100%|███████████████████████████████████████████| 22/22 [00:04<00:00,  4.68it/s]
Total progress: 100%|███████████████████████████| 22/22 [00:04<00:00,  4.51it/s]
Civitai Link: Presence update: SD: 200, Clients: 022/22 [00:04<00:00,  4.88it/s]

Additional information

No response

hrach333 commented 1 year ago

I completely re-downloaded and launched everything works fine now