Crash tests fail with the Chromium sandbox on Linux
Maintainer thường phản hồi trong vòng 1 ngày
@microsoft-playwright-automation đang làm issue này rồi.
Từ ngày 13/11/2026.
- #44102 của @microsoft-playwright-automation — đang mở
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github-actions, playwright, typescript
- Lĩnh vực
- ci-cd, testing, testing-qa
Hướng nghiên cứu
Start with tests/mcp/crash.spec.ts and the sandbox flags in packages/playwright-core/src/tools/mcp/config.ts; compare the failing MCP tests with the passing CDP crash test in tests/mcp/cli-cdp.spec.ts. Run the crash tests on Linux Chrome with --no-sandbox to test the reported hypothesis, then investigate the renderer crash event and revisit the skips in tests/mcp/crash.spec.ts and tests/library/page-event-crash.spec.ts. Done means the cause is identified and the skips match the condition that requires them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The page crash event does not arrive when Chrome runs with the Chromium sandbox on Linux. This is an inference from the bot results below. No run has tested Chrome on Linux with only the sandbox changed.
Failing tests
The three tests in tests/mcp/crash.spec.ts fail on the ubuntu-latest - chrome MCP job in every run on main since 12 November (13 of 13 runs).
ubuntu-latestmoved from theubuntu-24.04image toubuntu-26.04on 12 November. The file skips these tests onubuntu24.04with the reason "never dispatches the crash event" (crash.spec.ts#L22). That skip does not apply on Ubuntu 26.04.- Last job on
ubuntu-24.04, tests skipped: https://github.com/microsoft/playwright/actions/runs/43144624249/job/130939423022 - First job on
ubuntu-26.04, Chrome, tests fail: https://github.com/microsoft/playwright/actions/runs/43278840376/job/131394396446 - Same run, Chromium, tests pass: https://github.com/microsoft/playwright/actions/runs/43278840376/job/131394396707
- Latest failed job: https://github.com/microsoft/playwright/actions/runs/43347870985/job/131631484897
The crash event never arrives:
1) [chrome] › tests/mcp/crash.spec.ts:31:3 › crash recovery › reports the navigation error, then resets and logs the crash
Error: Test timeout of 30000ms exceeded
47 | expect(log).toContain('Page crashed and was reset to about:blank.');
> 48 | }).toPass();
2) [chrome] › tests/mcp/crash.spec.ts:58:3 › crash recovery › lists only one tab
Test timeout of 30000ms exceeded.
Error: Not connected
3) [chrome] › tests/mcp/crash.spec.ts:79:3 › crash recovery › marks non-current crashed tab in the tab list
Test timeout of 30000ms exceeded.
Error: Not connected
In tests 2 and 3, page.waitForEvent('crash') after page.goto('chrome://crash') does not resolve.
Why the sandbox
On Linux, the MCP server starts --browser=chrome with the sandbox on and --browser=chromium with the sandbox off (config.ts#L235-L242). The library starts all browsers with the sandbox off.
Crash tests on the Linux MCP bots, main, 6 to 13 November:
| Test | Browser | Started by | Sandbox | Ubuntu 26.04 | Ubuntu 24.04 |
|---|---|---|---|---|---|
mcp/crash.spec.ts (3 tests) |
Chrome stable | MCP server | on | 0 of 13 passed | skipped |
mcp/crash.spec.ts (3 tests) |
Chromium | MCP server | off | 13 of 13 passed | skipped |
attach via cdp with a crashed page |
Chrome stable | library | off | 13 of 13 passed | 47 of 47 passed |
attach via cdp with a crashed page |
Chromium | library | off | 13 of 13 passed | 48 of 48 passed |
attach via cdp with a crashed pageruns in the same job with the same Chrome stable. It navigates tochrome://crash, waits for thecrashevent, and passes. Thus the Chrome build is not the cause.- That test also passed on Ubuntu 24.04 with Chrome and with Chromium. Thus the Ubuntu version is probably not the cause, and the
ubuntu24.04skip names the wrong condition. - Chrome on macOS and Windows passes
mcp/crash.spec.tswith the sandbox on. Only Linux has the problem.
Skips to examine again
tests/mcp/crash.spec.ts#L22: skip onubuntu24.04, added in #40617.tests/library/page-event-crash.spec.ts#L40: the same skip for Chromium onubuntu24.04, added in #40156. The library runs with the sandbox off, so this skip does not agree with the sandbox explanation. It is possibly out of date, or specific to theplaywright-x64-ubuntu24-64-coremachines.
Next steps
- Run
tests/mcp/crash.spec.tswith--no-sandboxon the Linux Chrome bot to confirm that the sandbox is the cause. - Replace the
ubuntu24.04skips with the correct condition. - Find why a sandboxed Chrome on Linux does not report the renderer crash. The job reports have no browser output or MCP server output.
- Ngôn ngữ chính
- TypeScript
- Star
- 99.7k
- Fork
- 6.8k
- Merge trung bình
- 16 giờ 10 phút
- Pull request đã merge (30 ngày)
- 301
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/playwright
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/playwright#44109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: WebKit emits pageerror for native RTCDataChannel send diagnostics without a JS exceptionĐang mởagent-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
microsoft/playwright#44103 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[MCP]: --extension --background: noDefaults skips focus emulation, hidden tabs get no rAF and clicks time outCó thể đã có người làm @microsoft-playwright-automation đã nhận hôm nay. Đang mởagent-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoft/playwright#44096 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api review feedback Nov 11th, 2026Có thể đã có người làm @luizpaulo-antunes đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
microsoft/playwright#44062 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: page.evaluate in Chromium never settles when its argument nests 60 objects deepCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởagent-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoft/playwright#44060 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/playwright
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pieterjanscheir/belgica#201 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
No skip link to the main contentĐang mởaccessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
numerique-gouv/lasuite-landingpage#311 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
oxc-project/tsgolint#1362 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug external xai
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
langchain-ai/langchain#41854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ready-for-agent
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
nemchik/biome-plugin-suitescript#137 ·
Maintainer thường phản hồi trong vòng 1 ngày