Bug 428975 - kwin crashes when opening applications
Summary: kwin crashes when opening applications
Status: RESOLVED DUPLICATE of bug 428897
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.17.5
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-11-11 13:42 UTC by Chaim Zax
Modified: 2020-11-12 15:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chaim Zax 2020-11-11 13:42:37 UTC
Application: kwin_x11 (5.17.5)

Qt Version: 5.15.1
Frameworks Version: 5.74.0
Operating System: Linux 5.9.0-1-amd64 x86_64
Distribution: Debian GNU/Linux bullseye/sid

-- Information about the crash:
- What I was doing when the application crashed:
The problem is always directly visible when starting KDE after logging in.

- Unusual behavior I noticed:
Kwin tries to start the application several times before giving up.

Starting "kwin --replace" reproduces the result and gives the following output (only first part shown):
Application::crashHandler() called with signal 11; recent crashes: 3
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kwin_x11 path = /usr/bin pid = 23486
KCrash: Arguments: /usr/bin/kwin_x11 --crashes 2 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QCommandLineParser: already having an option named "h"
QCommandLineParser: already having an option named "help-all"
QCommandLineParser: already having an option named "v"
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 179, resource id: 138412039, major code: 20 (GetProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 180, resource id: 138412039, major code: 20 (GetProperty), minor code: 0
Application::crashHandler() called with signal 11; recent crashes: 4
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 179, resource id: 138412039, major code: 20 (GetProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 180, resource id: 138412039, major code: 20 (GetProperty), minor code: 0
...

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe95afdd8c0 (LWP 23513))]

Thread 3 (Thread 0x7fe94f59e700 (LWP 23531)):
#0  futex_abstimed_wait_cancelable (private=0, abstime=0x7fe94f59dc50, clockid=1331289040, expected=0, futex_word=0x564a08524644) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7fe94f59dc50, clockid=1331289040, mutex=0x564a085245f0, cond=0x564a08524618) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0x564a08524618, mutex=0x564a085245f0, abstime=0x7fe94f59dc50) at pthread_cond_wait.c:656
#3  0x00007fe95b832aa4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fe95b830ae1 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe95b82cb01 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fe95abe8ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fe95cfe5d4f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fe94fd9f700 (LWP 23528)):
#0  0x00007fe95cfdb456 in __ppoll (fds=0x7fe94800d058, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007fe95ba5f6a0 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007fe95ba60e13 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fe95ba0ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fe95b82b9be in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe959ce0a27 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007fe95b82cb01 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe95abe8ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007fe95cfe5d4f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fe95afdd8c0 (LWP 23513)):
[KCrash Handler]
#4  0x00007fe95b8adef0 in QString::operator=(QString const&) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe95ccf710c in  () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#6  0x00007fe94e7b4910 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/breezedecoration.so
#7  0x00007fe94e7b87f9 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/breezedecoration.so
#8  0x00007fe94e7b8a28 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/breezedecoration.so
#9  0x00007fe95ccf8d52 in KWin::Decoration::DecorationBridge::createDecoration(KWin::AbstractClient*) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#10 0x00007fe95cccd4cc in KWin::Client::createDecoration(QRect const&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#11 0x00007fe95ccd1758 in KWin::Client::updateDecoration(bool, bool) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#12 0x00007fe95cd65246 in KWin::Client::manage(unsigned int, bool) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007fe95ce019a5 in KWin::Workspace::createClient(unsigned int, bool) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#14 0x00007fe95ce05a1f in KWin::Workspace::initWithX11() () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007fe95ce06d51 in KWin::Workspace::init() () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#16 0x00007fe95ce0756d in KWin::Workspace::Workspace(QString const&) () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007fe95cd62054 in KWin::Application::createWorkspace() () at /usr/lib/x86_64-linux-gnu/libkwin.so.5
#18 0x00007fe95d0b7e6c in  () at /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#19 0x00007fe95ba42796 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fe95d0b82cc in  () at /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#21 0x00007fe95ba42796 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fe95ca31633 in  () at /usr/lib/x86_64-linux-gnu/libKF5WindowSystem.so.5
#23 0x00007fe95ca31e65 in KSelectionOwner::filterEvent(void*) () at /usr/lib/x86_64-linux-gnu/libKF5WindowSystem.so.5
#24 0x00007fe95ba09707 in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007fe954def561 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#26 0x00007fe954df0a76 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#27 0x00007fe954e1360c in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#28 0x00007fe95ba0ab7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007fe95ba12df0 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007fe95d0b9886 in kdemain () at /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#31 0x00007fe95cf0ecca in __libc_start_main (main=0x564a08216050, argc=3, argv=0x7ffe2010bbf8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe2010bbe8) at ../csu/libc-start.c:308
#32 0x0000564a0821608a in _start ()
[Inferior 1 (process 23513) detached]

The reporter indicates this bug may be a duplicate of or related to bug 428954.

Possible duplicates by query: bug 428954, bug 428951, bug 428949, bug 428937, bug 428936.

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2020-11-11 14:57:00 UTC

*** This bug has been marked as a duplicate of bug 428897 ***
Comment 2 Chaim Zax 2020-11-12 15:15:34 UTC
Problem solved after updating kwin to 5.19.5.