-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] #20347
Labels
Comments
I can repro, this looks like an OOM while building the console object previews. Not sure how Puppeteer is relevant, but this looks like a real Playwright bug. |
aslushnikov
added a commit
to aslushnikov/playwright
that referenced
this issue
Jan 25, 2023
Right now arrays preview yields all array elements. In case of a sparse array with a single element on index 10000000, this results in a large string that OOM Node.js. This patch changes pretty-printing. For example: ```ts // Given this array const a = []; a[10] = 1; // Before this patch, pretty printing will yield: "[,,,,,,,,1]" // With this patch, pretty printing yields: "[<9 empty items>,1]" ``` The new array pretty-printing is equal to what Node.js CLI does to render sparse arrays. Fixes microsoft#20347
aslushnikov
added a commit
that referenced
this issue
Jan 27, 2023
Right now arrays preview yields all array elements. In case of a sparse array with a single element on index 10000000, this results in a large string that OOM Node.js. This patch changes pretty-printing. For example: ```ts // Given this array const a = []; a[10] = 1; // Before this patch, pretty printing will yield: "[,,,,,,,,1]" // With this patch, pretty printing yields: "[empty x 9, 1]" ``` The new array pretty-printing is equal to what Chrome DevTools do to render sparse arrays. Fixes #20347
I upgraded to Playwright 1.30.0, but I can still reproduce the bug, on Mac, Linux |
@doliere the fix didn't make it to 1.30 - it'll be released in 1.31. You can try it out on Playwright canary:
|
that works, thanks :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context:
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
Describe the bug
The browser keeps crashing with the following error
I have tried the same code with Puppeteer and the issue was not there. The problem seems to be related to iframes that are loaded within the particular site.
The text was updated successfully, but these errors were encountered: