Bug 345129

Summary: crash when switching to screen with different size
Product: [Applications] yakuake Reporter: Marc Schiffbauer <mschiff>
Component: generalAssignee: Eike Hein <hein>
Status: RESOLVED DUPLICATE    
Severity: crash CC: christoph, nate
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=341497
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marc Schiffbauer 2015-03-14 00:00:46 UTC
Application: yakuake (2.9.9+)
 (Compiled from sources)
Qt Version: 5.4.1
Operating System: Linux 3.17.8-gentoo-r1 x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
- What I was doing when the application crashed:

this happens when yakuake is hidden, then switch from external to internal screen, then press F12 -> kaboom

The crash can be reproduced every time.

-- Backtrace:
Application: Yakuake (yakuake), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd713bca840 (LWP 12206))]

Thread 3 (Thread 0x7fd711284700 (LWP 12235)):
#0  0x00007fd7216beacd in poll () from /lib64/libc.so.6
#1  0x00007fd7202b39a2 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007fd7202b546f in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007fd713848379 in QXcbEventReader::run (this=0xef4510) at qxcbconnection.cpp:1099
#4  0x00007fd721d205cb in QThreadPrivate::start (arg=0xef4510) at thread/qthread_unix.cpp:337
#5  0x00007fd71e148204 in start_thread () from /lib64/libpthread.so.0
#6  0x00007fd7216c771d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fd6fddff700 (LWP 31244)):
#0  0x00007fd7216beacd in poll () from /lib64/libc.so.6
#1  0x00007fd71c7df934 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fd71c7dfa3c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fd721f60c4b in QEventDispatcherGlib::processEvents (this=0x7fd6f80008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007fd721f0548b in QEventLoop::exec (this=this@entry=0x7fd6fddfed30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007fd721d1b79a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007fd721d205cb in QThreadPrivate::start (arg=0x19c3b60) at thread/qthread_unix.cpp:337
#7  0x00007fd71e148204 in start_thread () from /lib64/libpthread.so.0
#8  0x00007fd7216c771d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fd713bca840 (LWP 12206)):
[KCrash Handler]
#5  QScreen::handle (this=0x0) at kernel/qscreen.cpp:85
#6  0x00007fd71385bd75 in QXcbWindow::QXcbWindow (this=0x1b95450, window=0x10dba20) at qxcbwindow.cpp:260
#7  0x00007fd7138498d1 in QXcbIntegration::createPlatformWindow (this=<optimized out>, window=0x10dba20) at qxcbintegration.cpp:194
#8  0x00007fd722232b46 in QWindowPrivate::create (this=0x10dd570, recursive=recursive@entry=false) at kernel/qwindow.cpp:395
#9  0x00007fd722232d2b in QWindow::create (this=this@entry=0x10dba20) at kernel/qwindow.cpp:539
#10 0x00007fd722235768 in QWindow::setVisible (this=this@entry=0x10dba20, visible=visible@entry=true) at kernel/qwindow.cpp:475
#11 0x00007fd7227e72b6 in QWidgetPrivate::show_sys (this=this@entry=0xf4afc0) at kernel/qwidget.cpp:7858
#12 0x00007fd7227ee586 in QWidgetPrivate::show_helper (this=this@entry=0xf4afc0) at kernel/qwidget.cpp:7787
#13 0x00007fd7227f053a in QWidget::setVisible (this=0x7fff2a4d5fd0, visible=<optimized out>) at kernel/qwidget.cpp:8086
#14 0x00000000004293dd in MainWindow::xshapeOpenWindow (this=0x7fff2a4d5fd0) at /var/tmp/portage/kde-misc/yakuake-5.9999/work/yakuake-5.9999/app/mainwindow.cpp:1123
#15 0x00007fd721f38074 in QMetaObject::activate (sender=sender@entry=0x7fff2a4d6068, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3716
#16 0x00007fd721f38717 in QMetaObject::activate (sender=sender@entry=0x7fff2a4d6068, m=m@entry=0x7fd72213d700 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3582
#17 0x00007fd721fb8ee0 in QTimer::timeout (this=this@entry=0x7fff2a4d6068) at .moc/moc_qtimer.cpp:192
#18 0x00007fd721f45a62 in QTimer::timerEvent (this=0x7fff2a4d6068, e=<optimized out>) at kernel/qtimer.cpp:247
#19 0x00007fd721f38d0c in QObject::event (this=0x7fff2a4d6068, e=<optimized out>) at kernel/qobject.cpp:1226
#20 0x00007fd7227b18bc in QApplicationPrivate::notify_helper (this=this@entry=0xecb910, receiver=receiver@entry=0x7fff2a4d6068, e=e@entry=0x7fff2a4d5c20) at kernel/qapplication.cpp:3720
#21 0x00007fd7227b673e in QApplication::notify (this=0x7fff2a4d5fa0, receiver=0x7fff2a4d6068, e=0x7fff2a4d5c20) at kernel/qapplication.cpp:3503
#22 0x00007fd721f075fd in QCoreApplication::notifyInternal (this=0x7fff2a4d5fa0, receiver=0x7fff2a4d6068, event=event@entry=0x7fff2a4d5c20) at kernel/qcoreapplication.cpp:935
#23 0x00007fd721f6060d in sendEvent (event=0x7fff2a4d5c20, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#24 QTimerInfoList::activateTimers (this=0xf0cea0) at kernel/qtimerinfo_unix.cpp:635
#25 0x00007fd721f60941 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:177
#26 0x00007fd71c7df754 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007fd71c7df998 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007fd71c7dfa3c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#29 0x00007fd721f60c2c in QEventDispatcherGlib::processEvents (this=0xf10750, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#30 0x00007fd721f0548b in QEventLoop::exec (this=this@entry=0x7fff2a4d5e80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#31 0x00007fd721f0cedf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#32 0x00007fd7222270dc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1507
#33 0x00007fd7227adf95 in QApplication::exec () at kernel/qapplication.cpp:2956
#34 0x0000000000421682 in main (argc=1, argv=<optimized out>) at /var/tmp/portage/kde-misc/yakuake-5.9999/work/yakuake-5.9999/app/main.cpp:73

Possible duplicates by query: bug 339922, bug 339298.

Reported using DrKonqi
Comment 1 Eike Hein 2015-03-14 00:02:12 UTC
Crash ends in Qt's QScreen. I'll show this to one of our guys who knows QScreen a bit, but ultimately this is a Qt bug.
Comment 2 Christoph Cullmann 2015-10-05 11:53:41 UTC
This is one of the many incarnations of:

https://bugreports.qt.io/browse/QTBUG-42985
Comment 3 Nate Graham 2021-02-08 19:29:13 UTC

*** This bug has been marked as a duplicate of bug 341497 ***