https://bugs.kde.org/show_bug.cgi?id=390151

--- Comment #34 from jsc...@posteo.net ---
(In reply to David Edmundson from comment #32)
> Can't reproduce, which doesn't help.
> 
> If someone can reliably reproduce and has some GDB experience can I find out
> two things:
> 
> 1) Can I have a backtrace of when WaylandIntegration::plasmaWindowManagement
> happens. I can't think why Kate would create this, mine doesn't which is key
> to why I don't get this crash.
> Must be some setting/plugin.
> 
> (break WaylandIntegration::plasmaWindowManagement)

I'm not a gdb pro, but I am able to reproduce. Here's my gdb session.

(gdb) break WaylandIntegration::plasmaWindowManagement
Function "WaylandIntegration::plasmaWindowManagement" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (WaylandIntegration::plasmaWindowManagement) pending.
(gdb) run
Starting program: /usr/bin/kate /home/john/explicit.gp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed435700 (LWP 4949)]
Using Wayland-EGL
[New Thread 0x7fffe4f53700 (LWP 4950)]
Using the 'xdg-shell-v6' shell integration
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

Thread 1 "kate" hit Breakpoint 1, WaylandIntegration::plasmaWindowManagement (
    this=0x7fffec0413c0 <(anonymous
namespace)::Q_QGS_privateWaylandIntegrationSelf::innerFunction()::holder>) at
./src/windowsystem/waylandintegration.cpp:183
183     ./src/windowsystem/waylandintegration.cpp: No such file or directory.
(gdb) bt
#0  WaylandIntegration::plasmaWindowManagement (this=0x7fffec0413c0 <(anonymous
namespace)::Q_QGS_privateWaylandIntegrationSelf::innerFunction()::holder>)
    at ./src/windowsystem/waylandintegration.cpp:183
#1  0x00007fffec03acac in WindowSystem::window (this=<optimized out>,
wid=wid@entry=1) at ./src/windowsystem/windowsystem.cpp:46
#2  0x00007fffec03ae99 in WindowSystem::forceActiveWindow (this=<optimized
out>, win=1, time=<optimized out>) at ./src/windowsystem/windowsystem.cpp:69
#3  0x00005555555d37ac in KateAppAdaptor::activate (this=<optimized out>) at
./kate/kateappadaptor.cpp:45
#4  0x00005555555cca8d in KateAppAdaptor::qt_static_metacall
(_o=_o@entry=0x7fffffffdfb8, _id=_id@entry=11, _a=_a@entry=0x7fffffffd550,
_c=QMetaObject::InvokeMetaMethod)
    at
./obj-x86_64-linux-gnu/kate/kdeinit_kate_autogen/EWIEGA46WW/moc_kateappadaptor.cpp:149
#5  0x00005555555d15f1 in KateAppAdaptor::qt_static_metacall
(_a=0x7fffffffd550, _id=11, _c=QMetaObject::InvokeMetaMethod,
_o=0x7fffffffdfb8)
    at
./obj-x86_64-linux-gnu/kate/kdeinit_kate_autogen/EWIEGA46WW/moc_kateappadaptor.cpp:210
#6  KateAppAdaptor::qt_metacall (this=0x7fffffffdfb8,
_c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fffffffd550)
    at
./obj-x86_64-linux-gnu/kate/kdeinit_kate_autogen/EWIEGA46WW/moc_kateappadaptor.cpp:210
#7  0x00007ffff65c3e8a in QDBusConnectionPrivate::deliverCall (this=<optimized
out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>)
    at qdbusintegrator.cpp:991
#8  0x00007ffff65c84a5 in QDBusConnectionPrivate::activateCall
(this=this@entry=0x7fffe8003f10, object=0x7fffffffdfb8, flags=flags@entry=273,
msg=...) at qdbusintegrator.cpp:894
#9  0x00007ffff65c8cf6 in QDBusConnectionPrivate::activateCall (msg=...,
flags=273, object=<optimized out>, this=0x7fffe8003f10) at
qdbusintegrator.cpp:843
#10 QDBusConnectionPrivate::activateObject (pathStartPos=<optimized out>,
msg=..., node=..., this=0x7fffe8003f10) at qdbusintegrator.cpp:1477
#11 QDBusConnectionPrivate::activateObject (this=0x7fffe8003f10, node=...,
msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1427
#12 0x00007ffff65cb36e in QDBusActivateObjectEvent::placeMetaCall
(this=0x7fffe800d6c0) at qdbusintegrator.cpp:1597
#13 0x00007ffff633cb42 in QObject::event (this=0x7fffffffdf30, e=<optimized
out>) at kernel/qobject.cpp:1251
#14 0x00007ffff6df3491 in QApplicationPrivate::notify_helper
(this=this@entry=0x555555629ac0, receiver=receiver@entry=0x7fffffffdf30,
e=e@entry=0x7fffe800d6c0)
    at kernel/qapplication.cpp:3727
#15 0x00007ffff6dfaad0 in QApplication::notify (this=0x7fffffffdef0,
receiver=0x7fffffffdf30, e=0x7fffe800d6c0) at kernel/qapplication.cpp:3486
#16 0x00007ffff6313039 in QCoreApplication::notifyInternal2
(receiver=0x7fffffffdf30, event=0x7fffe800d6c0)
    at
../../include/QtCore/5.11.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#17 0x00007ffff631602b in QCoreApplication::sendEvent (event=0x7fffe800d6c0,
receiver=<optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#18 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x555555628f90) at kernel/qcoreapplication.cpp:1745
#19 0x00007ffff63656e3 in postEventSourceDispatch (s=0x5555556bf3d0) at
kernel/qeventdispatcher_glib.cpp:276
#20 0x00007ffff3a92c3e in g_main_dispatch (context=0x55555569c2b0) at
../../../../glib/gmain.c:3182
#21 g_main_context_dispatch (context=context@entry=0x55555569c2b0) at
../../../../glib/gmain.c:3847
#22 0x00007ffff3a92ed8 in g_main_context_iterate
(context=context@entry=0x55555569c2b0, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>)
    at ../../../../glib/gmain.c:3920
#23 0x00007ffff3a92f6c in g_main_context_iteration (context=0x55555569c2b0,
may_block=may_block@entry=1) at ../../../../glib/gmain.c:3981
#24 0x00007ffff6364d13 in QEventDispatcherGlib::processEvents
(this=0x555555633b10, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#25 0x00007ffff07906c1 in ?? () from
/usr/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#26 0x00007ffff6311d0b in QEventLoop::exec (this=this@entry=0x7fffffffdcf0,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#27 0x00007ffff6319e82 in QCoreApplication::exec () at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#28 0x0000555555581a25 in main (argc=<optimized out>, argv=<optimized out>) at
./kate/main.cpp:595

> 2)  do we get inside the lambda 
>    connect(qApp, &QCoreApplication::aboutToQuit, this, [=]() {
> 
> which is declared in WaylandIntegration::setupKWaylandIntegration?
> 
> (break waylandintegration.cpp:87)
> 
> From the backtrace it would appear we do not.
(gdb) break waylandintegration.cpp:87
No source file named waylandintegration.cpp.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (waylandintegration.cpp:87) pending.
(gdb) run
Starting program: /usr/bin/kate /home/john/explicit.gp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed435700 (LWP 5106)]
Using Wayland-EGL
[New Thread 0x7fffe4f53700 (LWP 5116)]
Using the 'xdg-shell-v6' shell integration
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
[New Thread 0x7fffdf4ec700 (LWP 5153)]

Thread 1 "kate" hit Breakpoint 1, WaylandIntegration::<lambda()>::operator()
(__closure=0x555555a226e0) at ./src/windowsystem/waylandintegration.cpp:87
87      ./src/windowsystem/waylandintegration.cpp: No such file or directory.
(gdb) bt
#0  WaylandIntegration::<lambda()>::operator() (__closure=0x555555a226e0) at
./src/windowsystem/waylandintegration.cpp:87
#1  QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void,
WaylandIntegration::setupKWaylandIntegration()::<lambda()> >::call
(arg=<optimized out>, f=...)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:128
#2 
QtPrivate::Functor<WaylandIntegration::setupKWaylandIntegration()::<lambda()>,
0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:238
#3 
QtPrivate::QFunctorSlotObject<WaylandIntegration::setupKWaylandIntegration()::<lambda()>,
0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *,
void **, bool *) (which=<optimized out>, this_=0x555555a226d0, r=<optimized
out>, a=<optimized out>, ret=<optimized out>)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:421
#4  0x00007ffff633c3e0 in QtPrivate::QSlotObjectBase::call (a=0x7fffffffdcb0, 
    r=0x7fffec0413c0 <(anonymous
namespace)::Q_QGS_privateWaylandIntegrationSelf::innerFunction()::holder>,
this=0x555555a226d0)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:376
#5  QMetaObject::activate (sender=0x7fffffffdef0, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3754
#6  0x00007ffff6312217 in QCoreApplication::aboutToQuit (this=<optimized out>,
_t1=...) at .moc/moc_qcoreapplication.cpp:249
#7  0x00007ffff63164b9 in QCoreApplicationPrivate::execCleanup
(this=0x555555629ac0) at kernel/qcoreapplication_p.h:76
#8  0x00007ffff6319e9b in QCoreApplication::exec () at global/qglobal.h:1038
#9  0x0000555555581a25 in main (argc=<optimized out>, argv=<optimized out>) at
./kate/main.cpp:595

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to