AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: IndexError: Constant Console Polling "list index out of range" #7460

Closed shaneholloman closed 1 year ago

shaneholloman commented 1 year ago

Is there an existing issue for this?

What happened?

Console constantly polling:

IndexError: list index out of range
Traceback (most recent call last):
  File "D:\ai\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\ai\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\ai\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
    ...

Steps to reproduce the problem

start webui: Launching Web UI with arguments: --api --xformers --medvram --precision full --no-half

What should have happened?

no conole polling

Commit where the problem happens

Commit hash: 226d840e84c5f306350b0681945989b86760e616

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--api --xformers --medvram --precision full --no-half

List of extensions

Config-Presets | https://github.com/Zyin055/Config-Presets.git | unknown a1111-sd-webui-haku-img | https://github.com/KohakuBlueleaf/a1111-sd-webui-haku-img.git | unknown asymmetric-tiling-sd-webui | https://github.com/tjm35/asymmetric-tiling-sd-webui/ | unknown batch-face-swap | https://github.com/kex0/batch-face-swap.git | unknown deforum-for-automatic1111-webui | https://github.com/deforum-art/deforum-for-automatic1111-webui | unknown depthmap2mask | https://github.com/Extraltodeus/depthmap2mask | unknown model-keyword | https://github.com/mix1009/model-keyword | unknown sd-dynamic-prompts | https://github.com/adieyal/sd-dynamic-prompts | unknown sd-extension-system-info | https://github.com/vladmandic/sd-extension-system-info | unknown sd-infinity-grid-generator-script | https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script.git | unknown sd-lexikrea | https://github.com/Vetchems/sd-lexikrea | unknown sd-webui-model-converter | https://github.com/Akegarasu/sd-webui-model-converter | unknown sd-webui-multiple-hypernetworks | https://github.com/antis0007/sd-webui-multiple-hypernetworks.git | unknown sd_civitai_extension | https://github.com/civitai/sd_civitai_extension | unknown sd_dreambooth_extension | https://github.com/d8ahazard/sd_dreambooth_extension | unknown sd_grid_add_image_number | https://github.com/AlUlkesh/sd_grid_add_image_number.git | unknown stable-diffusion-webui-Prompt_Generator | https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator | unknown stable-diffusion-webui-artists-to-study | https://github.com/camenduru/stable-diffusion-webui-artists-to-study | unknown stable-diffusion-webui-cafe-aesthetic | https://github.com/p1atdev/stable-diffusion-webui-cafe-aesthetic.git | unknown stable-diffusion-webui-dataset-tag-editor | https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor | unknown stable-diffusion-webui-depthmap-script | https://github.com/thygate/stable-diffusion-webui-depthmap-script.git | unknown stable-diffusion-webui-images-browser | https://github.com/yfszzx/stable-diffusion-webui-images-browser | unknown stable-diffusion-webui-inspiration | https://github.com/yfszzx/stable-diffusion-webui-inspiration | unknown stable-diffusion-webui-instruct-pix2pix | https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix.git | unknown stable-diffusion-webui-pixelization | https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization.git | unknown stable-diffusion-webui-promptgen | https://github.com/AUTOMATIC1111/stable-diffusion-webui-promptgen.git | unknown stable-diffusion-webui-stable-horde | https://github.com/natanjunges/stable-diffusion-webui-stable-horde.git | unknown stable-diffusion-webui-wd14-tagger | https://github.com/toriato/stable-diffusion-webui-wd14-tagger.git | unknown stable-diffusion-webui-wildcards | https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards | unknown ultimate-upscale-for-automatic1111 | https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git | unknown LDSR | built-in |   Lora | built-in |   ScuNET | built-in |   SwinIR | built-in |   prompt-bracket-checker | built-in

Console logs

IndexError: list index out of range
Traceback (most recent call last):
  File "D:\ai\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\ai\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\ai\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  ...

Additional information

No response

yownas commented 1 year ago

I had the same problem and tried to find out if it was an extension that caused it, so I renamed my extensions folder and restarted, no more errors. Decided to add them back a couple at a time to find where it would break, added them all back...still no errors.

If anyone smarter than me want to figure out why, here is a list of the extensions I have:

auto-sd-paint-ext | https://github.com/Interpause/auto-sd-paint-ext.git | unknown -- | -- | -- sd-webui-additional-networks | https://github.com/kohya-ss/sd-webui-additional-networks | unknown sd-webui-model-converter | https://github.com/Akegarasu/sd-webui-model-converter | unknown seed_travel | https://github.com/yownas/seed_travel.git | unknown shift-attention | https://github.com/yownas/shift-attention.git | unknown stable-diffusion-webui-daam | https://github.com/kousw/stable-diffusion-webui-daam.git | unknown stable-diffusion-webui-embedding-editor | https://github.com/CodeExplode/stable-diffusion-webui-embedding-editor.git | unknown stable-diffusion-webui-images-browser | https://github.com/yfszzx/stable-diffusion-webui-images-browser | unknown stable-diffusion-webui-instruct-pix2pix | https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix.git | unknown stable-diffusion-webui-visualize-cross-attention-extension | https://github.com/benkyoujouzu/stable-diffusion-webui-visualize-cross-attention-extension.git | unknown LDSR | built-in |   Lora | built-in |   ScuNET | built-in |   SwinIR | built-in |   prompt-bracket-checker | built-in
shaneholloman commented 1 year ago

This appeared to fix after updating extensions. Sorry, I didn't catch the problematic etxension causing this. Closing anyway