chromeless
chromeless copied to clipboard
Support for WebGL when running on Lambda
I'm trying to grab a screenshot of a webgl rendered UI and it doesn't appear to work on the when running on the example Lambda playground. Here's an example playground trying to screenshot a webgl map: example
An the image I get (note error message):
I assume this is because Chrome is being launched with the ---disable-gpu
flag set. Is there a way to override this behavior?
see https://developers.google.com/web/updates/2017/04/headless-chrome#faq
@pklingem I've seen that but it actually works just fine w/out that flag. Is there any way to disable it currently?
Hi @wmdmark — Outside of the Lambda context, the --disable-gpu
is not set. However, currently within the Lambda contexts, --disable-gpu
is required or Chrome won't run correctly. This may be resolved soon with some coming updates upstream in serverless-chrome.
Hello @adieuadieu @wmdmark --- Did you get manage to make it work ? I a having a similar issue while trying to display a page using a webGL component.
I just wanted to say that I ran into the same issue. If anyone has a workaround, that would be greatly appreciated.