pot-desktop icon indicating copy to clipboard operation
pot-desktop copied to clipboard

[BUG]: Hyprland (0.47.2) 呼出窗口时 (Input Translate / Config) , 程序退出.

Open Saco93 opened this issue 10 months ago • 1 comments

Description

问题描述

pot可以正常启动, 但当呼出窗口时 (Input Translate / Config) , 程序退出.

终端输出

启动

❯ pot
[2025-02-10][06:05:09][TRACE][zbus::connection] Sending message: Msg { type: MethodCall, sender: UniqueName(Str(Borrowed(":1.168"))), path: ObjectPath("/org/freedesktop/DBus"), iface: InterfaceName(Str(Borrowed("org.freedesktop.DBus"))), member: MemberName(Str(Borrowed("RemoveMatch"))), body: Sig
nature("s") }
[2025-02-10][06:05:09][TRACE][zbus::connection] Sent message with serial: 5
[2025-02-10][06:05:09][TRACE][polling::epoll] new events: epoll_fd=17, res=1
[2025-02-10][06:05:09][TRACE][tracing::span::active] <- {};
[2025-02-10][06:05:09][TRACE][polling::epoll] modify: epoll_fd=17, fd=18, ev=Event { key: 18446744073709551615, readable: true, writable: false }
[2025-02-10][06:05:09][TRACE][tracing::span::active] -> {};
[2025-02-10][06:05:09][TRACE][tracing::span::active] <- {};
[2025-02-10][06:05:09][TRACE][async_io::reactor] react: 1 ready wakers
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 50 us
[2025-02-10][06:05:09][TRACE][async_io::driver] block_on: sleep until notification
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Message received on the socket: Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 5, body: Signature("") }
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Error broadcasting message to stream for `None`: SendError(..)
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Broadcasted to all streams: Ok(Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 5, body: Signature("") })
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Waiting for message on the socket..
[2025-02-10][06:05:09][TRACE][polling::epoll] modify: epoll_fd=17, fd=16, ev=Event { key: 0, readable: true, writable: false }
[2025-02-10][06:05:09][TRACE][tracing::span::active] -> {};
[2025-02-10][06:05:09][TRACE][tracing::span::active] <- {};
[2025-02-10][06:05:09][TRACE][tracing::span::active] -> {};
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: waiting on I/O
[2025-02-10][06:05:09][TRACE][async_io::reactor] process_timers: 0 ready wakers
[2025-02-10][06:05:09][TRACE][tracing::span::active] <- {};
[2025-02-10][06:05:09][TRACE][polling] Poller::wait(_, None)
[2025-02-10][06:05:09][TRACE][polling::epoll] wait: epoll_fd=17, timeout=None
[2025-02-10][06:05:09][TRACE][tracing::span] -- {};
[2025-02-10][06:05:09][TRACE][polling::epoll] modify: epoll_fd=17, fd=19, ev=Event { key: 18446744073709551615, readable: true, writable: false }
[2025-02-10][06:05:09][TRACE][tracing::span::active] -> {};
[2025-02-10][06:05:09][TRACE][zbus::connection] Sending message: Msg { type: MethodCall, sender: UniqueName(Str(Borrowed(":1.168"))), path: ObjectPath("/org/freedesktop/DBus"), iface: InterfaceName(Str(Borrowed("org.freedesktop.DBus"))), member: MemberName(Str(Borrowed("RemoveMatch"))), body: Sig
nature("s") }
[2025-02-10][06:05:09][TRACE][zbus::connection] Sent message with serial: 6
[2025-02-10][06:05:09][TRACE][tracing::span::active] <- {};
[2025-02-10][06:05:09][TRACE][async_io::driver] block_on: sleep until notification
[2025-02-10][06:05:09][TRACE][polling::epoll] new events: epoll_fd=17, res=1
[2025-02-10][06:05:09][TRACE][polling::epoll] modify: epoll_fd=17, fd=18, ev=Event { key: 18446744073709551615, readable: true, writable: false }
[2025-02-10][06:05:09][TRACE][async_io::reactor] react: 1 ready wakers
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 50 us
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Message received on the socket: Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 6, body: Signature("") }
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Error broadcasting message to stream for `None`: SendError(..)
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Broadcasted to all streams: Ok(Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 6, body: Signature("") })
[2025-02-10][06:05:09][TRACE][zbus::socket_reader] Waiting for message on the socket..
[2025-02-10][06:05:09][TRACE][polling::epoll] modify: epoll_fd=17, fd=16, ev=Event { key: 0, readable: true, writable: false }
[2025-02-10][06:05:09][TRACE][tracing::span::active] -> {};
[2025-02-10][06:05:09][TRACE][tracing::span::active] <- {};
[2025-02-10][06:05:09][TRACE][tracing::span::active] -> {};
[2025-02-10][06:05:09][TRACE][tracing::span::active] <- {};
[2025-02-10][06:05:09][TRACE][tracing::span] -- {};
[2025-02-10][06:05:09][TRACE][async_io::driver] block_on: waiting on I/O
[2025-02-10][06:05:09][TRACE][async_io::reactor] process_timers: 0 ready wakers
[2025-02-10][06:05:09][TRACE][polling] Poller::wait(_, None)
[2025-02-10][06:05:09][TRACE][polling::epoll] wait: epoll_fd=17, timeout=None
[2025-02-10][06:05:09][TRACE][polling::epoll] modify: epoll_fd=17, fd=19, ev=Event { key: 18446744073709551615, readable: true, writable: false }
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 75 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 100 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 250 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 500 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 750 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 1000 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 2500 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 5000 us
[2025-02-10][06:05:09][TRACE][async_io::driver] main_loop: sleeping for 10000 us

** (pot:64083): WARNING **: 14:05:09.567: webkit_settings_set_enable_offline_web_application_cache is deprecated and does nothing.
[2025-02-10][06:05:09][INFO][pot] ============== Start App ==============
[2025-02-10][06:05:09][INFO][pot] Init Config Store
[2025-02-10][06:05:09][INFO][pot::config] Load config from: "/home/saco/.config/com.pot-app.desktop/config.json"
[2025-02-10][06:05:09][INFO][pot::config] Config loaded
[2025-02-10][06:05:09][INFO][pot::tray] Update tray with language: en, copy mode: disable
[2025-02-10][06:05:09][DEBUG][tiny_http] Server listening on 127.0.0.1:60828
[2025-02-10][06:05:09][DEBUG][tiny_http] Running accept thread

调用/input_translate

[2025-02-10][06:08:39][INFO][pot::server] Handle /input_translate request
[1]    72317 segmentation fault (core dumped)  pot

如何复现

  1. 启动pot
  2. 调用/input_translate接口 (或右键tray icon -> Config)

操作系统版本

OS: Arch Linux x86_64      
Kernel: Linux 6.12.13-1-lts

窗口系统(Linux Only)

Hyprland 0.47.2 built from branch  at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff  (version: bump to 0.47.2).
Date: Sun Feb 2 00:47:17 2025
Tag: v0.47.2, commits: 5767
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


no flags were set

软件版本

❯ yay -Qii pot-translation-bin
Name            : pot-translation-bin
Version         : 3.0.6-1
Description     : 一个跨平台的划词翻译软件
Architecture    : x86_64
URL             : https://github.com/pot-app/pot-desktop
Licenses        : GPL3
Groups          : None
Provides        : pot-translation
Depends On      : webkit2gtk  gtk3  libayatana-appindicator  xdotool  libxcb  libxrandr  tesseract  tessdata
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : pot-translation  pot-translation-git
Replaces        : None
Installed Size  : 60.71 MiB
Packager        : Unknown Packager
Build Date      : Mon 11 Nov 2024 05:53:43 PM CST
Install Date    : Mon 11 Nov 2024 05:53:51 PM CST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
Backup Files    : None
Extended Data   : pkgtype=pkg

补充信息

Reproduction

  1. 启动pot
  2. 调用/input_translate接口 (或右键tray icon -> Config)

Platform

Linux

System Version

OS: Arch Linux x86_64 | Kernel: Linux 6.12.13-1-lts

Window System (Linux Only)

Wayland

Software Version

3.0.6-1

Log File

[2025-02-10][06:16:04][TRACE][zbus::socket_reader] Error broadcasting message to stream for `None`: SendError(..)
[2025-02-10][06:16:04][TRACE][zbus::socket_reader] Broadcasted to all streams: Ok(Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 5, body: Signature("") })
[2025-02-10][06:16:04][TRACE][zbus::socket_reader] Waiting for message on the socket..
[2025-02-10][06:16:04][TRACE][async_io::driver] main_loop: waiting on I/O
[2025-02-10][06:16:04][TRACE][polling::epoll] modify: epoll_fd=17, fd=16, ev=Event { key: 0, readable: true, writable: false }
[2025-02-10][06:16:04][TRACE][async_io::reactor] process_timers: 0 ready wakers
[2025-02-10][06:16:04][TRACE][tracing::span::active] -> {};
[2025-02-10][06:16:04][TRACE][polling] Poller::wait(_, None)
[2025-02-10][06:16:04][TRACE][tracing::span::active] <- {};
[2025-02-10][06:16:04][TRACE][polling::epoll] wait: epoll_fd=17, timeout=None
[2025-02-10][06:16:04][TRACE][tracing::span::active] -> {};
[2025-02-10][06:16:04][TRACE][polling::epoll] modify: epoll_fd=17, fd=19, ev=Event { key: 18446744073709551615, readable: true, writable: false }
[2025-02-10][06:16:04][TRACE][tracing::span::active] <- {};
[2025-02-10][06:16:04][TRACE][tracing::span] -- {};
[2025-02-10][06:16:04][TRACE][tracing::span::active] -> {};
[2025-02-10][06:16:04][TRACE][zbus::connection] Sending message: Msg { type: MethodCall, sender: UniqueName(Str(Borrowed(":1.205"))), path: ObjectPath("/org/freedesktop/DBus"), iface: InterfaceName(Str(Borrowed("org.freedesktop.DBus"))), member: MemberName(Str(Borrowed("RemoveMatch"))), body: Signature("s") }
[2025-02-10][06:16:04][TRACE][zbus::connection] Sent message with serial: 6
[2025-02-10][06:16:04][TRACE][tracing::span::active] <- {};
[2025-02-10][06:16:04][TRACE][async_io::driver] block_on: sleep until notification
[2025-02-10][06:16:04][TRACE][polling::epoll] new events: epoll_fd=17, res=1
[2025-02-10][06:16:04][TRACE][polling::epoll] modify: epoll_fd=17, fd=18, ev=Event { key: 18446744073709551615, readable: true, writable: false }
[2025-02-10][06:16:04][TRACE][async_io::reactor] react: 1 ready wakers
[2025-02-10][06:16:04][TRACE][async_io::driver] main_loop: sleeping for 50 us
[2025-02-10][06:16:04][TRACE][zbus::socket_reader] Message received on the socket: Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 6, body: Signature("") }
[2025-02-10][06:16:04][TRACE][zbus::socket_reader] Error broadcasting message to stream for `None`: SendError(..)
[2025-02-10][06:16:04][TRACE][zbus::socket_reader] Broadcasted to all streams: Ok(Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 6, body: Signature("") })
[2025-02-10][06:16:04][TRACE][zbus::socket_reader] Waiting for message on the socket..
[2025-02-10][06:16:04][TRACE][polling::epoll] modify: epoll_fd=17, fd=16, ev=Event { key: 0, readable: true, writable: false }
[2025-02-10][06:16:04][TRACE][async_io::driver] main_loop: waiting on I/O
[2025-02-10][06:16:04][TRACE][tracing::span::active] -> {};
[2025-02-10][06:16:04][TRACE][async_io::reactor] process_timers: 0 ready wakers
[2025-02-10][06:16:04][TRACE][polling] Poller::wait(_, None)
[2025-02-10][06:16:04][TRACE][tracing::span::active] <- {};
[2025-02-10][06:16:04][TRACE][polling::epoll] wait: epoll_fd=17, timeout=None
[2025-02-10][06:16:04][TRACE][tracing::span::active] -> {};
[2025-02-10][06:16:04][TRACE][tracing::span::active] <- {};
[2025-02-10][06:16:04][TRACE][polling::epoll] modify: epoll_fd=17, fd=19, ev=Event { key: 18446744073709551615, readable: true, writable: false }
[2025-02-10][06:16:04][TRACE][tracing::span] -- {};
[2025-02-10][06:16:04][TRACE][async_io::driver] block_on: sleep until notification
[2025-02-10][06:16:04][INFO][pot] ============== Start App ==============
[2025-02-10][06:16:04][INFO][pot] Init Config Store
[2025-02-10][06:16:04][INFO][pot::config] Load config from: "/home/saco/.config/com.pot-app.desktop/config.json"
[2025-02-10][06:16:04][INFO][pot::config] Config loaded
[2025-02-10][06:16:04][INFO][pot::tray] Update tray with language: en, copy mode: disable
[2025-02-10][06:16:04][DEBUG][tiny_http] Server listening on 127.0.0.1:60828
[2025-02-10][06:16:04][DEBUG][tiny_http] Running accept thread
[2025-02-10][06:16:22][INFO][pot::server] Handle /input_translate request

Additional Information

No response

Saco93 avatar Feb 10 '25 06:02 Saco93

更新

升级之后功能恢复正常使用, 不确定是否与某个升级包相关, 附pacman.log日志:

[2025-02-11T09:26:07+0800] [PACMAN] Running 'pacman -S -y --config /etc/pacman.conf --'
[2025-02-11T09:26:07+0800] [PACMAN] synchronizing package lists
[2025-02-11T09:26:56+0800] [PACMAN] Running 'pacman -S -u -y --config /etc/pacman.conf --'
[2025-02-11T09:26:56+0800] [PACMAN] synchronizing package lists
[2025-02-11T09:27:02+0800] [PACMAN] starting full system upgrade
[2025-02-11T09:27:15+0800] [ALPM] running 'texinfo-remove.hook'...
[2025-02-11T09:27:15+0800] [ALPM] transaction started
[2025-02-11T09:27:15+0800] [ALPM] upgraded linux-api-headers (6.10-1 -> 6.13-1)
[2025-02-11T09:27:15+0800] [ALPM] upgraded fastfetch (2.35.0-1 -> 2.36.0-1)
[2025-02-11T09:27:15+0800] [ALPM] upgraded pam (1.7.0-1 -> 1.7.0-2)
[2025-02-11T09:27:15+0800] [ALPM] upgraded gdal (3.10.1-1 -> 3.10.1-2)
[2025-02-11T09:27:15+0800] [ALPM] installed leancrypto (1.2.0-2)
[2025-02-11T09:27:16+0800] [ALPM] upgraded gnutls (3.8.8-1 -> 3.8.9-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded lcms2 (2.16-1 -> 2.17-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded libxkbcommon (1.7.0-2 -> 1.8.0-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded lib32-libxkbcommon (1.7.0-2 -> 1.8.0-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded libxkbcommon-x11 (1.7.0-2 -> 1.8.0-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded node-gyp (11.0.0-1 -> 11.1.0-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded opencv (4.11.0-2 -> 4.11.0-3)
[2025-02-11T09:27:16+0800] [ALPM] upgraded tree-sitter-c (0.23.4-1 -> 0.23.5-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded tree-sitter-query (0.4.0-1 -> 0.5.0-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded wayland-protocols (1.39-1 -> 1.40-1)
[2025-02-11T09:27:16+0800] [ALPM] upgraded zoxide (0.9.6-1 -> 0.9.7-1)
[2025-02-11T09:27:16+0800] [ALPM] transaction completed
[2025-02-11T09:27:16+0800] [ALPM] running '30-systemd-daemon-reload-system.hook'...
[2025-02-11T09:27:16+0800] [ALPM] running '30-systemd-restart-marked.hook'...
[2025-02-11T09:27:16+0800] [ALPM] running '30-systemd-tmpfiles.hook'...
[2025-02-11T09:27:16+0800] [ALPM] running '30-systemd-update.hook'...
[2025-02-11T09:27:16+0800] [ALPM] running 'texinfo-install.hook'...

Saco93 avatar Feb 11 '25 01:02 Saco93