[Bug]: page.evaluate in Chromium never settles when its argument nests 60 objects deep
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, typescript
- Ambito
- backend, testing-qa
Direzione di ricerca
Start by reading the page.evaluate argument serialization path and the protocol handling for Chromium's Runtime.callFunctionOn response; the issue provides a reproducer in repro.mjs from the linked repository. Run it with arguments 59 and 60 objects deep and inspect the protocol trace. Done means the 60-deep call resolves or rejects with a useful depth error instead of hanging; two linked pull requests are already open.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version
main (d3ca7ab), with the Chromium it pins, 158.0.8127.18
Steps to reproduce
- Clone https://github.com/YevheniiKotyrlo/playwright-chromium-evaluate-deep-argument
- Run
node repro.mjswith Node 18 or later and git. It clonesmain, runsnpm ciandnpm run build, installs the Chromiummainpins, writesDEBUG=pw:protocolto a file, and in a new page calls
let argument = 0;
for (let level = 0; level < objects; level += 1) {
argument = { children: [argument] };
}
await page.evaluate((value) => JSON.stringify(value).length, argument);
with objects at 59, then at 60, each raced against 10 seconds.
Expected behavior
The call with the argument 60 objects deep settles as the one 59 deep does: it resolves with the length, or rejects with an error that names the depth.
Actual behavior
It neither resolves nor rejects, so the caller waits until its own timeout. Chromium answers its Runtime.callFunctionOn with a parse error that carries no id:
microsoft/playwright d3ca7ab, Chromium 158.0.8127.18, Node v26.12.1, win32 x64
page.evaluate with an argument 59 objects deep: resolved with 886 after 14 ms
page.evaluate with an argument 60 objects deep: neither resolved nor rejected within 10 s after 10009 ms
Chromium's answer with no id: {"error":{"code":-32700,"message":"JSON: stack limit exceeded at position 2223"}}
summary: microsoft/playwright d3ca7ab with Chromium 158.0.8127.18 resolves page.evaluate with an argument 59 objects deep and neither resolves nor rejects it with one 60 deep
Environment
microsoft/playwright d3ca7ab, Chromium 158.0.8127.18, Node v26.12.1, win32 x64 (Windows 11 Pro)
- Lingua principale
- TypeScript
- Stelle
- 99.7k
- Fork
- 6.8k
- Merge medio
- 16h 10m
- PR unite (30g)
- 301
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/playwright
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/playwright#44109 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: WebKit emits pageerror for native RTCDataChannel send diagnostics without a JS exceptionApertaagent-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
microsoft/playwright#44103 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[MCP]: --extension --background: noDefaults skips focus emulation, hidden tabs get no rAF and clicks time outForse già presa @microsoft-playwright-automation l’ha presa oggi. Apertaagent-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
microsoft/playwright#44096 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Crash tests fail with the Chromium sandbox on LinuxForse già presa @microsoft-playwright-automation l’ha presa oggi. Apertaagent-triage needs-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
microsoft/playwright#44094 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
api review feedback Nov 11th, 2026Forse già presa @luizpaulo-antunes l’ha presa 1 giorno fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
microsoft/playwright#44062 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/playwright
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pieterjanscheir/belgica#201 ·
I maintainer di solito rispondono entro 1 giorno
-
accessibility
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
numerique-gouv/lasuite-landingpage#311 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
oxc-project/tsgolint#1362 ·
I maintainer di solito rispondono entro 1 giorno
-
bug external xai
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
langchain-ai/langchain#41854 ·
I maintainer di solito rispondono entro 1 giorno
-
ready-for-agent
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
nemchik/biome-plugin-suitescript#137 ·
I maintainer di solito rispondono entro 1 giorno