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.

Android emulator on macos blank screenshots and videos

See original GitHub issue

Describe the bug

We use GitHub action for end to end testing for iOS and Android app, in case of failure, we take screenshots and video of the tests.

It works fine locally for both iOS and Android, in GitHub action, it works with iOS simulator, but on Android, the screenshots and video are transparent and black

To Reproduce

See below for workflow, this is an example of workflow that have the problem : https://github.com/pass-culture/pass-culture-app-native/actions/runs/3574751323

Expected behavior We expect to have proper screenshots and video of our app

Runner Version and Platform

macos-12

What’s not working?

This is how it look like for the screenshots image

This is the video shot in CI:

<video src="https://user-images.githubusercontent.com/77674046/204561099-597271b2-9bcd-4b68-ba41-e7273432b2b6.mp4"></video> This is the video log: wdio-0-0-Video-reporter.log

Job Log Output

Runner and Worker’s Diagnostic Logs

Appium log : https://github.com/pass-culture/pass-culture-app-native/actions/runs/3573959420/jobs/6008640936

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nikola-jokiccommented, Dec 20, 2022

Hey @kopax-polyconseil,

The issue is being closed since it is not related to the runner. As pointed out, this affects the machine running your runner, so Virtual Environments Repository repository is the place to go. The runner basically runs what you tell it to run. If the machine does not support that action, it won’t be executed. The same issue would be with a docker action if you don’t have a docker installed on your machine.

This issue is the same. If the runner running on your machine does not have a support to execute a command, the command will fail (either with exit code or not executing what you have expected). That is why I suggested that you post the issue to the VirtualEnvironments. The repository is maintaining images running hosted runners. So they can provide better explanation or help you fix your issue

1reaction
ayush547commented, Dec 14, 2022

Try setting the avd to use “-gpu host”, this solved my issue. nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -no-snapshot -no-audio -gpu host -no-boot-anim -qemu -m 2048 > /dev/null 2>&1 & $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android emulator shows nothing except black screen and ...
Stop emulator if it is running, click on "Wipe Data" option displaying in screenshot then restart your emulator will solve your issue 100%....
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or are...
Read more >
Emulator Screenshots Inconsistent. Sometimes ... - Issue Tracker
Emulator Screenshots Inconsistent. Sometimes contains screen sometimes completely black. 6
Read more >
Fix blank screen in Android Emulator - YouTube
This video should be able to help you fix the blank or transparent screen in the android emulator.
Read more >
Android Emulator on Silicon
Anyone able to get an Android Emulator up and running on Silicon? ... Just tried to run Android Studio (4.1.1) on Macbook Pro...
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