[GH-ISSUE #307] [bug] 应用在 Wayland (KDE Plasma 6) 环境下启动时立即崩溃 #220

Closed
opened 2026-03-02 03:38:33 +03:00 by kerem · 1 comment
Owner

Originally created by @syou-kan on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/codexu/note-gen/issues/307

详细描述这个 Bug

问题描述

note-gen 应用在 KDE Plasma 6 的 Wayland 桌面会话下启动时会立即崩溃。程序会立即终止,并在终端输出 “Gdk-Message: Error 71 (协议错误) dispatching to Wayland display” 的错误信息。

复现步骤

要复现这个问题的具体步骤如下:

  1. 登录 Arch Linux 下的 KDE Plasma 6 Wayland 会话。
  2. 打开一个终端 (例如 Konsole)。
  3. 在终端中输入并执行 note-gen 命令。
  4. 程序立即终止,没有显示任何图形界面,并在终端返回错误信息。

预期行为

note-gen 应用的主窗口应该正常打开,程序可以被正常使用。

实际行为

应用在启动的瞬间就崩溃了,没有任何窗口或界面出现。

错误日志

以下是执行命令后,终端输出的完整内容:

(note-gen:103752): libayatana-appindicator-WARNING **: 16:47:53.058: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
Gdk-Message: 16:47:53.290: Error 71 (协议错误) dispatching to Wayland display.

系统环境

  • 操作系统: Arch Linux (Rolling Release)
  • 桌面环境: KDE Plasma 6.4.0
  • 显示服务器: Wayland
  • note-gen 版本: note-gen-bin 0.18.2-1
  • 安装方式: 通过 Arch User Repository (AUR) 安装了 note-gen-bin 这个预编译包。

补充说明与临时解决方案 (Workaround)

这个问题似乎是 note-gen 的图形后端与原生 Wayland 协议不兼容所导致的。

NoteGen 版本

0.18.2-1

操作系统

Linux

报错日志

No response

Originally created by @syou-kan on GitHub (Jun 25, 2025). Original GitHub issue: https://github.com/codexu/note-gen/issues/307 ### 详细描述这个 Bug **问题描述** `note-gen` 应用在 KDE Plasma 6 的 Wayland 桌面会话下启动时会立即崩溃。程序会立即终止,并在终端输出 “Gdk-Message: Error 71 (协议错误) dispatching to Wayland display” 的错误信息。 **复现步骤** 要复现这个问题的具体步骤如下: 1. 登录 Arch Linux 下的 KDE Plasma 6 Wayland 会话。 2. 打开一个终端 (例如 Konsole)。 3. 在终端中输入并执行 `note-gen` 命令。 4. 程序立即终止,没有显示任何图形界面,并在终端返回错误信息。 **预期行为** `note-gen` 应用的主窗口应该正常打开,程序可以被正常使用。 **实际行为** 应用在启动的瞬间就崩溃了,没有任何窗口或界面出现。 **错误日志** 以下是执行命令后,终端输出的完整内容: ``` (note-gen:103752): libayatana-appindicator-WARNING **: 16:47:53.058: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code. Gdk-Message: 16:47:53.290: Error 71 (协议错误) dispatching to Wayland display. ``` **系统环境** * **操作系统:** Arch Linux (Rolling Release) * **桌面环境:** KDE Plasma 6.4.0 * **显示服务器:** Wayland * **`note-gen` 版本:** `note-gen-bin 0.18.2-1` * **安装方式:** 通过 Arch User Repository (AUR) 安装了 `note-gen-bin` 这个预编译包。 **补充说明与临时解决方案 (Workaround)** 这个问题似乎是 `note-gen` 的图形后端与原生 Wayland 协议不兼容所导致的。 ### NoteGen 版本 0.18.2-1 ### 操作系统 Linux ### 报错日志 _No response_
kerem closed this issue 2026-03-02 03:38:33 +03:00
Author
Owner

@codexu commented on GitHub (Jun 30, 2025):

因为截图记录功能使用到了 xcap,可能是对 Wayland 支持不太友好,这个暂时没有更好的解决方式。

<!-- gh-comment-id:3018402553 --> @codexu commented on GitHub (Jun 30, 2025): 因为截图记录功能使用到了 [xcap](https://github.com/nashaofu/xcap),可能是对 Wayland 支持不太友好,这个暂时没有更好的解决方式。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#220
No description provided.