Skip to content

Chromium "Out of Memory" error results in hang #616

@Sundwalltanner

Description

@Sundwalltanner

OS: Windows 10
Python: 3.8.7
Playwright: v1.10.0
Chromium: 90.0.4430.0

After running a context for a little less than an hour, Chromium redirects to this page:

chrome_2021-04-08_16-07-11

And Playwright itself just sits there doing absolutely nothing, when the wait_for_selector() call that my code's sitting on should timeout after the default timeout value of 30 seconds.

Hitting this Out of Memory page in Chromium isn't an issue for me, because with the way I've got things set up, any issues like this should cause the current context to be closed and a new one opened to continue from where the previous one ran into an issue.

My biggest problem here is that Playwright becomes unresponsive. If I could get it to raise an exception instead, that'd be preferred.

At first, this happened in headless, so I had no idea what was actually causing the hang. Then I reran it headed and was not only able to screenshot the page it was happening on, but once I manually intervened and clicked the Learn more link seen in the image above, Playwright started functioning again and acknowledged that it had timed out after 30 seconds, even though it had been sitting at this Chromium error screen for around 20 minutes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions