Sandboxing error in Chrome (Node.js environment)


I’ve been having problems running Chrome on Travis CI. Karma’s build process runs as usual, but when it gets to launching Chrome, I get the following error, despite using the --no-sandbox flag:

[launcher]: Cannot start Chrome
[8522:8522:0828/] Unable to open X display.
[0828/] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly

I’ve tried switching my Linux image from Xenial to Bionic, I’ve added the --disable-setuid-sandbox, I’ve even tried running tests via Puppeteer as root user (as per this comment), but nothing seems to work.

This is the latest build, and here’s my Karma config.

When running it on my Mac (macOS 10.15.6), Karma launches Chrome, all tests run, everything works right. It’s only on Travis that I can’t seem to be able to run it at all.

New here so hopefully I added needed :slight_smile:
Thank you in advance for any help!