ScreenshotTile icon indicating copy to clipboard operation
ScreenshotTile copied to clipboard

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

Open DanielKonopka opened this issue 4 years ago • 7 comments

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

DanielKonopka avatar Jan 10 '22 06:01 DanielKonopka

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?

cvzi avatar Mar 17 '22 13:03 cvzi

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 avatar Aug 06 '22 19:08 DanielKonopka

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?

cvzi avatar Aug 06 '22 21:08 cvzi

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.

DanielKonopka avatar Nov 07 '22 18:11 DanielKonopka

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

magnus-ISU avatar Nov 20 '22 08:11 magnus-ISU

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)

DanielKonopka avatar Apr 28 '23 22:04 DanielKonopka

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

cvzi avatar Apr 28 '23 22:04 cvzi