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

Stops shooting after some time if page is in background #1

Open
RReverser opened this issue Aug 4, 2023 · 2 comments
Open

Stops shooting after some time if page is in background #1

RReverser opened this issue Aug 4, 2023 · 2 comments

Comments

@RReverser
Copy link
Owner

Looks like if I set it to shoot lots of images on an Android phone and switch apps, it keeps going for some time and then stops after 2-3 minutes or so. I suspect Chrome thinks the web app is inactive and eventually discards it to save resources, even though it's still doing an important long-running task.

I'm not sure what's the correct solution to prevent this - screen lock API (even though I don't care about screen being on)? Something else?

@tomayac is this something you could advise on?

@tomayac
Copy link

tomayac commented Aug 7, 2023

It may indeed be tab discarding. In a surprisingly potentially related bug, the resolution (not documented on the bug thread) was to keep something with pending contenteditable edits open, which apparently serves as a way to prevent tabs from being discarded. This is not a very intuitive solution obviously, but for testing purposes, could you try if this addresses the symptom?

@RReverser
Copy link
Owner Author

RReverser commented Aug 7, 2023

Oof. Yeah I could try that before next shooting session, but I hope there will be a better way 😅 Thanks, I'll subscribe to the bug. (UPD ah it was closed as wontfix, so probably not helpful; it was also about beforeunload which I don't use here anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants