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

First five screenshots after boot are blank shots, sixth and subsequent ones are perfect. #116

Open
DanielKonopka opened this issue Jan 10, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@DanielKonopka
Copy link

DanielKonopka commented Jan 10, 2022

UPDATED Triggering first five screenshots after boot (either from quick settings menu or widget) creates 100% empty shots (full resolution, not cropped).

But once the fifth screenshot is taken, everything works fine from now on, subsequent screenshots are then ok.

OS: Android 10
EMUI: 10.1.1

@cvzi cvzi added the bug Something isn't working label Mar 17, 2022
@cvzi
Copy link
Owner

cvzi commented Mar 17, 2022

I don't know why this would happen. I can't reproduce it on my phone or on the emulator.

Does it create an empty file or does it create a blank image? If it is a blank image, are the image dimensions in pixels the same as the screen dimension?

@DanielKonopka
Copy link
Author

DanielKonopka commented Aug 6, 2022

Sorry for this large delay. Really couldn't react any faster.

I have found that the first five screenshots are blank (but are full resolution images, not cropped in any way, just filled with blank pixels). Once fifth blank screenshot is made, subsequent ones are perfect, until device restart.

This also happens in the latest (1.18.2) version.

How can I help you fix this?

I have updated both the issue title and description, to reflect the discovery.

@DanielKonopka DanielKonopka changed the title Triggering a screenshot of home screen as the first screenshot after boot (either from quick settings menu or widget) creates blank shot. First five screenshots after boot are blank shots, sixth and subsequent ones are perfect. Aug 6, 2022
@cvzi
Copy link
Owner

cvzi commented Aug 6, 2022

My first idea was that another app is running and that app prevents screenshots. For example banking and crypto apps do this often to prevent bad apps from taking screenshots of sensitive information. In that case the screenshot will be completely blank but normal size. So I thought an app is running in the background or starting up after boot and (maybe by mistake) has this setting enabled that prevents screenshots.

But that theory doesn't explain the five blank screenshots and then they get normal.

Have you tried any other screenshot apps, do they work normally after boot?

@DanielKonopka
Copy link
Author

First of all, sorry for very delayed reply. I should have mentioned the issue only appears while using Legacy (aka screen recording) mode. I have just checked 2.0.0 beta5 and the issue is still there, behaving exactly the same as in earlier releases.

@magnus-ISU
Copy link

Also notice this, though somewhat unsure whether it is so consistent.

@DanielKonopka
Copy link
Author

DanielKonopka commented Apr 28, 2023

Discovered something that might be of interest: when Android's built-in screen recorder is invoked first (and stopped), then Screenshottile has no problem grabbing screenshots, even the first one is perfect. This lasts for half an hour or so, until the recording prompt/warning shows up again and recording permission has to be given. Once again, starting Android's built-in screen recorder first, makes Screenshottile work fine for some time. (Legacy mode)

@cvzi
Copy link
Owner

cvzi commented Apr 28, 2023

I have looked at the source code of the builtin screenrecorder, but I did not see anything to give me a new idea 🙄

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