stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: hiding tabs can result in unworkable buttons
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
- Go to settings
- Press hide tabs except img2img in user interface
- 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
Delete config.json to reset the settings.
Same with me
Delete config.json to reset the settings.
it did fixed it but the problem remains
It's probably this: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13033
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
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 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
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.