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.

[BUG] Black Screen in video and trace on mobile

See original GitHub issue

Context:

  • Playwright Version: 1.18.1
  • Operating System: bitbucket pipelines + running with playwright official image mcr.microsoft.com/playwright:v1.18.1-focal
  • Browser: [e.g. All, Chromium, Firefox, WebKit]
  • Extra: project config
{
	name: 'Mobile Safari',
	use: {
		...devices['iPhone 13 Pro']
	}
}

When I run the tests inside bitbucket pipelines after a few seconds the video is turning to a black screen (sometimes it’s totally black sometimes you can see parts of the screen) It doesn’t happen when on Desktop Chrome

https://user-images.githubusercontent.com/42112796/152193451-5f12d861-0f98-4349-aae5-97cc3a978ff7.mov

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:7
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mspina-citcommented, May 31, 2022

I’m facing the same issue here. Usually the page gets black when scrolling down to take a locator screenshot, for exemple, when it’s below the current/initial viewport. But sometimes it works, so it is intermittent. Looks like it happens more often when running multiple tests with more workers (I usually use 4 or 5 workers).

I’m using:

  • Webkit emulating iPhone 11
  • Playwright 1.19.2
  • Only happens when running inside docker (locally or Jenkins), using image: mcr.microsoft.com/playwright:v1.19.0-focal (when running locally in my Mac outside the docker container it goes fine)
0reactions
TJHdevcommented, Nov 2, 2022

I’m having a very similar issue when running mobile safari tests in the CI (linux distro). I can’t recreate the issue locally when running on macOs 11.4. The issue seems to crop up when toasts or popovers are involved. I can share a couple of traces with videos included but prefer not to post it publicly on here.

Playwright gets into a loop doing the following, but the video shows that the app seems to have a gone out of the bounds recording box. (very similar to what dz1dz1on has posted above)

waiting for selector "div[role="menu"] >> div[role="button"]:has-text("Delete")"
selector resolved to visible <div tabindex="0" role="button" class=" css-17j40lu" …>…</div>
attempting click action
waiting for element to be visible, enabled and stable
element is visible, enabled and stable
scrolling into view if needed
done scrolling
element is outside of the viewport
retrying click action, attempt #1
waiting for element to be visible, enabled and stable
element is visible, enabled and stable
scrolling into view if needed
done scrolling
element is outside of the viewport
retrying click action, attempt #2
waiting 20ms
waiting for element to be visible, enabled and stable
element is visible, enabled and stable
scrolling into view if needed
done scrolling

Playwright 1.27.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Black Screen While Playing Video? [Solved]
Steps on Fixing the Issue Black Screen while Playing Video ; Step 1 Add Corrupt Video · add corrupted video files ; Step...
Read more >
How to Fix: Android Camera Shows Black Screen
If your phone is still showing the black screen, then the first thing you have to do is performing a full backup of...
Read more >
Black screen when returning to video playback activity in ...
I turned off hardware (HW) acceleration in the player settings and it solved the problem. I don't develop for Android but hopefully this...
Read more >
12 Top Ways To Fix YouTube Showing Black Screen On ...
The first method that I am going to suggest is to restart your Android phone. Restarting helps to combat several types of errors...
Read more >
How to Fix a YouTube Black Screen - Lifewire
YouTube mobile problems: If you experience a black screen and no audio from YouTube on your phone, clear the app data or cache,...
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