Closed Myztiq closed 1 year ago
Based on some reading https://github.com/docker/for-mac/issues/6204 seems to be the issue. Once https://github.com/Sparticuz/chrome-aws-lambda/pull/11 is there this should get resolved which relies on https://github.com/aws/aws-lambda-base-images/issues/59 .
I'll close the ticket for now.
Environment
chromium
Version: 111.0.0"playwright
Version: 1.31.0Expected Behavior
Browser launch should not trigger a segfault
Current Behavior
When trying to launch the browser it crashes with:
Steps to Reproduce
https://github.com/Myztiq/lambda-playwright-chromium-crash
docker build --platform linux/x86_64 . -t lambda-test
docker run --platform linux/x86_64 -p 9000:8080 lambda-test
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -H 'Content-Type: application/json' -d {}
I looked through playwright's version support and it looks like we should be locking it to 1.31.0 as that was tested agains
Chromium 111.0.5563.19
and stableGoogle Chrome 110
. I'm trying to get my lambdas updated to node 18 and I can no longer usechrome-aws-lambda
to do that.I should add that I can get everything to work when I don't use docker, but I am running into an issue that can only be reproduced on the remote lambda server so I need to get this running in docker to be able to reproduce and debug locally.