Unexpected Crashes of Playwright in Headful Chromium Mode

I am experiencing unexpected crashes when running Playwright in headfull mode using the Chromium browser within a Docker container on Render. The application deploys fine to Render, but when a request is made to an endpoint within the container that launches the Playwright browser instance in headfull mode, it crashes with the error message “Unexpected error occurred: Page crashed.”

I am unsure if this issue is related to resource limits, as I am unable to check metrics on a free plan, or if it is due to another underlying factor.

I would appreciate any insights or recommendations on how to diagnose and resolve this issue.

Just wanted to point out that this container setup of running playwright headfully in a docker container works locally without crashing. Should I be providing addtional details? I wanted to keep the repository private but if the situation can’t be debugged without seeing the repository I guess I’ll have to make it public, let me know, please and thanks.

that’s probably because 512mb of ram isn’t enough for it to launch an instance of chromium. Well i have never used playwright but i have used puppeteer which works fine on render. try considering switching to puppeteer if you can or else you may have to switch from render