stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: hiding tabs can result in unworkable buttons

Open revolverocelot1 opened this issue 1 year ago • 7 comments

Is there an existing issue for this?

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

What happened?

i hide some tabs and now i cant use sd and since buttons dont work , i cant revert back to normal ui , so im stuck with it. just the reload button works

Steps to reproduce the problem

  1. Go to settings
  2. Press hide tabs except img2img in user interface
  3. reload and then use the UI

What should have happened?

buttons sholudve been in working condition

Sysinfo

Traceback (most recent call last): File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1312, in postprocess_data block = self.blocks[output_id] KeyError: 2176

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1434, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1314, in postprocess_data raise InvalidBlockError( gradio.exceptions.InvalidBlockError: Output component with id 2176 used in click() event not found in this gr.Blocks context. You are allowed to nest gr.Blocks contexts, but there must be a gr.Blocks context that contains all components and events.

What browsers do you use to access the UI ?

Microsoft Edge

Console logs

Traceback (most recent call last):
  File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1312, in postprocess_data
    block = self.blocks[output_id]
KeyError: 2176

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "D:\New folder\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1314, in postprocess_data
    raise InvalidBlockError(
gradio.exceptions.InvalidBlockError: Output component with id 2176 used in click() event not found in this gr.Blocks context. You are allowed to nest gr.Blocks contexts, but there must be a gr.Blocks context that contains all components and events.

Additional information

nothing else

revolverocelot1 avatar Oct 06 '23 08:10 revolverocelot1

Delete config.json to reset the settings.

missionfloyd avatar Oct 06 '23 21:10 missionfloyd

Same with me

kent0113 avatar Oct 07 '23 06:10 kent0113

Delete config.json to reset the settings.

it did fixed it but the problem remains

revolverocelot1 avatar Oct 07 '23 08:10 revolverocelot1

It's probably this: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13033

OgalFinklestein avatar Oct 14 '23 20:10 OgalFinklestein

I get this error whenever clicking on the batch input field within img2img

Traceback (most recent call last): File "C:\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1312, in postprocess_data block = self.blocks[output_id] KeyError: 639

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "C:\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1434, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "C:\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1314, in postprocess_data raise InvalidBlockError( gradio.exceptions.InvalidBlockError: Output component with id 639 used in blur() event not found in this gr.Blocks context. You are allowed to nest gr.Blocks contexts, but there must be a gr.Blocks context that contains all components and events. Traceback (most recent call last): File "C:\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1312, in postprocess_data block = self.blocks[output_id] KeyError: 722

MIDG3Tp3nguin avatar Nov 03 '23 20:11 MIDG3Tp3nguin

i have the same problem... i want to hide some tabs to avoid users by link i shared changing some config or using model training functions... but when i tried to hide these tabs, "Checkpoint Merger", "Train", "Settings", "Extensions", the gradio crashed...

arqli avatar Jan 19 '24 08:01 arqli

i have the same problem... i want to hide some tabs to avoid users by link i shared changing some config or using model training functions... but when i tried to hide these tabs, "Checkpoint Merger", "Train", "Settings", "Extensions", the gradio crashed...

i think the problem is caused by "Settings" tab, after canceling hiding it, all works well

arqli avatar Jan 19 '24 09:01 arqli

Hiding ANY tab seems to invoke this - it's a different ID per each tab. It seems that the UI itself does not support hiding the tabs, as they seem to be hard-coded. As a result, no tab can be hidden without causing an issue.

ellmann-creative avatar Aug 01 '24 13:08 ellmann-creative