Closed cnrrobertson closed 2 years ago
Thanks! I had exactly the same problem! Your solution also solved it for me.
I also have this problem (Ubuntu` Linux, 22.04 LTS).
Another way to get this working is to use
proc = open(`$electron_path $mainjs $main_pipe_name $sysnotify_pipe_name $secure_cookie_encoded --in-process-gpu`, "w", stdout)
Specifically, --in-process-gpu
can work instead of --no-sandbox
.
Here is more discussion from the SUSE folks.
It seems like the solution is to upgrade to the latest Electron.
I filed an issue on ElectronBuilder (https://github.com/davidanthoff/ElectronBuilder/issues/4). It seems like the Electron version there needs to be bumped.
I stumbled on an error trying to use DataVoyager.jl today that led me here. When I try
I get the error
This error seems connected to an Electron issue here and here for Arch Linux users. I also found similar issues for OSX when sandboxing Electron restricts access to GPU processes.
Workaround: Following the recommendations in the above issues, I was able to avoid the error by changing https://github.com/davidanthoff/Electron.jl/blob/master/src/Electron.jl#L147 to
which adds the sandboxing command directly to the electron call.
After this adjustment, my DataVoyager code works without issue. I'm not familiar with Electron, so I'm not sure if there is a better fix than this, but wanted to share.