I am trying to render my app which has a WebGL dependency in Electron on my Linux PC, but nothing is rendering on the page, except for the CSS background color. When I remove the WebGL dependency, which is MapboxGL, then everything renders normally.
I am using X Virtual Frame Buffer, which seems necessary for a Linux environment, as described here: https://electronjs.org/docs/tutorial/testing-on-headless-ci
I am running Xvfb using this command:
Xvfb :99 -screen 0 1024x768x24 > xvfblog.txt 2>&1 &
I am not sure if this is relevant, but Xvfb starts up with the following messages:
The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Unsupported high keycode 372 for name <I372> ignored > X11 cannot support keycodes above 255. > This warning only shows for the first high keycode. > Internal error: Could not resolve keysym XF86WWAN > Internal error: Could not resolve keysym XF86RFKill > Internal error: Could not resolve keysym XF86Keyboard Errors from xkbcomp are not fatal to the X server
I also noticed that when I test my app using Electron on a Macbook, Xvfb is not required, and my WebGL app renders just fine.
I am a bit stumped here. Are there any suggestions about what could be wrong, or what I can investigate for a fix?