Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: seat_client_from_keyboard_resource: 假设 ‘wl_resource_instance_of(resource, &wl_keyboard_interface, &keyboard_impl)’ 失败。 #364

Open
wineee opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wineee
Copy link
Member

wineee commented Nov 26, 2024

SUMMARY | 问题概要

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: 没有那个文件或目录.
[Current thread is 1 (Thread 0x7f7665ad2540 (LWP 6599))]
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
linuxdeepin/treeland.private#1  0x00007f766aaa715f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
linuxdeepin/treeland.private#2  0x00007f766aa59102 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
linuxdeepin/treeland.private#3  0x00007f766aa424f2 in __GI_abort () at ./stdlib/abort.c:79
linuxdeepin/treeland.private#4  0x00007f766aa42415 in __assert_fail_base
    (fmt=0x7f766522922a "%s%s%s:%u:%s%s假设 ‘%s’ 失败。\n%n", assertion=assertion@entry=0x7f766bbaa5c0 "wl_resource_instance_of(resource, &wl_keyboard_interface, &keyboard_impl)", file=file@entry=0x7f766bbaa5a0 "types/seat/wlr_seat_keyboard.c", line=line@entry=57, function=function@entry=0x7f766bbca4c0 "seat_client_from_keyboard_resource") at ./assert/assert.c:92
linuxdeepin/treeland.private#5  0x00007f766aa51d32 in __assert_fail
    (assertion=0x7f766bbaa5c0 "wl_resource_instance_of(resource, &wl_keyboard_interface, &keyboard_impl)", file=0x7f766bbaa5a0 "types/seat/wlr_seat_keyboard.c", line=57, function=0x7f766bbca4c0 "seat_client_from_keyboard_resource")
    at ./assert/assert.c:101
linuxdeepin/treeland.private#6  0x00007f766bb4f845 in wlr_seat_keyboard_enter () at /lib/x86_64-linux-gnu/libwlroots-0.18.so
linuxdeepin/treeland.private#7  0x00007f766bff705c in qw_seat::keyboard_enter<qw_surface&, decltype(nullptr), int, decltype(nullptr)>(qw_surface&, decltype(nullptr)&&, int&&, decltype(nullptr)&&) const (this=0x55a4ff002c80)
    at /home/uos/Downloads/treeland.private/waylib/qwlroots/src/types/qwseat.h:48
linuxdeepin/treeland.private#8  0x00007f766bff5566 in Waylib::Server::WSeatPrivate::doSetKeyboardFocus(qw_surface*) (this=0x55a4fed2bd10, surface=0x55a502556630) at /home/uos/Downloads/treeland.private/waylib/src/server/kernel/wseat.cpp:210
linuxdeepin/treeland.private#9  0x00007f766bfee2ba in Waylib::Server::WSeat::setKeyboardFocusSurface(Waylib::Server::WSurface*) (this=0x55a4fed2bcb0, surface=0x55a502459f90) at /home/uos/Downloads/treeland.private/waylib/src/server/kernel/wseat.cpp:1007
linuxdeepin/treeland.private#10 0x00007f766c6f514c in operator()() const (__closure=0x55a4fed17c70) at /home/uos/Downloads/treeland.private/src/core/helper.cpp:120
linuxdeepin/treeland.private#11 0x00007f766c702553 in operator()() const (__closure=0x7ffd1c542900) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:141
linuxdeepin/treeland.private#12 0x00007f766c702e66 in QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Helper::Helper(QObject*)::<lambda()> >::call(Helper::Helper(QObject*)::<lambda()>&, void**)::<lambda()> >(void **, struct {...} &&) (args=0x7ffd1c542a28, fn=...) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:65
linuxdeepin/treeland.private#13 0x00007f766c702589 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Helper::Helper(QObject*)::<lambda()> >::call(struct {...} &, void **) (f=..., arg=0x7ffd1c542a28)
    at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:140
linuxdeepin/treeland.private#14 0x00007f766c701e7b in QtPrivate::FunctorCallable<Helper::Helper(QObject*)::<lambda()> >::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=..., arg=0x7ffd1c542a28)
    at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:362
linuxdeepin/treeland.private#15 0x00007f766c700da6 in QtPrivate::QCallableObject<Helper::Helper(QObject*)::<lambda()>, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *)
    (which=1, this_=0x55a4fed17c60, r=0x55a4fece6390, a=0x7ffd1c542a28, ret=0x0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:572
linuxdeepin/treeland.private#16 0x00007f766b5a596c in  () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#17 0x00007f766b5a596c in  () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#18 0x00007f766adf24d6 in QWindow::focusObjectChanged(QObject*) () at /lib/x86_64-linux-gnu/libQt6Gui.so.6
linuxdeepin/treeland.private#19 0x00007f7669f7b49d in QQuickDeliveryAgentPrivate::setFocusInScope(QQuickItem*, QQuickItem*, Qt::FocusReason, QFlags<QQuickDeliveryAgentPrivate::FocusOption>) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#20 0x00007f7669df8c3c in QQuickItem::setFocus(bool, Qt::FocusReason) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#21 0x00007f7669df051b in QQuickItem::forceActiveFocus(Qt::FocusReason) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#22 0x00007f766c71a5c8 in SurfaceWrapper::setFocus(bool, Qt::FocusReason) (this=0x55a50219ef30, focus=true, reason=Qt::MouseFocusReason) at /home/uos/Downloads/treeland.private/src/core/surfacewrapper.cpp:245
linuxdeepin/treeland.private#23 0x00007f766c6fc7cb in Helper::reuqestKeyboardFocusForSurface(SurfaceWrapper*, Qt::FocusReason) (this=0x55a4fece6390, newActivate=0x55a50219ef30, reason=Qt::MouseFocusReason)
    at /home/uos/Downloads/treeland.private/src/core/helper.cpp:1285
linuxdeepin/treeland.private#24 0x00007f766c6fa101 in Helper::activateSurface(SurfaceWrapper*, Qt::FocusReason) (this=0x55a4fece6390, wrapper=0x55a50219ef30, reason=Qt::MouseFocusReason) at /home/uos/Downloads/treeland.private/src/core/helper.cpp:840
linuxdeepin/treeland.private#25 0x00007f766c6fbbde in Helper::afterHandleEvent(Waylib::Server::WSeat*, Waylib::Server::WSurface*, QObject*, QObject*, QInputEvent*)
    (this=0x55a4fece6390, seat=0x55a4fed2bcb0, watched=0x55a502459f90, surfaceItem=0x55a5024c6500, event=0x7ffd1c543b10) at /home/uos/Downloads/treeland.private/src/core/helper.cpp:1126
linuxdeepin/treeland.private#26 0x00007f766bfee17d in Waylib::Server::WSeat::sendEvent(Waylib::Server::WSurface*, QObject*, QObject*, QInputEvent*) (target=0x55a502459f90, shellObject=0x55a5024c6500, eventObject=0x55a5024b3110, event=0x7ffd1c543b10)
    at /home/uos/Downloads/treeland.private/waylib/src/server/kernel/wseat.cpp:979
linuxdeepin/treeland.private#27 0x00007f766c01ea5e in Waylib::Server::WSurfaceItem::sendEvent(QInputEvent*) (this=0x55a5024c6500, event=0x7ffd1c543b10) at /home/uos/Downloads/treeland.private/waylib/src/server/qtquick/wsurfaceitem.cpp:888
linuxdeepin/treeland.private#28 0x00007f766c024bfc in Waylib::Server::EventItem::event(QEvent*) (this=0x55a5024b3110, event=0x7ffd1c543b10) at /home/uos/Downloads/treeland.private/waylib/src/server/qtquick/wsurfaceitem.cpp:134
linuxdeepin/treeland.private#29 0x00007f766b559898 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#30 0x00007f7669f83252 in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(QQuickItem*, bool, QPointerEvent*, bool) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#31 0x00007f7669f84a53 in QQuickDeliveryAgentPrivate::deliverPressOrReleaseEvent(QPointerEvent*, bool) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#32 0x00007f7669f85440 in QQuickDeliveryAgentPrivate::deliverPointerEvent(QPointerEvent*) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#33 0x00007f7669f86c68 in QQuickDeliveryAgent::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#34 0x00007f7669e9ae99 in QQuickWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt6Quick.so.6
linuxdeepin/treeland.private#35 0x00007f766c03bd86 in Waylib::Server::WOutputRenderWindow::event(QEvent*) (this=0x55a4fed737b0, event=0x7ffd1c543b10) at /home/uos/Downloads/treeland.private/waylib/src/server/qtquick/woutputrenderwindow.cpp:1959
linuxdeepin/treeland.private#36 0x00007f766b559898 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#37 0x00007f766bfee923 in Waylib::Server::WSeat::notifyButton(Waylib::Server::WCursor*, Waylib::Server::WInputDevice*, Qt::MouseButton, unsigned int, unsigned int)
    (this=0x55a4fed2bcb0, cursor=0x55a4ff793540, device=0x55a4ffe600f0, button=Qt::LeftButton, state=1, timestamp=545797) at /home/uos/Downloads/treeland.private/waylib/src/server/kernel/wseat.cpp:1128
linuxdeepin/treeland.private#38 0x00007f766bfdc62b in Waylib::Server::WCursorPrivate::on_button(wlr_pointer_button_event*) (this=0x55a4ff793570, event=0x7ffd1c543f70) at /home/uos/Downloads/treeland.private/waylib/src/server/kernel/wcursor.cpp:107
linuxdeepin/treeland.private#39 0x00007f766bfdd0ae in operator()(wlr_pointer_button_event*) const (__closure=0x55a4ff001750, event=0x7ffd1c543f70) at /home/uos/Downloads/treeland.private/waylib/src/server/kernel/wcursor.cpp:272
linuxdeepin/treeland.private#40 0x00007f766bfe1a2b in operator()() const (__closure=0x7ffd1c543cb0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:141
linuxdeepin/treeland.private#41 0x00007f766bfe1e72 in QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<wlr_pointer_button_event*>, void, Waylib::Server::WCursorPrivate::connect()::<lambda(wlr_pointer_button_event*)> >::call(Waylib::Server::WCursorPrivate::connect()::<lambda(wlr_pointer_button_event*)>&, void**)::<lambda()> >(void **, struct {...} &&) (args=0x7ffd1c543e40, fn=...)
    at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:65
linuxdeepin/treeland.private#42 0x00007f766bfe1a61 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<wlr_pointer_button_event*>, void, Waylib::Server::WCursorPrivate::connect()::<lambda(wlr_pointer_button_event*)> >::call(struct {...} &, void **) (f=..., arg=0x7ffd1c543e40) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:140
linuxdeepin/treeland.private#43 0x00007f766bfe1725 in QtPrivate::FunctorCallable<Waylib::Server::WCursorPrivate::connect()::<lambda(wlr_pointer_button_event*)>, wlr_pointer_button_event*>::call<QtPrivate::List<wlr_pointer_button_event*>, void>(struct {...} &, void--Type <RET> for more, q to quit, c to continue without paging--
 *, void **) (f=..., arg=0x7ffd1c543e40) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:362
linuxdeepin/treeland.private#44 0x00007f766bfe1060 in QtPrivate::QCallableObject<Waylib::Server::WCursorPrivate::connect()::<lambda(wlr_pointer_button_event*)>, QtPrivate::List<wlr_pointer_button_event*>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x55a4ff001740, r=0x55a4ff793540, a=0x7ffd1c543e40, ret=0x0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:572
linuxdeepin/treeland.private#45 0x00007f766b5a596c in  () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#46 0x00007f766c165c67 in qw_cursor::notify_button(wlr_pointer_button_event*) (this=0x55a4ff6e1eb0, _t1=0x7ffd1c543f70) at /home/uos/Downloads/treeland.private/build/waylib/qwlroots/src/qwlroots_autogen/GZRP3O7STM/moc_qwcursor.cpp:466
linuxdeepin/treeland.private#47 0x00007f766c703f73 in qw_signal_connector::callSlot1(wl_listener*, void*) (wl_listener=0x55a4ff793a38, data=0x7ffd1c543f70) at /home/uos/Downloads/treeland.private/waylib/qwlroots/src/util/qwsignalconnector.h:149
linuxdeepin/treeland.private#48 0x00007f766a542afc in wl_signal_emit_mutable () at /lib/x86_64-linux-gnu/libwayland-server.so.0
linuxdeepin/treeland.private#49 0x00007f766a542afc in wl_signal_emit_mutable () at /lib/x86_64-linux-gnu/libwayland-server.so.0
linuxdeepin/treeland.private#50 0x00007f766bb35d79 in  () at /lib/x86_64-linux-gnu/libwlroots-0.18.so
linuxdeepin/treeland.private#51 0x00007f766bb34c2b in  () at /lib/x86_64-linux-gnu/libwlroots-0.18.so
linuxdeepin/treeland.private#52 0x00007f766a544c52 in wl_event_loop_dispatch () at /lib/x86_64-linux-gnu/libwayland-server.so.0
linuxdeepin/treeland.private#53 0x00007f766c002110 in operator()() const (__closure=0x55a4fefe93f0) at /home/uos/Downloads/treeland.private/waylib/src/server/kernel/wserver.cpp:108
linuxdeepin/treeland.private#54 0x00007f766c003da9 in operator()() const (__closure=0x7ffd1c544280) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:141
linuxdeepin/treeland.private#55 0x00007f766c003e5a in QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Waylib::Server::WServerPrivate::init()::<lambda()> >::call(Waylib::Server::WServerPrivate::init()::<lambda()>&, void**)::<lambda()> >(void **, struct {...} &&) (args=0x7ffd1c544410, fn=...) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:65
linuxdeepin/treeland.private#56 0x00007f766c003ddf in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Waylib::Server::WServerPrivate::init()::<lambda()> >::call(struct {...} &, void **) (f=..., arg=0x7ffd1c544410)
    at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:140
linuxdeepin/treeland.private#57 0x00007f766c003d53 in QtPrivate::FunctorCallable<Waylib::Server::WServerPrivate::init()::<lambda()> >::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=..., arg=0x7ffd1c544410)
    at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:362
linuxdeepin/treeland.private#58 0x00007f766c003c6c in QtPrivate::QCallableObject<Waylib::Server::WServerPrivate::init()::<lambda()>, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *)
    (which=1, this_=0x55a4fefe93e0, r=0x55a4ff792ba0, a=0x7ffd1c544410, ret=0x0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:572
linuxdeepin/treeland.private#59 0x00007f766b5a596c in  () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#60 0x00007f766b5afe83 in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#61 0x00007f766b5affb3 in QSocketNotifier::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#62 0x00007f766b559898 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#63 0x00007f766b7554af in  () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#64 0x00007f7668b0d619 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
linuxdeepin/treeland.private#65 0x00007f7668b0f6c7 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
linuxdeepin/treeland.private#66 0x00007f7668b0fcd0 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
linuxdeepin/treeland.private#67 0x00007f766b74cfd0 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#68 0x00007f766b5625da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#69 0x00007f766b55c6c8 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt6Core.so.6
linuxdeepin/treeland.private#70 0x000055a4c1e6f66a in main(int, char**) (argc=1, argv=0x7ffd1c544a88) at /home/uos/Downloads/treeland.private/src/main.cpp:46

LAUNCH-WAY | 启动方式

unknown

BACKEND | 启动后端

unknown

STEPS TO REPRODUCE | 复现步骤

No response

OBSERVED RESULT | 观察到的结果

No response

EXPECTED RESULT | 期望的结果

No response

ADDITIONAL INFORMATION | 额外补充

No response

@wineee wineee added the bug Something isn't working label Nov 26, 2024
@wineee wineee transferred this issue from linuxdeepin/treeland.private Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant