Bug 336808

Summary: klipper crashes when changing screen resolution
Product: [Unmaintained] klipper Reporter: Jon Burgess <jburgess777>
Component: generalAssignee: Martin Flöser <mgraesslin>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=339306
https://bugs.kde.org/show_bug.cgi?id=336511
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jon Burgess 2014-06-27 20:14:23 UTC
I ran neon5-201406200837.iso in KVM. Once the desktop had loaded I used system settings to change the screen resolution and klipper crashed.

Reproducible: Always

Steps to Reproduce:
1. Open system settings
2. change resolution
3. click OK
Actual Results:  
klipper crashed and desktop restarted. I suspect klipper isn't at fault here but I have know idea which piece of KF5 is really causing the problem.


Program received signal SIGSEGV, Segmentation fault.
0xb6161c38 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x4) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:143
143     ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h: No such file or directory.
(gdb) bt
#0  0xb6161c38 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::data (this=0x4) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:143
#1  0xb61a9735 in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:941
#2  0xb61a97a0 in QScreen::d_func (this=0x0) at kernel/qscreen.h:67
#3  0xb61a88bf in QScreen::handle (this=0x0) at kernel/qscreen.cpp:82
#4  0xb3143641 in QXcbNativeInterface::qPlatformScreenForWindow (window=0x0) at qxcbnativeinterface.cpp:305
#5  0xb3143695 in QXcbNativeInterface::connectionForWindow (this=0x9223a08, window=0x0) at qxcbnativeinterface.cpp:334
#6  0xb314333e in QXcbNativeInterface::nativeResourceForWindow (this=0x9223a08, resourceString=..., window=0x0) at qxcbnativeinterface.cpp:216
#7  0xb756b4dc in QX11Info::connection () at qx11info_x11.cpp:319
#8  0xb275f16f in KdePlatformThemePlugin::__lambda0::operator() (__closure=0xbfd22b80)
    at /build/buildd/project-neon5-frameworkintegration-0.0+git20140620.0311+neon4~f543451~14.04/src/platformtheme/main.cpp:68
#9  0xb275f5f2 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KdePlatformThemePlugin::setupXcbFlush()::__lambda0>::call(KdePlatformThemePlugin::__lambda0, void **) (f=..., arg=0xbfd22c30) at /opt/project-neon5/include/QtCore/qobjectdefs_impl.h:502
#10 0xb275f5df in QtPrivate::Functor<KdePlatformThemePlugin::setupXcbFlush()::__lambda0, 0>::call<QtPrivate::List<>, void>(KdePlatformThemePlugin::__lambda0 &, void *, void **) (f=..., 
    arg=0xbfd22c30) at /opt/project-neon5/include/QtCore/qobjectdefs_impl.h:559
#11 0xb275f5ba in QtPrivate::QFunctorSlotObject<KdePlatformThemePlugin::setupXcbFlush()::__lambda0, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x927d568, r=0x9259800, a=0xbfd22c30, ret=0x0) at /opt/project-neon5/include/QtCore/qobject_impl.h:200
#12 0xb5e0f82c in QtPrivate::QSlotObjectBase::call (this=0x927d568, r=0x9259800, a=0xbfd22c30) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:132
#13 0xb5e0cf72 in QMetaObject::activate (sender=0x9259800, signalOffset=3, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3666
#14 0xb5e0c96c in QMetaObject::activate (sender=0x9259800, m=0xb60b12c4 <QAbstractEventDispatcher::staticMetaObject>, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3546
#15 0xb5e9071b in QAbstractEventDispatcher::aboutToBlock (this=0x9259800) at .moc/moc_qabstracteventdispatcher.cpp:133
#16 0xb5e3d939 in QEventDispatcherGlib::processEvents (this=0x9259800, flags=...) at kernel/qeventdispatcher_glib.cpp:413
#17 0xb317755e in QPAEventDispatcherGlib::processEvents (this=0x9259800, flags=...) at eventdispatchers/qeventdispatcher_glib.cpp:123
#18 0xb5dcd2fb in QEventLoop::processEvents (this=0xbfd22dcc, flags=...) at kernel/qeventloop.cpp:136
#19 0xb5dcd5c2 in QEventLoop::exec (this=0xbfd22dcc, flags=...) at kernel/qeventloop.cpp:212
#20 0xb5dd0b49 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#21 0xb6173a68 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1446
#22 0xb6742067 in QApplication::exec () at kernel/qapplication.cpp:2767
#23 0xb7763661 in kdemain (argc=1, argv=0xbfd22f84) at /build/buildd/project-neon5-plasma-workspace-0.0+git20140620.0313+neon4~6e6cec3~14.04/klipper/main.cpp:93
#24 0x0804873e in main (argc=1, argv=0xbfd22f84) at /build/buildd/project-neon5-plasma-workspace-0.0+git20140620.0313+neon4~6e6cec3~14.04/obj-i686-linux-gnu/klipper/klipper_dummy.cpp:3
(gdb)
Comment 1 Jon Burgess 2014-06-27 21:09:02 UTC
It looks like this might be a QT issue: https://bugreports.qt-project.org/browse/QTBUG-38129
"QGuiApplication::primaryScreen()->handle() is null, causing for instance qt-creator to crash (see attached backtrace). "
This has been marked as a duplicate of: https://bugreports.qt-project.org/browse/QTBUG-32973
Comment 2 Martin Flöser 2014-06-28 05:57:01 UTC
thanks for finding that one