Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Crash when opening a new tab from UI #4472

Closed
jperl opened this issue Nov 18, 2020 · 3 comments
Closed

[BUG] Crash when opening a new tab from UI #4472

jperl opened this issue Nov 18, 2020 · 3 comments
Assignees
Labels
browser-chromium upstream This is a bug in something playwright depends on, like a browser.

Comments

@jperl
Copy link
Contributor

jperl commented Nov 18, 2020

Context:

  • Playwright Version: 1.6.2
  • Operating System: Mac 11.0.1 Big Sur, Ubuntu Bionic
  • Node.js version: 12.18.3
  • Browser: Chromium

Code Snippet

const playwright = require("playwright");

(async () => {
  const browser = await playwright.chromium.launch({ headless: false });

  const context = await browser.newContext();
  const page = await context.newPage();
  await page.goto("https://google.com/");

  // open a new tab from the UI in chrome, process immediately exits
})();

Describe the bug

Opening a tab in headed mode closes the process, no error thrown.

@jperl jperl closed this as completed Nov 18, 2020
@jperl jperl reopened this Nov 18, 2020
@jperl jperl closed this as completed Nov 18, 2020
@jperl jperl reopened this Nov 18, 2020
@jperl
Copy link
Contributor Author

jperl commented Nov 18, 2020

On ubuntu bionic 1.4.2 works, but 1.5.0 and 1.5.2 I get this error:

/node_modules/playwright/lib/client/connection.js:138
            throw new Error(`Cannot find parent object ${parentGuid} to create ${guid}`);
            ^

Error: Cannot find parent object BrowserContext@cd1cd86f076f4a2719ebd1d3dd1a42cb to create Frame@61a33d06ce441dac1aa262f34707d3ec
    at Connection._createRemoteObject (/node_modules/playwright/lib/client/connection.js:138:19)
    at Connection.dispatch (/node_modules/playwright/lib/client/connection.js:105:18)
    at Immediate.<anonymous> (/node_modules/playwright/lib/inprocess.js:40:85)
    at processImmediate (internal/timers.js:461:21)

I cannot test earlier versions on my mac since I updated to Big Sur.

@jperl jperl changed the title [BUG] Crash when opening a new tab [BUG] Crash when opening a new tab from UI Nov 18, 2020
@dgozman dgozman added browser-chromium upstream This is a bug in something playwright depends on, like a browser. labels Nov 19, 2020
@dgozman
Copy link
Contributor

dgozman commented Nov 19, 2020

Upstream issue.

@dgozman
Copy link
Contributor

dgozman commented Dec 8, 2020

Fixed by #4626.

@dgozman dgozman closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser-chromium upstream This is a bug in something playwright depends on, like a browser.
Projects
None yet
Development

No branches or pull requests

3 participants