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

            Bug ID: 494820
           Summary: Occasional crashes in
                    QtWaylandClient::QWaylandShmBackingStore::resize()
                    when switching sessions
    Classification: Applications
           Product: kate
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: sessions
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: n...@kde.org
  Target Milestone: ---

I have two sessions in Kate, and the "Recent Sessions" button in its toolbar.
These sessions often end up with different saved window sizes (which seems like
it could be relevant information, based on what's in the backtrace).

Sometimes, when I click on the "Recent Sessions" button and switch to a
different session, Kate immediately crashes with this backtrace:

#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=11,
    no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO
(ret) : 0;
[Current thread is 1 (Thread 0x7f5bb656b440 (LWP 3584))]
(gdb) bt
#0  __pthread_kill_implementation
    (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at
pthread_kill.c:44
#1  0x00007f5bbc2a86d3 in __pthread_kill_internal (threadid=<optimized out>,
signo=11)
    at pthread_kill.c:78
#2  0x00007f5bbc24fc4e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007f5bbf8135ab in KCrash::defaultCrashHandler (sig=11)
    at /home/nate/kde/src/kcrash/src/kcrash.cpp:596
#4  0x00007f5bbc24fd00 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007f5bbd1736ff in QImage::sizeInBytes (this=0x40327718)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/image/qimage.cpp:1547
#6  0x00007f5bb911cd56 in QtWaylandClient::QWaylandShmBackingStore::resize
    (this=this@entry=0x40328200, size=...)
    at
/usr/src/debug/qt6-qtwayland-6.7.2-4.fc40.x86_64/src/client/qwaylandshmbackingstore.cpp:280
#7  0x00007f5bb911cebd in QtWaylandClient::QWaylandShmBackingStore::ensureSize
    (this=this@entry=0x40328200)
    at
/usr/src/debug/qt6-qtwayland-6.7.2-4.fc40.x86_64/src/client/qwaylandshmbackingstore.cpp:193
#8  0x00007f5bb911d1af in QtWaylandClient::QWaylandShmBackingStore::beginPaint
    (this=0x40328200, region=...)
    at
/usr/src/debug/qt6-qtwayland-6.7.2-4.fc40.x86_64/src/client/qwaylandshmbackingstore.cpp:172
#9  0x00007f5bbd26704f in QBackingStore::beginPaint (this=0x402e5810,
region=...)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/painting/qbackingstore.cpp:125
#10 0x00007f5bbddf96ea in QWidgetRepaintManager::paintAndFlush
(this=this@entry=0x3f8818c0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidgetrepaintmanager.cpp:873
#11 0x00007f5bbddfa67f in QWidgetRepaintManager::sync
    (this=0x3f8818c0, exposedWidget=0x3fa96bc0, exposedRegion=...)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidgetrepaintmanager.cpp:632
#12 0x00007f5bbde042c6 in QWidgetWindow::event (this=0x402ea580,
event=0x7ffe9a6a35d0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidgetwindow.cpp:310
#13 0x00007f5bbdd8b218 in QApplicationPrivate::notify_helper
    (this=<optimized out>, receiver=0x402ea580, e=0x7ffe9a6a35d0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#14 0x00007f5bbc996e88 in QCoreApplication::notifyInternal2
    (receiver=0x402ea580, event=0x7ffe9a6a35d0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#15 0x00007f5bbc9970fd in QCoreApplication::sendSpontaneousEvent
    (receiver=<optimized out>, event=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1597
#16 0x00007f5bbd1e8105 in QGuiApplicationPrivate::processExposeEvent
(e=0x40f35820)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:3298
#17 0x00007f5bbd24b37c in QWindowSystemInterface::sendWindowSystemEvents
(flags=...)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1114
#18 0x00007f5bbd7634f4 in userEventSourceDispatch (source=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#19 0x00007f5bb9b0ee8c in g_main_dispatch (context=0x7f5ba0000f00) at
../glib/gmain.c:3344
#20 g_main_context_dispatch_unlocked (context=0x7f5ba0000f00) at
../glib/gmain.c:4152
--Type <RET> for more, q to quit, c to continue without paging--c
#21 0x00007f5bb9b70c98 in g_main_context_iterate_unlocked.isra.0
    (context=context@entry=0x7f5ba0000f00, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4217
#22 0x00007f5bb9b10383 in g_main_context_iteration (context=0x7f5ba0000f00,
may_block=1)
    at ../glib/gmain.c:4282
#23 0x00007f5bbcc851a3 in QEventDispatcherGlib::processEvents (this=0x3dc735e0,
flags=...)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#24 0x00007f5bbc9a3bc3 in QEventLoop::exec (this=this@entry=0x7ffe9a6a3920,
flags=...,
    flags@entry=...) at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/global/qflags.h:34
#25 0x00007f5bbdf7d42c in QMenuPrivate::exec
    (this=0x3fa96e60, p=..., action=action@entry=0x0, positionFunction=...)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/global/qflags.h:74
#26 0x00007f5bbdff24cc in QToolButtonPrivate::popupTimerDone (this=0x3facb4c0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/widgets/qtoolbutton.cpp:784
#27 0x00007f5bbc9fc8f2 in QtPrivate::QSlotObjectBase::call
    (this=0x3fb43a00, r=<optimized out>, a=0x7ffe9a6a3b18)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qobjectdefs_impl.h:469
#28 doActivate<false> (sender=0x3fa97f20, signal_index=7, argv=0x7ffe9a6a3b18)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qobject.cpp:4086
#29 0x00007f5bbc9f2bc7 in QMetaObject::activate
    (sender=sender@entry=0x3fa97f20, m=m@entry=0x7f5bbe3694a0
<QAbstractButton::staticMetaObject>,
local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qobject.cpp:4146
#30 0x00007f5bbdec3124 in QAbstractButton::pressed (this=this@entry=0x3fa97f20)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/redhat-linux-build/src/widgets/Widgets_autogen/include/moc_qabstractbutton.cpp:311
#31 0x00007f5bbdec34f2 in QAbstractButtonPrivate::emitPressed (this=0x3facb4c0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/widgets/qabstractbutton.cpp:395
#32 0x00007f5bbdec3d4a in QAbstractButton::mousePressEvent
    (this=this@entry=0x3fa97f20, e=e@entry=0x7ffe9a6a4220)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/widgets/qabstractbutton.cpp:948
#33 0x00007f5bbdff33c7 in QToolButton::mousePressEvent (this=0x3fa97f20,
e=0x7ffe9a6a4220)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/widgets/qtoolbutton.cpp:578
#34 0x00007f5bbdded278 in QWidget::event (this=0x3fa97f20,
event=0x7ffe9a6a4220)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidget.cpp:9405
#35 0x00007f5bbdd8b218 in QApplicationPrivate::notify_helper
    (this=this@entry=0x3dc71540, receiver=receiver@entry=0x3fa97f20,
e=e@entry=0x7ffe9a6a4220)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#36 0x00007f5bbdd96142 in QApplication::notify
    (this=<optimized out>, receiver=<optimized out>, e=0x7ffe9a6a4220)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:2765
#37 0x00007f5bbc996e88 in QCoreApplication::notifyInternal2
    (receiver=0x3fa97f20, event=0x7ffe9a6a4220)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#38 0x00007f5bbc9970fd in QCoreApplication::sendSpontaneousEvent
    (receiver=<optimized out>, event=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1597
#39 0x00007f5bbdd946cc in QApplicationPrivate::sendMouseEvent
    (receiver=receiver@entry=0x3fa97f20, event=event@entry=0x7ffe9a6a4220,
alienWidget=<optimized out>, nativeWidget=0x3f98d3f0,
buttonDown=buttonDown@entry=0x7f5bbe3ac880 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:2347
#40 0x00007f5bbde01336 in QWidgetWindow::handleMouseEvent (this=0x400d9cb0,
event=0x7ffe9a6a44e0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidgetwindow.cpp:649
#41 0x00007f5bbde04240 in QWidgetWindow::event (this=0x400d9cb0,
event=0x7ffe9a6a44e0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qwidgetwindow.cpp:263
#42 0x00007f5bbdd8b218 in QApplicationPrivate::notify_helper
    (this=<optimized out>, receiver=0x400d9cb0, e=0x7ffe9a6a44e0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:3287
#43 0x00007f5bbc996e88 in QCoreApplication::notifyInternal2
    (receiver=0x400d9cb0, event=0x7ffe9a6a44e0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1142
#44 0x00007f5bbc9970fd in QCoreApplication::sendSpontaneousEvent
    (receiver=<optimized out>, event=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qcoreapplication.cpp:1597
#45 0x00007f5bbd1e6d9b in QGuiApplicationPrivate::processMouseEvent
(e=0x7f5b880034a0)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:2327
#46 0x00007f5bbd24b37c in QWindowSystemInterface::sendWindowSystemEvents
(flags=...)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/kernel/qwindowsysteminterface.cpp:1114
#47 0x00007f5bbd7634f4 in userEventSourceDispatch (source=<optimized out>)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#48 0x00007f5bb9b0ee8c in g_main_dispatch (context=0x7f5ba0000f00) at
../glib/gmain.c:3344
#49 g_main_context_dispatch_unlocked (context=0x7f5ba0000f00) at
../glib/gmain.c:4152
#50 0x00007f5bb9b70c98 in g_main_context_iterate_unlocked.isra.0
    (context=context@entry=0x7f5ba0000f00, block=block@entry=1,
dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4217
#51 0x00007f5bb9b10383 in g_main_context_iteration (context=0x7f5ba0000f00,
may_block=1)
    at ../glib/gmain.c:4282
#52 0x00007f5bbcc851a3 in QEventDispatcherGlib::processEvents (this=0x3dc735e0,
flags=...)
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#53 0x00007f5bbc9a3bc3 in QEventLoop::exec (this=this@entry=0x7ffe9a6a4910,
flags=...,
    flags@entry=...) at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/global/qflags.h:34
#54 0x00007f5bbc99fa7c in QCoreApplication::exec ()
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/corelib/global/qflags.h:74
#55 0x00007f5bbd1d66ed in QGuiApplication::exec ()
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/gui/kernel/qguiapplication.cpp:1926
#56 0x00007f5bbdd8b189 in QApplication::exec ()
    at
/usr/src/debug/qt6-qtbase-6.7.2-6.fc40.x86_64/src/widgets/kernel/qapplication.cpp:2555
#57 0x00000000004071e1 in main (argc=<optimized out>, argv=<optimized out>)
    at /home/nate/kde/src/kate/apps/kate/main.cpp:547

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

Reply via email to