question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blank/Empty screenshot

See original GitHub issue

Hello,

A part of another project, we were playing around if it’s possible to take an screenshot when running some tests. We are having problems with that since all the screenshots we pull are empty/blank.

To reproduce it, it’s as simple ase using the following steps in a github action.

      - name: Test
        uses: reactiveCircus/android-emulator-runner@v2
        with:
          api-level: 29
          force-avd-creation: false
          arch: x86_64
          target: google_apis
          profile: Nexus 6
          script: adb shell screencap -p /data/local/tmp/Screenshot.png; adb pull /data/local/tmp/Screenshot.png Screenshot.png;

      - name: Upload screenshot
        if: always()
        uses: actions/upload-artifact@v3
        with:
          name: device-screenshot
          path: ./*Screenshot.png

Are we missing something? is it expected that screenshots are blank/empty when using emulators inside github actions?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
cmonfortepcommented, Oct 11, 2022

Thanks @mrk-han. We have that in our app, and on my dummy app for testing.

Let’s see if someone could bring more light here about possible issues around screenshots.

1reaction
cmonfortepcommented, Oct 6, 2022

I expect they will work as well, any reason why they shouldn’t work?

I’ve also seen people running screenshot tests on headless emulators, I don’t think that’s an issue. As a reference, this issue (https://github.com/ReactiveCircus/android-emulator-runner/issues/196) is about screenshots, and the emulator options they are using is -no-window.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Troubleshoot Blank Screenshot in High Sierra
Step 1: Check Keyboard Settings. · Step 2: Reset Screenshot Settings. · Step 3: Boot Into Safe Mode. · Step 4: Use Terminal...
Read more >
Upload your home screen (screenshot) to generate ... - iEmpty
Here you can upload your homescreen screenshot to generate your own custom empty icons and empty widgets background images. Quick steps. As easy...
Read more >
Screenshot on Sierra gives blank image - Apple Community
Hi i work on high sierra 10.13.6, imac mid 2011, and since 10-15 days each time I catch a screenshot of a part...
Read more >
Blank images in Puppeteer screenshots solved! - Peter Tran
Frustrated with getting blank images in Puppeteer Chrome ... an element outside of the viewport results in a blank / empty screenshot.
Read more >
[Migrated] Android Screenshots are Blank or Scrambled
If your App Center Test Reports consistently show blank or scrambled screenshots on Android; the typical cause is that the app has disabled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found