Bug 376745 - kwin crashes on resume from suspend.
Summary: kwin crashes on resume from suspend.
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.8.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi, triaged
Depends on:
Blocks:
 
Reported: 2017-02-21 03:10 UTC by ww.foster
Modified: 2021-11-16 15:12 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (10.45 KB, text/plain)
2021-11-16 15:12 UTC, kotarf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ww.foster 2017-02-21 03:10:45 UTC
Application: kwin_x11 (5.8.5)

Qt Version: 5.6.2
Frameworks Version: 5.29.0
Operating System: Linux 4.9.10-100.fc24.x86_64 x86_64
Distribution: "Fedora release 24 (Twenty Four)"

-- Information about the crash:
kwin segfaults when resuming from suspend to memory.  This is on Fedora 24 using kwin --replace as my compositor.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5f63cdb940 (LWP 5046))]

Thread 3 (Thread 0x7f5f50bf1700 (LWP 5070)):
#0  0x00007f5f76c0ff79 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f5f7498b018 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQt5Core.so.5
#2  0x00007f5f7498793d in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
#3  0x00007f5f7498a9ba in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#4  0x00007f5f76c0a5ca in start_thread () from /lib64/libpthread.so.0
#5  0x00007f5f73d7d0ed in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f5f513f2700 (LWP 5069)):
#0  0x00007f5f73d73343 in select () from /lib64/libc.so.6
#1  0x00007f5f74b74bcf in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () from /lib64/libQt5Core.so.5
#2  0x00007f5f74b762c4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () from /lib64/libQt5Core.so.5
#3  0x00007f5f74b767fa in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007f5f74b2781a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f5f74986353 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007f5f76707559 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#7  0x00007f5f7498a9ba in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007f5f76c0a5ca in start_thread () from /lib64/libpthread.so.0
#9  0x00007f5f73d7d0ed in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f5f63cdb940 (LWP 5046)):
[KCrash Handler]
#4  0x00007f5f7b668d84 in QHash<QHashedStringRef, QQmlType*>::values() const () from /lib64/libQt5Qml.so.5
#5  0x00007f5f7b6669e2 in QQmlMetaType::qmlSingletonTypes() () from /lib64/libQt5Qml.so.5
#6  0x00007f5f7b63e481 in QQmlEngine::~QQmlEngine() () from /lib64/libQt5Qml.so.5
#7  0x00007f5f7b63e5f9 in QQmlEngine::~QQmlEngine() () from /lib64/libQt5Qml.so.5
#8  0x00007f5f73cb3258 in __run_exit_handlers () from /lib64/libc.so.6
#9  0x00007f5f73cb32a5 in exit () from /lib64/libc.so.6
#10 0x00007f5f3fb0dc51 in _intel_batchbuffer_flush.part.2 () from /usr/lib64/dri/i965_dri.so
#11 0x00007f5f3fb11f92 in intelInitExtensions () from /usr/lib64/dri/i965_dri.so
#12 0x00007f5f3fad3a82 in brwCreateContext () from /usr/lib64/dri/i965_dri.so
#13 0x00007f5f3fa7468a in driCreateContextAttribs () from /usr/lib64/dri/i965_dri.so
#14 0x00007f5f71ecaecf in dri3_create_context_attribs () from /lib64/libGL.so.1
#15 0x00007f5f71e98f12 in glXCreateContextAttribsARB () from /lib64/libGL.so.1
#16 0x00007f5f7d5b8cbb in QGLXContext::init(QXcbScreen*, QPlatformOpenGLContext*) () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#17 0x00007f5f7d5b6b5b in QXcbGlxIntegration::createPlatformOpenGLContext(QOpenGLContext*) const () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#18 0x00007f5f5d272931 in QXcbIntegration::createPlatformOpenGLContext(QOpenGLContext*) const () from /lib64/libQt5XcbQpa.so.5
#19 0x00007f5f74e9734d in QOpenGLContext::create() () from /lib64/libQt5Gui.so.5
#20 0x00007f5f4bd77a54 in Aurorae::Decoration::init() () from /usr/lib64/qt5/plugins/org.kde.kdecoration2/kwin5_aurorae.so
#21 0x00007f5f7ce9b459 in KWin::Decoration::DecorationBridge::createDecoration(KWin::AbstractClient*) () from /lib64/libkwin.so.5
#22 0x00007f5f7cd7aea2 in KWin::Client::createDecoration(QRect const&) () from /lib64/libkwin.so.5
#23 0x00007f5f7cd7ba8d in KWin::Client::updateDecoration(bool, bool) () from /lib64/libkwin.so.5
#24 0x00007f5f7cddaaa5 in KWin::Client::manage(unsigned int, bool) () from /lib64/libkwin.so.5
#25 0x00007f5f7cd5d284 in KWin::Workspace::createClient(unsigned int, bool) () from /lib64/libkwin.so.5
#26 0x00007f5f7cd63de3 in KWin::Workspace::init() () from /lib64/libkwin.so.5
#27 0x00007f5f7cd64be3 in KWin::Workspace::Workspace(QString const&) () from /lib64/libkwin.so.5
#28 0x00007f5f7cdb8ca3 in KWin::Application::createWorkspace() () from /lib64/libkwin.so.5
#29 0x00007f5f7d19cdde in QtPrivate::QFunctorSlotObject<KWin::ApplicationX11::performStartup()::{lambda()#2}::operator()() const::{lambda()#1}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /lib64/libkdeinit5_kwin_x11.so
#30 0x00007f5f74b510fc in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#31 0x00007f5f7d19d13f in QtPrivate::QFunctorSlotObject<KWin::ApplicationX11::performStartup()::{lambda()#2}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /lib64/libkdeinit5_kwin_x11.so
#32 0x00007f5f74b510fc in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#33 0x00007f5f759132cb in KSelectionOwner::Private::claimSucceeded() () from /lib64/libKF5WindowSystem.so.5
#34 0x00007f5f75913a41 in KSelectionOwner::filterEvent(void*) () from /lib64/libKF5WindowSystem.so.5
#35 0x00007f5f74b268cc in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () from /lib64/libQt5Core.so.5
#36 0x00007f5f5d26d965 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /lib64/libQt5XcbQpa.so.5
#37 0x00007f5f5d26e94b in QXcbConnection::processXcbEvents() () from /lib64/libQt5XcbQpa.so.5
#38 0x00007f5f74b51e19 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#39 0x00007f5f753b6e4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#40 0x00007f5f753bc32f in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#41 0x00007f5f74b289da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#42 0x00007f5f74b2aa8f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#43 0x00007f5f74b766d2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#44 0x00007f5f5d2e11ad in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#45 0x00007f5f74b2781a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#46 0x00007f5f74b2f3bc in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#47 0x00007f5f7d19f0c6 in kdemain () from /lib64/libkdeinit5_kwin_x11.so
#48 0x00007f5f73c9a731 in __libc_start_main () from /lib64/libc.so.6
#49 0x000055f574a8bce9 in _start ()

Reported using DrKonqi
Comment 1 Martin Flöser 2017-02-21 06:10:18 UTC
Unfortunately the backtrace is lacking debug symbols. If you are able to 
reproduce please install the debug packages provided by your 
distribution (please ask the distribution support channel on how to 
install them) and attach a new backtrace.
Comment 2 Andrew Crouthamel 2018-09-28 02:35:40 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-10-28 03:24:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 4 kotarf 2021-11-16 15:12:35 UTC
Created attachment 143632 [details]
New crash information added by DrKonqi

kwin_x11 (5.23.3) using Qt 5.15.3

- What I was doing when the application crashed:
Multi-monitor setup. Resume from suspend with 2nd monitor only. Display goes inactive after 15 mins. Wake display, access task menu, crash.

- Custom settings of the application:
OpenGL 3.1, low latency

Sorry if this isn't helpful but I've had this crash across multiple major version updates now; it is most definitely persistent.

-- Backtrace (Reduced):
#4  0x00007f5ce7460331 in QXcbVirtualDesktop::surfaceFormatFor (this=0x0, format=...) at qxcbobject.h:53
#5  0x00007f5ce74609d6 in QXcbScreen::surfaceFormatFor (this=this@entry=0x5591ed6ae6c0, format=...) at qxcbscreen.cpp:653
#6  0x00007f5ce65e2d00 in QXcbGlxIntegration::createPlatformOpenGLContext (this=<optimized out>, context=0x5591ed8d1c20) at qxcbglxintegration.cpp:196
#7  0x00007f5ce7458a88 in QXcbIntegration::createPlatformOpenGLContext (this=<optimized out>, context=0x5591ed8d1c20) at qxcbintegration.cpp:282
#8  0x00007f5cee7f4ef1 in QOpenGLContext::create (this=0x5591ed8d1c20) at ../../include/QtGui/5.15.3/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:110