Skip to content

[BUG] Linux/Wayland(niri): 0.9.5 window registered but never renders, 4 gdrv0/gl0 render threads loop, ~28% CPU; GDK_BACKEND=x11 works #3140

Backlog

Description

@linxuan-sys

描述 / Describe the bug

Arch Linux + niri(Wayland)下,flclash 0.9.5-1(本仓库 releases 的二进制打包,即 AUR flclash 使用的源)启动后窗口已注册但内容始终不渲染,鼠标点击无响应,进程不退出、不崩溃,主线程持续占用约 28% CPU 空转,只能 kill -9。

/proc/<pid>/task 中可见 4 组 flclash:gdrv0 / flclash:gl0 渲染线程反复重建,符合 EGL 上下文创建失败后重试循环的特征。

环境 / Environment

  • FlClash: flclash 0.9.5-1(AUR/源码打包,非 flclash-bin——后者同样复现过)
  • OS: Arch Linux, kernel 7.3.6-zen1-1-zen
  • Desktop: niri(纯 Wayland 合成器),XWayland 运行中
  • GPU: AMD Radeon 780M (radeonsi, phoenix),Mesa 1:26.3.1-3,GLES 正常(glxinfo direct rendering: Yes)
  • GTK3;WAYLAND_DISPLAY=wayland-1

复现 / To Reproduce

  1. 默认启动 flclash
  2. niri 中出现 com.follow.clash 窗口(tile 占位),内容永远画不出来,点击无反应
  3. GDK_BACKEND=x11 flclash → 立即正常渲染(仪表盘、配置、系统代理全部正常)
  4. 日志对比:X11 下输出 Using the Impeller rendering backend (OpenGLESSDF) 后正常进入 IPC/setup;Wayland 下进程卡死无此后的应用日志

期望 / Expected behavior

Wayland 原生后端下正常渲染,无需 X11 回退。

备注

谢谢~

Activity

  1. github-actions commented on Nov 29, 2026

    @github-actions

    这个 issue 缺少必要信息,已标记 needs-info:
    This issue is labelled needs-info because it is incomplete:

    • 没有通过 issue 表单提交 / Not opened through one of the issue forms.

    编辑 issue 补全后标记会自动去掉;标记满 7 天仍未补全的 issue 会被关闭。新 issue 请用表单:https://github.com/Vialibrex/FlClash/issues/new/choose

    Edit the issue to complete it, and the label is removed. An issue still labelled needs-info 7 days after it was labelled is closed. New issues go through the forms: https://github.com/Vialibrex/FlClash/issues/new/choose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions