node.js - How can I render a canvas with WebGL enabled on an Ubuntu server? -


i have program uses devtool run headless browser renders canvas element, converts base64 image, saves disk. i'd have run on aws g2 ubuntu server, has nvidia graphics cards.

to run program, use xvfb virtual frame buffer. command looks this:

xvfb-run --server-args="-screen 0 1024x768x24" devtool main.js -i index.html -h -c 

the problem i'm having webgl support. under hood, devtool uses electron create browser context. on osx machine, works fine. on server, gives me couple errors:

xlib:  extension "randr" missing on display ":9.0" 

and

[5331:0127/180654:error:sandbox_linux.cc(338)] initializesandbox() called multiple threads in process gpu-process 

i've troubleshooted in number of ways. randr, i've tried enabling +extension randr devtool.

i attempted enabling experimentalfeatures flag electron (within devtool source code) webgl support. features tried disable-gpu, disable-gpu-sandbox, , ignore-gpu-blacklist.

any appreciated, or if have better idea i'm doing, i'd love hear it!


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -