基于 wlroots 的 wayland compositer 下使用 flameshot 截图后复制到剪切板会令 flameshot crash

121 views
Skip to first unread message

terry shen

unread,
Apr 19, 2023, 10:22:20 PM4/19/23
to Arch Linux中文邮件组
这个问题我在两台安装了 archlinux 的机器复现,复现步骤如下
  1. 安装 Hyprland , xdg-desktop-portal-hyprland, xdg-desktop-gtk, mako, wl-clipboard, flameshot
  2. 运行 Hyprland,  xdg-desktop-portal-hyprland,mako
  3. 运行 XDG_CURRENT_DESKTOP=Sway flameshot gui
  4. 选取截屏区域点击复制
  5. 可以正常复制到剪切板
  6. reboot
  7. 运行  Hyprland,  xdg-desktop-portal-hyprland,mako
  8. 运行 XDG_CURRENT_DESKTOP=Sway flameshot gui
  9. 选取截屏区域点击复制
  10. 观察 journalctl:
          4月 09 22:02:51 shenweijie-pc flameshot[2880]: qt.qpa.xcb: could not connect to display
4月 09 22:02:51 shenweijie-pc flameshot[2880]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
4月 09 22:02:51 shenweijie-pc flameshot[2880]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                               
                                                Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
4月 09 22:02:51 shenweijie-pc systemd[1]: Started Process Core Dump (PID 2882/UID 0).
4月 09 22:02:52 shenweijie-pc systemd-coredump[2885]: [?] Process 2880 (flameshot) of user 1000 dumped core.
                                                       
                                                       Stack trace of thread 2880:
                                                       #0  0x00007fa1900a08ec n/a (libc.so.6 + 0x878ec)
                                                       #1  0x00007fa190051ea8 raise (libc.so.6 + 0x38ea8)
                                                       #2  0x00007fa19003b53d abort (libc.so.6 + 0x2253d)
                                                       #3  0x00007fa19069fede _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x9fede)
                                                       #4  0x00007fa190d3c9c5 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x13c9c5)
                                                       #5  0x00007fa190d3d009 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x13d009)
                                                       #6  0x00007fa19089357b _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x29357b)
                                                       #7  0x00007fa190d3d0b9 _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x13d0b9)
                                                       #8  0x00007fa191575e0e _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x175e0e)
                                                       #9  0x000055b7b719876f n/a (flameshot + 0xcd76f)
                                                       #10 0x000055b7b7117b10 n/a (flameshot + 0x4cb10)
                                                       #11 0x00007fa19003c790 n/a (libc.so.6 + 0x23790)
                                                       #12 0x00007fa19003c84a __libc_start_main (libc.so.6 + 0x2384a)
                                                       #13 0x000055b7b7121cd5 n/a (flameshot + 0x56cd5)
                                                       
                                                       Stack trace of thread 2881:
                                                       #0  0x00007fa1901139df __poll (libc.so.6 + 0xfa9df)
                                                       #1  0x00007fa18ef6c17f n/a (libglib-2.0.so.0 + 0xb717f)
                                                       #2  0x00007fa18ef0e1a2 g_main_context_iteration (libglib-2.0.so.0 + 0x591a2)
                                                       #3  0x00007fa1908d8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c)
                                                       #4  0x00007fa1908866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec)
                                                       #5  0x00007fa1906e725f _ZN7QThread4execEv (libQt5Core.so.5 + 0xe725f)
                                                       #6  0x00007fa191d95cba n/a (libQt5DBus.so.5 + 0x23cba)
                                                       #7  0x00007fa1906e432a n/a (libQt5Core.so.5 + 0xe432a)
                                                       #8  0x00007fa19009ebb5 n/a (libc.so.6 + 0x85bb5)
                                                       #9  0x00007fa190120d90 n/a (libc.so.6 + 0x107d90)
                                                       ELF object binary architecture: AMD x86-64
4月 09 22:02:52 shenweijie-pc systemd[1]: systemd-...@3-2882-0.service: Deactivated successfully.
4月 09 22:02:52 shenweijie-pc dbus-daemon[861]: [session uid=1000 pid=861] Activated service 'org.flameshot.Flameshot' failed: Process org.flameshot.Flameshot received signal 6

目前的复现路径看起来是首次安装后正常,重启后再使用则开始 crash
Reply all
Reply to author
Forward
0 new messages