ArtVentureX / sd-webui-agent-scheduler

605 stars 61 forks source link

PNG Info Tab breaks after installing agent-scheduler #157

Open dm18 opened 9 months ago

dm18 commented 9 months ago

Steps to reproduce issue

  1. Open Automatic1111
  2. Install sd-webui-agent-scheduler from UI
  3. Apply and Restart
  4. Close Automatic1111
  5. Open Automatic1111
  6. Click on Info Tab in Automatic1111
  7. Select an previously generated image

Expected results PNG meta data info from image is loaded and displayed in UI

actual results No meta data from PNG is displayed

comment It also seems like other parts of the UI breaks as well. For instance Extension tab will fail to load/display the list of installed extensions.

artventuredev commented 9 months ago

This issue seems very similar to #156. Do you have any Civitai-related extensions installed? For better debugging, could you please provide the following information:

dm18 commented 8 months ago

I disabled all other extensions, closed and re-opened the cmd. And the issue happens with just sd-webui-agent-scheduler enabled.

I've noticed the issue happens on first load of the UI. If I reload the web page, the issue stops happening.

I see no errors in the cmd windows, and the console window is empty. But I don't know if some error message happens before I open the console window.

venv "C:\Users\DEDICATED\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 You are up to date with the most recent release. Launching Web UI with arguments: --autolaunch --update-check --xformers

You are running xformers 0.0.17. The program is tested to work with xformers 0.0.20. To reinstall the desired version, run with commandline flag --reinstall-xformers.

Use --skip-version-check commandline argument to disable this check.

Using sqlite file: C:\Users\DEDICATED\stable-diffusion-webui\extensions\sd-webui-agent-scheduler\task_scheduler.sqlite3 Loading weights [4685c7fd2f] from C:\Users\DEDICATED\stable-diffusion-webui\models\Stable-diffusion\DEDICATED.safetensors Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Creating model from config: C:\Users\DEDICATED\stable-diffusion-webui\models\Stable-diffusion\DEDICATED.yaml Startup time: 12.2s (prepare environment: 2.6s, import torch: 3.4s, import gradio: 0.9s, setup paths: 0.8s, initialize shared: 0.3s, other imports: 0.6s, setup codeformer: 0.1s, load scripts: 1.8s, create ui: 0.4s, gradio launch: 1.0s, app_started_callback: 0.2s). Applying attention optimization: xformers... done. Model loaded in 4.8s (load weights from disk: 0.8s, create model: 0.5s, apply weights to model: 1.4s, load textual inversion embeddings: 1.0s, calculate empty prompt: 0.9s).

SysVR commented 8 months ago

I have tested in a different environment and the same phenomenon occurs.

1. https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre download sd.webui.zip

2.unpack sd.webui.zip

3.run update.bat

4.run run.bat (no edit webui-user.bat)

5.auto open browser (WebUI)

6.insatall agent scheduler (only)

7.close cmd.exe and SD-webui tab.

8.run run.bat

9.loading problems...

Other loading problems were found.

Textual Inversion Hypernetworks Checkpoints Extensions etc...

Browser error logs.

index.js:288 Could not get api details: Cannot read properties of undefined (reading 'types') C @ index.js:288 index.js:389 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'unnamed_endpoints') at Object.J [as submit] (index.js:389:26) at ce (Blocks.svelte:387:6) at we (Blocks.svelte:381:5)

sysinfo https://pastebin.com/jDPecgs8

artventuredev commented 8 months ago

Upon further investigation, I've confirmed that this extension can sometime lead to the issue mentioned. For the moment, refreshing the page serves as a temporary workaround. I plan to address and resolve this issue in the near future.