Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jegguces opened this issue Sep 8, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jegguces
Copy link

jegguces commented Sep 8, 2024

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

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

  • uMatrix (127.0.0.1 whitelisted)
  • uBlock Origin (127.0.0.1 whitelisted)

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 jegguces added the bug Something isn't working label Sep 8, 2024
@jegguces
Copy link
Author

jegguces commented Sep 8, 2024

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
Copy link
Owner

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
Copy link
Author

jegguces commented Oct 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants