You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to render WebGL-based websites using playwright-aws-lambda and came across a relevant discussion in the serverless-chrome repository. In this thread, there were multiple comments discussing how to enable WebGL rendering in serverless environments, with either SwiftShader or OSMesa being required.
In particular, I looked into this comment by @apalchys], where they provided a working implementation (including a demo) for WebGL rendering. The implementation involved:
The rendering binary placed in the same directory as the Chromium binary
Specific Chromium launch arguments:
--use-gl=osmesa
--enable-webgl
--ignore-gpu-blacklist
--homedir=/tmp
--single-process
--data-path=/tmp/data-path
--disk-cache-dir=/tmp/cache-dir
I attempted to use this exact setup with playwright-aws-lambda, hoping the presence of the swiftshader.tar.br file would allow me to achieve the same results. However, I encountered the following error: browserContext.newPage: Target page, context or browser has been closed.
I only have surface-level knowledge of the issue and would appreciate any insight.
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered:
Hi there,
I’m trying to render WebGL-based websites using
playwright-aws-lambda
and came across a relevant discussion in the serverless-chrome repository. In this thread, there were multiple comments discussing how to enable WebGL rendering in serverless environments, with either SwiftShader or OSMesa being required.In particular, I looked into this comment by @apalchys], where they provided a working implementation (including a demo) for WebGL rendering. The implementation involved:
--use-gl=osmesa
--enable-webgl
--ignore-gpu-blacklist
--homedir=/tmp
--single-process
--data-path=/tmp/data-path
--disk-cache-dir=/tmp/cache-dir
I attempted to use this exact setup with
playwright-aws-lambda
, hoping the presence of theswiftshader.tar.br
file would allow me to achieve the same results. However, I encountered the following error:browserContext.newPage: Target page, context or browser has been closed.
I only have surface-level knowledge of the issue and would appreciate any insight.
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: