Hello, I stumbled across this forum and thread whilst searching for a nwjs related problem. I'm trying to get the game Code Cross to work on Arch and using Intel Mesa gpu drivers, but I'm getting -after a few seconds of flawless gameplay- the error message: »[28197 28197 0604 032208 008206 ERROR sandbox_linux cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.«, this has to do with chromium and the problem is reported in the debian mailing list. They suggest compiling chromium with »MESA_GLSL_CACHE_DISABLE=true«, but I would really prefer not having to build nwjs and chromium from scratch. Has anybody done this already, can supply built libraries or explain how to build chromium/nwjs?
Have you read their
You must be registered to see the links
on this?
It seems to be an environment variable, so try
export MESA_GLSL_CACHE_DISABLE=true
before running your game. (Be careful with export, though; It is the powerful version and may have lasting side effects, if
MESA_GLSL_CACHE_DISABLE=true ./nw.js
work then go for it - but syntax might not be exactly this)
I also read somewhere about
--disable-gpu
, or opening DevTools and disabling cache from there; But I would not know. It seems to be Chromium-related, so there are dozen flags like
--disable-gpu-sandbox
,
--disable-gpu-shader-disk-cache
,
--gpu-sandbox-start-early
, and
You must be registered to see the links
which may or may not work. Full documentation on using chromium flags on NWJS should be
You must be registered to see the links
.
TL;DR It is an old bug (2013~present) with hardware acceleration not working "exactly as expected" on sandbox mode. Should be possible to bypass without recompiling stuff, but be ready to waste more than a couple hours with trial-and-error.
Issues like this one is I particularly prefer SDL over OpenGL, tbh.