chromeless icon indicating copy to clipboard operation
chromeless copied to clipboard

Support for WebGL when running on Lambda

Open wmdmark opened this issue 7 years ago • 5 comments

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?

wmdmark avatar Aug 18 '17 19:08 wmdmark

see https://developers.google.com/web/updates/2017/04/headless-chrome#faq

pklingem avatar Aug 22 '17 20:08 pklingem

@pklingem I've seen that but it actually works just fine w/out that flag. Is there any way to disable it currently?

wmdmark avatar Aug 22 '17 20:08 wmdmark

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.

adieuadieu avatar Aug 23 '17 13:08 adieuadieu

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.

benoitlavorata avatar Oct 28 '17 15:10 benoitlavorata

I just wanted to say that I ran into the same issue. If anyone has a workaround, that would be greatly appreciated.

stevewillard avatar Jan 23 '18 15:01 stevewillard