zero01101 / openOutpaint

local offline javascript and html canvas outpainting gizmo for stable diffusion webUI API 🐠
MIT License
506 stars 44 forks source link

[Bug]: "Uncaught (in promise) DOMException: Invalid image request." when importing a previously saved 6144x4096 workspace #296

Open jegguces opened 2 months ago

jegguces commented 2 months ago

What happened?

Tried to load a previously saved JSON workspace file using the "Import Workspace" button. The canvas resized to to the correct 6144x4096 dimensions, but the image an layers never appeared.

Firefox browser console had the following error:

Uncaught (in promise) DOMException: Invalid image request. workspace.populate.js:124:10
    <anonymous> http://127.0.0.1:3456/js/initalize/workspace.populate.js?v=925431d:124
    AsyncFunctionThrow self-hosted:811
    (Async: async)
    <anonymous> http://127.0.0.1:3456/js/initalize/workspace.populate.js?v=925431d:120

Steps to reproduce the problem

  1. Open OpenOutpaint (this issue occurs in both the standalone OpenOutpaint app and in the A1111/Forge extension)
  2. The zipped workspace file is too big to upload; example workspace consists of a single 5140x4116 black image stamped on a 6144x4096 canvas, then exported to "sample workspace.json"
  3. Press "Import Workspace" and try to import "sample workspace.json"
  4. Canvas resizes to the correct dimensions, but image does not appear on the canvas

What should have happened?

The image should appear on the canvas

Commit where the problem happens

zero01101/openOutpaint@32f38d9, 32f38d9

What platforms do you use to access openOutpaint?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Browser Extensions/Addons

AUTOMATIC1111 webUI Commandline Arguments

  --api ^
  --xformers ^
  --vae-dir %SD_HOME%/models/VAE ^
  --ckpt-dir %SD_HOME%/models/Stable-diffusion ^
  --embeddings-dir %SD_HOME%/embeddings ^
  --controlnet-preprocessor-models-dir %SD_HOME%/extensions/sd-webui-controlnet/annotator/downloads ^
  --controlnet-dir %SD_HOME%/models/ControlNet ^
  --lora-dir %SD_HOME%/models/Lora

Additional information

No response

jegguces commented 2 months ago

Upon further investigation, it seems this issue lies with Firefox browser; OpenOutpaint loads the workspace just fine in bog standard Microsoft Edge browser. Running Firefox in "Troubleshooting mode" with all extensions and customisations disabled does not fix the problem though...

zero01101 commented 1 month ago

hey, terribly sorry for the delay - i wanted to mention that this isn't being "ignored" per se, but i just haven't had much in the way of spare time nor brain space lately; my apologies for it languishing and for my volatile mental state lol, i swear i'll check into it

jegguces commented 1 month ago

No worries!

I think the issue is with Firefox browser itself (version 131.0 at time of writing). I suspect (but cannot definitively prove) that Firefox will not load a JSON file > 40 MiB. Edge seems to handle up to 213 MiB so far