英文:
GitkKraken crashes at startup most probably related to my nvidia graphics driver on Fedora 37
问题
我运行的是 GitKraken 9.2,最近在我尝试在 Fedora 37 上启动 GitKraken 时经常崩溃。
崩溃转储和日志显示崩溃与我的图形驱动程序安装有关,具体如下。
$ inxi -G
显卡:
设备-1: NVIDIA GP107GL [Quadro P400] 驱动程序:nvidia v:525.89.02
设备-2: Dell Integrated_Webcam_5M_IR 类型:USB 驱动程序:uvcvideo
显示:服务器:X.Org v:1.20.14 使用:Xwayland v:22.1.8 驱动程序:X:
已加载:nvidia 未加载:fbdev,modesetting,nouveau,vesa dri:swrast
GPU:nvidia,nvidia-nvswitch 分辨率:1:3440x1440~60Hz
2:2560x1440~60Hz 3:2048x1152~60Hz
API:OpenGL v:4.5 Mesa 22.3.7 渲染器:llvmpipe(LLVM 15.0.7 256 位)
GitKraken 生成的日志如下:
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: (node:8451) UnhandledPromiseRejectionWarning: Error: 2
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at handleError (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:110593)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: ...
(省略部分日志)
...
Mar 15 13:38:01 tag009442760151 gitkraken.desktop[8482]: X connection to :1 broken (explicit kill or server shutdown).
英文:
I'm running GitKraken 9.2 and since recently it started crashing when I tried to start GitKraken on my Fedora 37.
The crash dump and log seems that the crash is related to my graphics driver installation, which is.
$ inxi -G
Graphics:
Device-1: NVIDIA GP107GL [Quadro P400] driver: nvidia v: 525.89.02
Device-2: Dell Integrated_Webcam_5M_IR type: USB driver: uvcvideo
Display: server: X.Org v: 1.20.14 with: Xwayland v: 22.1.8 driver: X:
loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa dri: swrast
gpu: nvidia,nvidia-nvswitch resolution: 1: 3440x1440~60Hz
2: 2560x1440~60Hz 3: 2048x1152~60Hz
API: OpenGL v: 4.5 Mesa 22.3.7 renderer: llvmpipe (LLVM 15.0.7 256 bits)
The GitKraken produced log looks like this:
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: (node:8451) UnhandledPromiseRejectionWarning: Error: 2
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at handleError (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:110593)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at handleError.next (<anonymous>)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at next (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681523)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at proc (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681296)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at pe.<computed> (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4676627)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at /usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681079
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at digestEffect (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4682151)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at next (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681588)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at Object.currCb [as cont] (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681913)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at end (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4680254)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at abort (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4679615)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at D.cont (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4679710)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at next (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681667)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at currCb (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681913)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at /usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4675225
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: (node:8451) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 7)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: (node:8451) UnhandledPromiseRejectionWarning: Error: 2
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at handleError (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:110593)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at handleError.next (<anonymous>)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at next (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681523)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at proc (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681296)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at pe.<computed> (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4676627)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at /usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681079
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at digestEffect (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4682151)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at next (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681588)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at Object.currCb [as cont] (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681913)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at end (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4680254)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at abort (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4679615)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at D.cont (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4679710)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at next (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681667)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at currCb (/usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4681913)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at /usr/share/gitkraken/resources/app.asar/src/main/static/main.bundle.js:2:4675225
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
Mar 15 13:37:58 tag009442760151 gitkraken.desktop[8451]: (node:8451) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)
Mar 15 13:37:59 tag009442760151 gitkraken.desktop[8451]: state: checking
Mar 15 13:38:00 tag009442760151 gitkraken.desktop[8632]: (node:8632) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Mar 15 13:38:00 tag009442760151 gitkraken.desktop[8632]: (Use `exe --trace-deprecation ...` to show where the warning was created)
Mar 15 13:38:00 tag009442760151 gitkraken.desktop[8632]: (node:8632) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
Mar 15 13:38:01 tag009442760151 gitkraken.desktop[8482]: X connection to :1 broken (explicit kill or server shutdown).
答案1
得分: 1
试了很多次更新驱动程序、更改OpenGL渲染器等方法后,我最终偶然发现了GitKraken的启动选项,解决了我的问题。
我使用的选项是禁用硬件加速
$ gitkraken --disable-gpu
如果这对你没有帮助,我找到了另外两个选项可能会有用:
$ gitkraken --no-sandbox
或者
$ gitkraken --disable-extensions
祝你好运!
英文:
After failing with lots of trial and error, such as updating the driver, changing the OpenGL renderer, etc. I finally stumbled upon GitKraken's launch options, which solved my problem.
The one option I used was for disabling hardware acceleration
$ gitkraken --disable-gpu
If this doesn't help for you, I've found two other options that may:
$ gitkraken --no-sandbox
or
$ gitkraken --disable-extensions
Good Luck!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论