Bug 432604

Summary: KWin crash when switching activity with shortcut
Product: [Plasma] kwin Reporter: Sotiri <sfranky>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kotarf, nate
Priority: NOR Keywords: drkonqi
Version: 5.20.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Sotiri 2021-02-07 11:02:07 UTC
Application: kwin_x11 (5.20.5)

Qt Version: 5.15.2
Frameworks Version: 5.78.0
Operating System: Linux 5.10.12-200.fc33.x86_64 x86_64
Windowing system: X11
Distribution: Fedora 33 (KDE Plasma)

-- Information about the crash:
- What I was doing when the application crashed:
I was placing my windows on my primary (laptop) monitor, and then pressed shortcut win+f2 to switch to my other activity

The crash does not seem to be reproducible.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f03d58c30e8 in QScreen::handle() const () from /lib64/libQt5Gui.so.5
#5  0x00007f03cf1fa9fc in QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext*) const () from /lib64/libQt5XcbQpa.so.5
#6  0x00007f03d58db071 in QOpenGLContext::create() () from /lib64/libQt5Gui.so.5
#7  0x00007f03d40863aa in QSGRenderThread::syncAndRender(QImage*) () from /lib64/libQt5Quick.so.5
#8  0x00007f03d40897cf in QSGRenderThread::run() () from /lib64/libQt5Quick.so.5
#9  0x00007f03d52c9df0 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#10 0x00007f03d47503f9 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f03d4f05b53 in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f0320894640 (LWP 2330) "CPMMListener"):
#1  0x00007f03c6e6df11 in ?? () from /lib64/libnvidia-glcore.so.460.39
#2  0x00007f03c6e6b9fa in ?? () from /lib64/libnvidia-glcore.so.460.39
#3  0x00007f03d47503f9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f03d4f05b53 in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f03b3505640 (LWP 2181) "FreezeDetector"):
#1  0x00007f03d4ecc965 in clock_gettime@GLIBC_2.2.5 () from /lib64/libc.so.6
#2  0x00007f03d54b0f95 in qt_gettime() () from /lib64/libQt5Core.so.5
#3  0x00007f03d54af8dd in QTimerInfoList::updateCurrentTime() () from /lib64/libQt5Core.so.5
#4  0x00007f03d54afd29 in QTimerInfoList::timerWait(timespec&) () from /lib64/libQt5Core.so.5
#5  0x00007f03d54aef34 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f03d546357b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x00007f03d52c8b67 in QThread::exec() () from /lib64/libQt5Core.so.5
#8  0x00007f03d52c9df0 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f03d47503f9 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f03d4f05b53 in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f03b26f4640 (LWP 1501) "kwin_x11"):
#1  0x00007f03d4bf4cec in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQt5Script.so.5
#2  0x00007f03d4bf4d1f in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQt5Script.so.5
#3  0x00007f03d47503f9 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f03d4f05b53 in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f03c58f6640 (LWP 1403) "QQmlThread"):
#1  0x00007f03d4ecc965 in clock_gettime@GLIBC_2.2.5 () from /lib64/libc.so.6
#2  0x00007f03d54b0f95 in qt_gettime() () from /lib64/libQt5Core.so.5
#3  0x00007f03d54af8dd in QTimerInfoList::updateCurrentTime() () from /lib64/libQt5Core.so.5
#4  0x00007f03d54afd29 in QTimerInfoList::timerWait(timespec&) () from /lib64/libQt5Core.so.5
#5  0x00007f03d54aef34 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f03d546357b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x00007f03d52c8b67 in QThread::exec() () from /lib64/libQt5Core.so.5
#8  0x00007f03d3d0f5ec in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#9  0x00007f03d52c9df0 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#10 0x00007f03d47503f9 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f03d4f05b53 in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f03ce431640 (LWP 1372) "QDBusConnection"):
#1  0x00007f03d4ecc965 in clock_gettime@GLIBC_2.2.5 () from /lib64/libc.so.6
#2  0x00007f03d54b0f95 in qt_gettime() () from /lib64/libQt5Core.so.5
#3  0x00007f03d54af8dd in QTimerInfoList::updateCurrentTime() () from /lib64/libQt5Core.so.5
#4  0x00007f03d54afd29 in QTimerInfoList::timerWait(timespec&) () from /lib64/libQt5Core.so.5
#5  0x00007f03d54aef34 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f03d546357b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#7  0x00007f03d52c8b67 in QThread::exec() () from /lib64/libQt5Core.so.5
#8  0x00007f03d654810b in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#9  0x00007f03d52c9df0 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#10 0x00007f03d47503f9 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f03d4f05b53 in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f03cf30b0c0 (LWP 1349) "kwin_x11"):
#1  0x00007f03d52cf9bb in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt5Core.so.5
#2  0x00007f03d4085426 in QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window*, bool) () from /lib64/libQt5Quick.so.5
#3  0x00007f03d408aa39 in QSGThreadedRenderLoop::exposureChanged(QQuickWindow*) () from /lib64/libQt5Quick.so.5
#4  0x00007f03d58ab7b5 in QWindow::event(QEvent*) () from /lib64/libQt5Gui.so.5
#5  0x00007f03d5ef9ec3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#6  0x00007f03d5464bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#7  0x00007f03d58a17d5 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /lib64/libQt5Gui.so.5
#8  0x00007f03d58818cc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#9  0x00007f03cf21b867 in QXcbUnixEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#10 0x00007f03d546357b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#11 0x00007f03d546b1b4 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#12 0x0000556f6782caff in main ()
[Inferior 1 (process 1349) detached]

Possible duplicates by query: bug 422489, bug 422283, bug 417796, bug 416886, bug 415485.

Reported using DrKonqi
Comment 1 Nate Graham 2021-02-08 19:23:13 UTC

*** This bug has been marked as a duplicate of bug 414805 ***
Comment 2 kotarf 2022-10-01 20:21:50 UTC
Created attachment 152541 [details]
New crash information added by DrKonqi

kwin_x11 (5.25.5) using Qt 5.15.6

Tabbed between windows with a Discord stream active.

-- Backtrace (Reduced):
#4  0x00007fb7e613af38 in QScreen::handle (this=0x7fb7d000ee90) at kernel/qscreen.cpp:188
#5  0x00007fb7df879ce4 in QXcbGlxIntegration::createPlatformOpenGLContext (this=<optimized out>, context=0x557f725d0310) at qxcbglxintegration.cpp:195
#6  0x00007fb7df721688 in QXcbIntegration::createPlatformOpenGLContext (this=<optimized out>, context=0x557f725d0310) at qxcbintegration.cpp:282
#7  0x00007fb7e61593e1 in QOpenGLContext::create (this=0x557f725d0310) at ../../include/QtGui/5.15.6/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:110
#8  0x00007fb7e3ab64a8 in QSGRenderThread::sync (this=this@entry=0x557f72596a90, inExpose=inExpose@entry=true, inGrab=inGrab@entry=false) at scenegraph/qsgthreadedrenderloop.cpp:619