[BUG] launchPersistentContext hanging on "about:blank" [REOPENED]

See original GitHub issue

Context:

  • Playwright Version: 1.7.1
  • Operating System: Mac
  • Node.js version: v14.15.1
  • Browser: Chromium

Code Snippet

const {chromium} = require('playwright');

(async () => {
  const options = {
                  headless : false, 
                  userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'
                }

                const browser = await chromium.launchPersistentContext(`udd1`, options)
                var [page] = await browser.pages();
                await page.goto("https://www.google.com/");
})();

Describe the bug

Sometimes the browser hangs on “about:blank”. I’ve tested and it seems that if I even console.log(browser), then it doesn’t even log it when this occurs… The only way to get past this is to refresh the page by using CMD + R on my keyboard. I’m unsure why this is happening as it doesn’t occur every time I run my code. It seems as if the browser isn’t even launching as it doesn’t log.

https://github.com/microsoft/playwright/issues/4981

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
aslushnikovcommented, Mar 18, 2021

@bb1234cp thank you the repro steps! I was able to debug this to a nasty race condition on our side. Sorry for this taking so long!

0reactions
bb1234cpcommented, Mar 18, 2021

As long as folks like my fix, we’ll merge it and it’ll be live tomorrow at the playwright@next channel. We’ll have a 1.10 release some time soon (in a week?), and it’ll be there as well.

Looking forward! Very happy you found the issue😁 Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

playwright._impl._api_types.error: browser closed. - You.com
Describe the bug I used this code a few days ago and it worked fine, but when I used it today, I got...
Read more >
Releases - CodeceptJS
This release fixes hanging of tests by reducing timeouts for automatic ... browser is closed during test and tests executions is stopped, but...
Read more >
Playwright/CHANGELOG and Playwright Releases (Page 3)
#4218 - [BUG] Playwright-chromium (>1.5.0) does not exit properly (hangs) when ... launchPersistentContext() now support videosPath and videoSize option.
Read more >
playwright/api.md - UNPKG
102, For certain types of errors Playwright uses specific error classes. ... 164, - Browser application is closed or crashed.
Read more >
node.js - playwright firefox.launchPersistentContext timeout
launchPersistentContext ('./browser_data/thread-test', {headless:false,});. I think there is an error on connect browser to playwright step but I ...
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