[BUG] webkit crashes when loading a standard Drupal 9 admin page
See original GitHub issueContext:
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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
@dgozman Thanks.
First, I tried
/home/anon/.cache/ms-playwright/webkit-1616/pw_run.sh:The page immediately crashes with this error in the terminal:
I also tried
npx playwright wkwhich 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.