pot-app / pot-desktop

🌈一个跨平台的划词翻译和OCR软件 | A cross-platform software for text translation and recognition.
https://pot-app.com
GNU General Public License v3.0
9.97k stars 455 forks source link

[BUG]: Cannot launch in Wayland even with `WEBKIT_DISABLE_DMABUF_RENDERER=1` set #835

Open FlysoftBeta opened 3 months ago

FlysoftBeta commented 3 months ago

Description

➜ ~ WEBKIT_DISABLE_DMABUF_RENDERER=1 pot [2024-06-14][13:34:48][TRACE][async_io::driver] block_on() [2024-06-14][13:34:48][TRACE][tracing::span::active] -> {}; [2024-06-14][13:34:48][TRACE][zbus::connection] Sending message: Msg { type: MethodCall, sender: UniqueName(Str(Borrowed(":1.271"))), path: ObjectPath("/org/freedesktop/DBus"), iface: InterfaceName(Str(Borrowed("org.freedesktop.DBus"))), member: MemberName(Str(Borrowed("RemoveMatch"))), body: Signature("s") } [2024-06-14][13:34:48][TRACE][zbus::connection] Sent message with serial: 5 [2024-06-14][13:34:48][TRACE][tracing::span::active] <- {}; [2024-06-14][13:34:48][TRACE][tracing::span::active] -> {}; [2024-06-14][13:34:48][TRACE][tracing::span::active] <- {}; [2024-06-14][13:34:48][TRACE][async_io::driver] block_on: sleep until notification [2024-06-14][13:34:48][TRACE][polling::epoll] new events: epoll_fd=14, res=1 [2024-06-14][13:34:48][TRACE][polling::epoll] modify: epoll_fd=14, fd=15, ev=Event { key: 18446744073709551615, readable: true, writable: false } [2024-06-14][13:34:48][TRACE][async_io::reactor] react: 1 ready wakers [2024-06-14][13:34:48][TRACE][async_io::driver] main_loop: sleeping for 50 us [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Message received on the socket: Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 5, body: Signature("") } [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Error broadcasting message to stream for None: SendError(..) [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Broadcasted to all streams: Ok(Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 5, body: Signature("") }) [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Waiting for message on the socket.. [2024-06-14][13:34:48][TRACE][polling::epoll] modify: epoll_fd=14, fd=13, ev=Event { key: 0, readable: true, writable: false } [2024-06-14][13:34:48][TRACE][tracing::span::active] -> {}; [2024-06-14][13:34:48][TRACE][tracing::span::active] <- {}; [2024-06-14][13:34:48][TRACE][tracing::span::active] -> {}; [2024-06-14][13:34:48][TRACE][tracing::span::active] <- {}; [2024-06-14][13:34:48][TRACE][tracing::span] -- {}; [2024-06-14][13:34:48][TRACE][async_io::driver] main_loop: waiting on I/O [2024-06-14][13:34:48][TRACE][tracing::span::active] -> {}; [2024-06-14][13:34:48][TRACE][async_io::reactor] processtimers: 0 ready wakers [2024-06-14][13:34:48][TRACE][polling] Poller::wait(, None) [2024-06-14][13:34:48][TRACE][polling::epoll] wait: epoll_fd=14, timeout=None [2024-06-14][13:34:48][TRACE][polling::epoll] modify: epoll_fd=14, fd=16, ev=Event { key: 18446744073709551615, readable: true, writable: false } [2024-06-14][13:34:48][TRACE][zbus::connection] Sending message: Msg { type: MethodCall, sender: UniqueName(Str(Borrowed(":1.271"))), path: ObjectPath("/org/freedesktop/DBus"), iface: InterfaceName(Str(Borrowed("org.freedesktop.DBus"))), member: MemberName(Str(Borrowed("RemoveMatch"))), body: Signature("s") } [2024-06-14][13:34:48][TRACE][zbus::connection] Sent message with serial: 6 [2024-06-14][13:34:48][TRACE][tracing::span::active] <- {}; [2024-06-14][13:34:48][TRACE][async_io::driver] block_on: sleep until notification [2024-06-14][13:34:48][TRACE][polling::epoll] new events: epoll_fd=14, res=1 [2024-06-14][13:34:48][TRACE][polling::epoll] modify: epoll_fd=14, fd=15, ev=Event { key: 18446744073709551615, readable: true, writable: false } [2024-06-14][13:34:48][TRACE][async_io::reactor] react: 1 ready wakers [2024-06-14][13:34:48][TRACE][async_io::driver] main_loop: sleeping for 50 us [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Message received on the socket: Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 6, body: Signature("") } [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Error broadcasting message to stream for None: SendError(..) [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Broadcasted to all streams: Ok(Msg { type: MethodReturn, sender: UniqueName(Str(Borrowed("org.freedesktop.DBus"))), reply-serial: 6, body: Signature("") }) [2024-06-14][13:34:48][TRACE][zbus::socket_reader] Waiting for message on the socket.. [2024-06-14][13:34:48][TRACE][polling::epoll] modify: epoll_fd=14, fd=13, ev=Event { key: 0, readable: true, writable: false } [2024-06-14][13:34:48][TRACE][tracing::span::active] -> {}; [2024-06-14][13:34:48][TRACE][tracing::span::active] <- {}; [2024-06-14][13:34:48][TRACE][async_io::driver] main_loop: waiting on I/O [2024-06-14][13:34:48][TRACE][tracing::span::active] -> {}; [2024-06-14][13:34:48][TRACE][async_io::reactor] processtimers: 0 ready wakers [2024-06-14][13:34:48][TRACE][tracing::span::active] <- {}; [2024-06-14][13:34:48][TRACE][polling] Poller::wait(, None) [2024-06-14][13:34:48][TRACE][tracing::span] -- {}; [2024-06-14][13:34:48][TRACE][polling::epoll] wait: epoll_fd=14, timeout=None [2024-06-14][13:34:48][TRACE][async_io::driver] block_on: sleep until notification [2024-06-14][13:34:48][TRACE][polling::epoll] modify: epoll_fd=14, fd=16, ev=Event { key: 18446744073709551615, readable: true, writable: false }

(pot:87113): WARNING : 21:34:48.584: webkit_settings_set_enable_offline_web_application_cache is deprecated and does nothing. [1] 87113 segmentation fault (core dumped) WEBKIT_DISABLE_DMABUF_RENDERER=1 pot ➜ ~

Reproduction

WEBKIT_DISABLE_DMABUF_RENDERER=1 pot 

Platform

Linux

System Version

Arch Linux/Plasma 6/NVIDIA

Window System (Linux Only)

Wayland

Software Version

2.7.10

Log File

No response

Additional Information

No response

scgm0 commented 3 months ago

同样的问题 图片

xymeng16 commented 3 months ago

I can reproduce this bug. My environment is attached. image