简体   繁体   中英

GitKraken crash on Fedora - "GPU process isn't usable. Goodbye."

I'm running GitKraken 8.2.1 on Fedora and after upgrading from Fedora 34 to 35 GitKraken wouldn't start anymore, showing when started on command line following error:

$ /usr/share/gitkraken/gitkraken

(node:71300) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(node:71300) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
(electron) 'allowRendererProcessReuse' is deprecated and will be removed.
state:  unavailable
[71300:0128/121858.313660:FATAL:gpu_data_manager_impl_private.cc(442)] GPU process isn't usable. Goodbye.
Failed to generate minidump.[1]    71300 illegal hardware instruction (core dumped)  /usr/share/gitkraken/gitkraken

I tried purging and reinstalling GitKraken, removing the complete local config ~/.gitkraken , turned on logging to SILLY but didn't get any further hints what's going on.

Interestingly I ran the same setup (Fedora 35 & GitKraken 8.2.1) on another machine which just works fine.

Finally I solved that issue. I found that GitKraken is based on EletronJS which has some auxAttributes for GPU . These attributes can be altered via command line given that they are enabled via app.commandLine.appendSwitch command in the gitkraken EletronJS application. All these additional EletronJS related parameters are hidden from the command line parameters documented via /usr/share/gitkraken/gitkraken -h .

So the solution was for me to start GitKraken from command line using the ElectronJS attribute "InProcessGpu", which basically run the GPU process as a thread. To enable that feature simple start gitkraken wiht the attribute --in-process-gpu , eg

/usr/share/gitkraken/gitkraken --in-process-gpu &

Btw. I also found another solution in the gitkraken forum that completely disables GPU usage by calling gitkraken --in-process-gpu . This approach didn't work out for me though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM