Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU process isn't usable #104

Closed
cnrrobertson opened this issue Feb 23, 2022 · 3 comments · Fixed by #106
Closed

GPU process isn't usable #104

cnrrobertson opened this issue Feb 23, 2022 · 3 comments · Fixed by #106

Comments

@cnrrobertson
Copy link

I stumbled on an error trying to use DataVoyager.jl today that led me here. When I try

using Electron
app = Application()

I get the error

[11034:0223/094707.505041:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.

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

proc = open(`$electron_path $mainjs $main_pipe_name $sysnotify_pipe_name $secure_cookie_encoded --no-sandbox`, "w", stdout)

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.

@Paethon
Copy link

Paethon commented Mar 24, 2022

Thanks! I had exactly the same problem! Your solution also solved it for me.

@kbarros
Copy link

kbarros commented May 11, 2022

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.

@kbarros
Copy link

kbarros commented May 11, 2022

I filed an issue on ElectronBuilder (davidanthoff/ElectronBuilder#4). It seems like the Electron version there needs to be bumped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants