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] webkit crashes when loading a standard Drupal 9 admin page

See original GitHub issue

Context:

System:

  • OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
  • Memory: 12.46 GB / 15.58 GB
  • Container: Yes

Binaries:

  • Node: 16.14.1 - /usr/bin/node
  • npm: 8.5.0 - /usr/bin/npm

Languages:

  • Bash: 5.0.17 - /usr/bin/bash

npmPackages:

  • playwright: ^1.12.3 => 1.20.0

Code Snippet

import { test } from '@playwright/test';

const testDomain = 'https://dev-playwright-debug.pantheonsite.io/';

test('Fix the login', async ({ page }, workerInfo) => {
  await page.goto(`${testDomain}user/login`);
  await page.locator('input[name="name"]').fill('administrator');
  await page.locator('input[name="pass"]').fill('password');
  await page.locator('input:has-text("Log in")').click();
  await page.locator('h1.page-title:has-text("administrator")');
  await page.goto(`${testDomain}admin/structure`, { "waitUntil": "networkidle"});
  await page.waitForSelector('h1.page-title:has-text("Structure")');
});

Describe the bug

When I run the test above using WebKit, it crashes with the following error:

    page.waitForSelector: Target closed

Chrome + Firefox work fine.

The test logs in to a standard Drupal 9 site as an administrator and navigates to an admin page, but Playwright/webkit crashes before the page can be loaded.

The test used in the site is the current release of Drupal 9 freshly installed with no modifications. The JS is limited to some basic jquery and the standard Drupal boilerplate. Logging in to this website in Safari normally on desktop or mobile works fine. More context in this Stack Overflow question

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ptmkennycommented, Mar 31, 2022

Yesterday, after updating all packages on ubuntu to the latest versions, I no longer get this problem; the webkit tests resolve normally as expected. Unfortunately, I’m not sure of which package was updated to fix the issue, but I’ll close this out as it seems to be OS-specific and the result of packages interfering with each other.

0reactions
ptmkennycommented, Mar 26, 2022

@dgozman Thanks.

First, I tried /home/anon/.cache/ms-playwright/webkit-1616/pw_run.sh:

  1. Go to https://dev-playwright-debug.pantheonsite.io/user/login with “administrator” “password”.
  2. After logging in, in the toolbar that appears at the top of the screen, click “Structure”.

The page immediately crashes with this error in the terminal:

Gdk-Message: 12:44:19.464: Error reading events from display: Broken pipe
Gdk-Message: 12:44:19.464: Error reading events from display: Broken pipe

I also tried npx playwright wk which produced the same result, although this didn’t print out any particular errors.

I should note I’m running Playwright on the latest release version of Windows 11 via WSL2/Ubuntu.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Site crashes sporadically when navigating in the admin theme
Problem/Motivation When browsing around the admin theme, i get the following error The website encountered an unexpected error.
Read more >
Broken site problems | Troubleshooting Drupal
Run the update script, and 'Clear all caches'. When a site is acting strangely, or displays bizarre errors, or displays a blank page, ......
Read more >
after adding a link to the menu, it crashes the site at the Drupal ...
The only fix I've ever come across is to visit the TB Mega Menu configuration page and save configuration, then goto the Drupal...
Read more >
/admin/structure/views not loading [#3258031] | Drupal.org
Not sure how my system got into this state, but I can't view the /admin/structure/views page. Instead, I get a WSOD with the...
Read more >
Bug listing with status RESOLVED with resolution TEST ...
Bug :233 - "Emacs segfaults when merged through the sandbox. ... Bug:51651 - "Konqueror and Mozilla both crash when loading mplayerplug-in" status:RESOLVED ...
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