Bug 388524 - kate crashes on wayland
Summary: kate crashes on wayland
Status: RESOLVED UPSTREAM
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 17.12.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-01-04 14:07 UTC by Till Schäfer
Modified: 2018-08-02 22:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (5.77 KB, text/plain)
2018-01-04 14:09 UTC, Till Schäfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2018-01-04 14:07:14 UTC
Application: kate (17.12.0)
 (Compiled from sources)
Qt Version: 5.9.3
Frameworks Version: 5.41.0
Operating System: Linux 4.14.8-gentoo-r1 x86_64
Distribution: "Gentoo Base System release 2.4.1"

-- Information about the crash:
- What I was doing when the application crashed:
I opened kate in  a wayland session. During system start, the start was somehow delayed. Thus, i started kate several times at once.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f698e596800 (LWP 3790))]

Thread 2 (Thread 0x7f6988e71700 (LWP 3791)):
#0  0x00007f6998ff099d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f69943564f6 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f6984003220, timeout=<optimized out>, context=0x7f6984000990) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:4228
#2  g_main_context_iterate (context=context@entry=0x7f6984000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3924
#3  0x00007f699435660c in g_main_context_iteration (context=0x7f6984000990, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3990
#4  0x00007f6999c516fb in QEventDispatcherGlib::processEvents (this=0x7f69840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f6999bffcda in QEventLoop::exec (this=this@entry=0x7f6988e70d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007f6999a5ae73 in QThread::exec (this=this@entry=0x7f699ddc8da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:515
#7  0x00007f699dd526e5 in QDBusConnectionManager::run (this=0x7f699ddc8da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f6999a5f3a1 in QThreadPrivate::start (arg=0x7f699ddc8da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#9  0x00007f699651a887 in start_thread (arg=0x7f6988e71700) at pthread_create.c:456
#10 0x00007f6998ffbd4f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7f698e596800 (LWP 3790)):
[KCrash Handler]
#6  QCoreApplication::notifyInternal2 (receiver=0x0, event=0x7ffdd1424b60) at kernel/qcoreapplication.cpp:1014
#7  0x00007f699a983adb in QWidgetWindow::event (this=0x555a7d1a42a0, event=0x7ffdd1424b60) at kernel/qwidgetwindow.cpp:236
#8  0x00007f699a92821c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555a7d1a42a0, e=0x7ffdd1424b60) at kernel/qapplication.cpp:3722
#9  0x00007f699a92faa9 in QApplication::notify (this=0x7ffdd1425240, receiver=0x555a7d1a42a0, e=0x7ffdd1424b60) at kernel/qapplication.cpp:3481
#10 0x00007f6999c00faa in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x555a7d1a42a0, event=event@entry=0x7ffdd1424b60) at kernel/qcoreapplication.cpp:1018
#11 0x00007f699a41b1c8 in QCoreApplication::sendSpontaneousEvent (event=0x7ffdd1424b60, receiver=0x555a7d1a42a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#12 QGuiApplicationPrivate::processKeyEvent (e=0x555a7d370690) at kernel/qguiapplication.cpp:2075
#13 0x00007f699a4206b5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x555a7d370690) at kernel/qguiapplication.cpp:1739
#14 0x00007f699a3fd72b in QWindowSystemInterface::sendWindowSystemEvents (flags=..., flags@entry=...) at kernel/qwindowsysteminterface.cpp:939
#15 0x00007f699a3fd898 in QWindowSystemInterface::flushWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:908
#16 0x00007f698e1b68c9 in QtWaylandClient::QWaylandWindow::setVisible (this=this@entry=0x555a7d2cef40, visible=<optimized out>) at qwaylandwindow.cpp:385
#17 0x00007f69801e1ed4 in QtWaylandClient::QWaylandEglWindow::setVisible (this=0x555a7d2cef40, visible=<optimized out>) at ../../../../hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:160
#18 0x00007f699a42819d in QWindow::setVisible (this=this@entry=0x555a7d1a42a0, visible=visible@entry=false) at kernel/qwindow.cpp:592
#19 0x00007f699a95c1b7 in QWidgetPrivate::hide_sys (this=this@entry=0x555a7cd316d0) at kernel/qwidget.cpp:8159
#20 0x00007f699a9627dd in QWidgetPrivate::hide_helper (this=this@entry=0x555a7cd316d0) at kernel/qwidget.cpp:8087
#21 0x00007f699a9671d0 in QWidget::setVisible (this=0x555a7ccfec20, visible=<optimized out>) at kernel/qwidget.cpp:8289
#22 0x00007f699a962c78 in QWidgetPrivate::close_helper (this=0x555a7cd316d0, mode=<optimized out>) at kernel/qwidget.cpp:8418
#23 0x00007f699a963160 in QWidget::~QWidget (this=0x555a7ccfec20, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1641
#24 0x00007f699cae9a1e in KMainWindow::~KMainWindow (this=0x555a7ccfec20, __in_chrg=<optimized out>) at /var/tmp/portage/kde-frameworks/kxmlgui-5.41.0/work/kxmlgui-5.41.0/src/kmainwindow.cpp:393
#25 0x0000555a7b25caf9 in KateMainWindow::~KateMainWindow (this=this@entry=0x555a7ccfec20, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-apps/kate-17.12.0/work/kate-17.12.0/kate/katemainwindow.cpp:184
#26 0x0000555a7b25cbd9 in KateMainWindow::~KateMainWindow (this=0x555a7ccfec20, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-apps/kate-17.12.0/work/kate-17.12.0/kate/katemainwindow.cpp:206
#27 0x0000555a7b2488e6 in KateApp::~KateApp (this=0x7ffdd1425280, __in_chrg=<optimized out>) at /var/tmp/portage/kde-apps/kate-17.12.0/work/kate-17.12.0/kate/kateapp.cpp:86
#28 0x0000555a7b2429aa in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/kate-17.12.0/work/kate-17.12.0/kate/main.cpp:555

Possible duplicates by query: bug 385661, bug 383061, bug 381101, bug 377347, bug 377346.

Reported using DrKonqi
Comment 1 Till Schäfer 2018-01-04 14:09:53 UTC
Created attachment 109665 [details]
New crash information added by DrKonqi

kate (17.12.0) using Qt 5.9.3

- What I was doing when the application crashed:
Maybe i was wrong before about the trigger. This time it happened during close of a single instance of kate.

-- Backtrace (Reduced):
#6  QCoreApplication::notifyInternal2 (receiver=0x0, event=0x7fff78650020) at kernel/qcoreapplication.cpp:1014
#7  0x00007fd19b85eadb in QWidgetWindow::event (this=0x55953d506120, event=0x7fff78650020) at kernel/qwidgetwindow.cpp:236
#8  0x00007fd19b80321c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55953d506120, e=0x7fff78650020) at kernel/qapplication.cpp:3722
#9  0x00007fd19b80aaa9 in QApplication::notify (this=0x7fff78650700, receiver=0x55953d506120, e=0x7fff78650020) at kernel/qapplication.cpp:3481
#10 0x00007fd19aadbfaa in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55953d506120, event=event@entry=0x7fff78650020) at kernel/qcoreapplication.cpp:1018
Comment 2 Alexander Mentyu 2018-04-25 15:06:42 UTC
Here is my backtrace upon exit of Kate on Wayland:

Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc1fe8b75c0 (LWP 27672))]

Thread 2 (Thread 0x7fc1e6ec2700 (LWP 27673)):
#0  0x00007fc1f91f5cd9 in poll () from /usr/lib/libc.so.6
#1  0x00007fc1f2c85523 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fc1f2c8563e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fc1f9b44264 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007fc1f9ae632b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007fc1f98f572e in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007fc1f9f67416 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007fc1f98faacd in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fc1f4ca90bc in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007fc1f92002ff in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fc1fe8b75c0 (LWP 27672)):
[KCrash Handler]
#6  0x00007fc1ec4a67f9 in ?? () from /usr/lib/libwayland-client.so.0
#7  0x00007fc1ec4a27e7 in wl_proxy_destroy () from /usr/lib/libwayland-client.so.0
#8  0x00007fc1ea862089 in KWayland::Client::PlasmaWindow::release() () from /usr/lib/libKF5WaylandClient.so.5
#9  0x00007fc1ea8620ab in KWayland::Client::PlasmaWindow::~PlasmaWindow() () from /usr/lib/libKF5WaylandClient.so.5
#10 0x00007fc1ea8621aa in KWayland::Client::PlasmaWindow::~PlasmaWindow() () from /usr/lib/libKF5WaylandClient.so.5
#11 0x00007fc1f9b1615d in QObjectPrivate::deleteChildren() () from /usr/lib/libQt5Core.so.5
#12 0x00007fc1f9b1fd2c in QObject::~QObject() () from /usr/lib/libQt5Core.so.5
#13 0x00007fc1ea86277a in KWayland::Client::PlasmaWindowManagement::~PlasmaWindowManagement() () from /usr/lib/libKF5WaylandClient.so.5
#14 0x00007fc1f9b1615d in QObjectPrivate::deleteChildren() () from /usr/lib/libQt5Core.so.5
#15 0x00007fc1f9b1fd2c in QObject::~QObject() () from /usr/lib/libQt5Core.so.5
#16 0x00007fc1dd102fc4 in ?? () from /usr/lib/qt/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemKWaylandPlugin.so
#17 0x00007fc1f91408e1 in __run_exit_handlers () from /usr/lib/libc.so.6
#18 0x00007fc1f91409ea in exit () from /usr/lib/libc.so.6
#19 0x00007fc1f912a9ae in __libc_start_main () from /usr/lib/libc.so.6
#20 0x000055b96c9e4c9a in _start ()

Plasma: 5.12.4
Apps: 18.04.0
Frameworks: 5.45.0
Qt: 5.10.1
Kernel: 4.14.36-1-MANJARO
OS: Netrunner Rolling
Video: Intel 4400
Driver: xf86-video-intel 1:2.99.917+823+gd9bf46e4-1
Screen: 1600x900
wayland-protocols 1.13-1
wayland 1.14.0-1
Comment 3 Christoph Feck 2018-04-26 23:38:12 UTC
Comment #2 is bug 390151.
Comment 4 Christoph Cullmann 2018-07-14 14:26:21 UTC
Could you retry with some more up-to-date version?
This either looks like other bugs (aka 390151) or an Qt on Wayland issue.
Comment 5 Alexander Mentyu 2018-07-14 19:10:11 UTC
Kate exits with same backtrace for me - but looks like less often than previously

Distribution: Netrunner Rolling
Kernel: 4.18.0-1-MANJARO
Plasma: 5.13.3
Apps: 18.04.3
Qt: 5.11.1
Frameworks: 5.47.0
Wayland: 1.15.0
Graphics:  Card-1: Intel Haswell-ULT Integrated Graphics driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:0a16 
           Display: wayland server: X.Org 1.20.0 driver: intel unloaded: modesetting compositor: kwin_wayland 
           tty: N/A 
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 18.1.4 compat-v: 3.0 direct render: Yes
Comment 6 Till Schäfer 2018-07-16 13:42:29 UTC
I am currently unable to reproduce the issue with Kate 18.04.2, qt 5.11, plasma 5.13.3, and frameworks 5.47.
Comment 7 Christoph Feck 2018-08-02 22:39:19 UTC
Let's assume it was a Qt issue.