Skip to content

fedora41下程序闪退 #98

@wold9168

Description

@wold9168

问题环境

❯ fastfetch -l none
wold9168@toughb
---------------
OS: Fedora Linux 41 (KDE Plasma) x86_64
Host: ProLiant ML350p Gen8
Kernel: Linux 6.12.15-200.fc41.x86_64
Uptime: 3 hours, 13 mins
Packages: 3453 (rpm), 12 (flatpak), 3 (snap)
Shell: zsh 5.9
Display (SKG2418): 1920x1080 @ 60 Hz in 27" [External]
DE: KDE Plasma 6.3.1
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Light) [Qt], Breeze [GTK3]
Icons: breeze [Qt], breeze [GTK3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK3/4]
Cursor: breeze (24px)
Terminal: yakuake 24.12.2
CPU: 2 x Intel(R) Xeon(R) E5-2696 v2 (48) @ 3.50 GHz
GPU 1: NVIDIA GeForce GTX 1060 5GB [Discrete]
GPU 2: NVIDIA Tesla P4 [Discrete]
Memory: 10.19 GiB / 236.08 GiB (4%)
Swap: 82.43 MiB / 8.00 GiB (1%)
Disk (/): 380.64 GiB / 741.21 GiB (51%) - btrfs
Disk (/default): 2.93 TiB / 10.77 TiB (27%) - zfs
Local IP (eno1): 192.168.24.4/24
Locale: en_US.UTF-8

问题症状

fedora41下程序闪退。桌面为KDE Plasma 6.3.1
使用命令行调用程序发现日志如下:

❯ 小白兔AI
Gdk-Message: 09:40:47.841: Error 71 (Protocol error) dispatching to Wayland display.

补救措施

在tauri上游查找到issue:tauri-apps/tauri#10702
该问题应该和NVIDIA有关,问题机器使用的显卡为NVIDIA GTX 1060 5GB

临时解决方案为使用WEBKIT_DISABLE_DMABUF_RENDERER=1或者__NV_DISABLE_EXPLICIT_SYNC=1启动程序,即

WEBKIT_DISABLE_DMABUF_RENDERER=1 小白兔AI

或者

__NV_DISABLE_EXPLICIT_SYNC=1 小白兔AI

希望在打包中,为程序的入口点添加此环境变量作为临时补救措施。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions