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]: Canvas eventaully disapears on Firefox #258

Open
Kadah opened this issue Aug 27, 2023 · 2 comments
Open

[Bug]: Canvas eventaully disapears on Firefox #258

Kadah opened this issue Aug 27, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Kadah
Copy link

Kadah commented Aug 27, 2023

What happened?

Pretty often now, the canvas disappears after some time, typically 3+ hours, but may take up to >24 hours from initial load.

The working image is lost. Save does nothing. Usually the non-button UI of tools' brushes are no longer rendered. Any new image data attempted to written to the canvas (eg. with gen, stamp, draw) can be seen or saved. Console shows nothing different from a when its working. All tools still function with the exception that nothing they create is visible.

Given how long it takes for this to start happening, not sure if it started with the updates a couple weeks ago. I think I might have been getting it prior to that update.

Time since tab reload does not appear to matter as I have had it happen minutes after a reload when the tab thread had been going for many hours. Suspecting this might be related to Firefox's increasing lag with large images. The only thing that fixes it is anything that ca8uses the openOutpaint tab start a new thread/process.

Was going to add this to zero01101/openOutpaint-webUI-extension#43, but I'm getting repo on the standalone version.

Steps to reproduce the problem

  1. Use openOutpaint for several hours
  2. Canvas disappears after tab or window focus change

What should have happened?

Canvas should be banished to the shadow realm when it gets eepy.

Commit where the problem happens

b60b4fc

What platforms do you use to access openOutpaint?

Linux

What browsers do you use to access the UI ?

Mozilla Firefox

Browser Extensions/Addons

Firefox 116.0.3 on Ubuntu 20.04

Extensions that are active:
Tapermonkey, no scripts active for localhost
uBlock Origin, disabled for localhost

Firefox privacy settings:
Default (Standard)
openOutpainter exempted

AUTOMATIC1111 webUI Commandline Arguments

--no-half-vae --api --opt-split-attention --cors-allow-origins=http://127.0.0.1:7860,http://127.0.0.1:3456 --no-download-sd-model

Additional information

Has no effect, any combination:
Reload.
Forced reload.
Clearing cache/site data.
Restarting openOutpaint.

What does work:
Restarting Firefox.
Loading in a private session, though will eventually have the same issue.
Using Firefox's task manager to kill and unload the tab then reload tab.
(all of these are the same effect of starting a new tab process)

Untested:
Opening in new tab. I suspect this will work if Firefox runs the tab as a new thread and not under the existing thread for previous instance.

I'm possibly gonna switch using it in Chrome and see if it doesn't happen anymore. Firefox does have the issue where it becomes increasingly slower with the accumulative image data size within the tab group thread, which is an issue not unique to openOutpaint.

@Kadah Kadah added the bug Something isn't working label Aug 27, 2023
@zero01101
Copy link
Owner

so this amazes me; like i keep saying this project was always just a silly little toy gadget doodad thing, i never once considered people, like, actively using it for HOURS AT A TIME so i'm rather honored even if it's because of a bug that ruined everything?

sorry about that, i can only imagine it's some kind of memory management/garbage collection foible but since there's really not anything specifically defined in the app it kind of relies on the browser doing that for us, so i'm not quite sure where to start looking there... i know i've accidentally left a tab with openOutpaint standalone open but idle for hours and not experienced it, but i'll have to set up some 2nd pc with a tab open with an active project or something...

@Kadah
Copy link
Author

Kadah commented Sep 2, 2023

I tend to export the canvas image somewhat regually, so usually don't loose much when it happens.

Its possible some other tab running within the same thread is leading to the conditions that trigger the issue, and its also possible it could be related to the Linux build of FF. Will update if I figure out a repo.

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