Bug 340658

Summary: "System Settings" crashes when click at "Hardware - Display and Monitor"
Product: [Plasma] KScreen Reporter: Steffen Lehmann <steffen>
Component: commonAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED DUPLICATE    
Severity: crash CC: dvratil, steffen
Priority: NOR Keywords: drkonqi
Version: 1.0.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Steffen Lehmann 2014-11-05 08:20:32 UTC
Application: systemsettings (4.11.12)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.6-2-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
I opened "System Settings" and clicked at "Hardware - Display and Monitor"

- Custom settings of the application:
I have a customized xorg.conf file, supporting 4 monitors:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 331.67  (buildmeister@swio-display-x86-rhel47-08)  Fri Apr  4 12:26:16 PDT 2014


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen2" 0 0
    Screen      1  "Screen1" LeftOf "Screen2"
    Screen      2  "Screen3" RightOf "Screen2"
    Screen      3  "Screen4" RightOf "Screen3"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "1"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "DELL-L"
    VendorName     "DELL Corporation"
    ModelName      "DELL 2001FP"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "DELL-R"
    VendorName     "DELL Corporation"
    ModelName      "DELL 2001FP"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "SAMSUNG-L"
    VendorName     "SAMSUNG Corporation"
    ModelName      "204B"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "SAMSUNG-R"
    VendorName     "SAMSUNG Corporation"
    ModelName      "204B"
    HorizSync       31.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "GKSlot0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 290"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "GKSlot1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 290"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Device"
    Identifier     "MiniSlot0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 290"
    BusID          "PCI:4:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "MiniSlot1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 290"
    BusID          "PCI:4:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "GKSlot0"
    Monitor        "DELL-L"
    DefaultDepth    16
    SubSection     "Display"
        Depth       16
        Modes      "nvidia-auto-select" "1600x1200" "1280x1024" "1024x768"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "MiniSlot0"
    Monitor        "SAMSUNG-L"
    DefaultDepth    16
    SubSection     "Display"
        Depth       16
        Modes      "nvidia-auto-select" "1600x1200" "1280x1024" "1024x768"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen3"
    Device         "MiniSlot1"
    Monitor        "SAMSUNG-R"
    DefaultDepth    16
    SubSection     "Display"
        Depth       16
        Modes      "nvidia-auto-select" "1600x1200" "1280x1024" "1024x768"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen4"
    Device         "GKSlot1"
    Monitor        "DELL-R"
    DefaultDepth    16
    SubSection     "Display"
        Depth       16
        Modes      "nvidia-auto-select" "1600x1200" "1280x1024" "1024x768"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

The crash can be reproduced every time.

-- Backtrace:
Application: Systemeinstellungen (systemsettings), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcbe76af800 (LWP 9346))]

Thread 3 (Thread 0x7fcbc8308700 (LWP 9347)):
#0  0x00007fcbe46b93cd in poll () at /lib64/libc.so.6
#1  0x00007fcbdd663be4 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fcbdd663cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fcbe4e3c0de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#4  0x00007fcbe4e0de6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#5  0x00007fcbe4e0e165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#6  0x00007fcbe4d0b0bf in QThread::exec() () at /usr/lib64/libQtCore.so.4
#7  0x00007fcbe4def783 in  () at /usr/lib64/libQtCore.so.4
#8  0x00007fcbe4d0d79f in  () at /usr/lib64/libQtCore.so.4
#9  0x00007fcbdd92e0a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007fcbe46c17fd in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fcbc76c2700 (LWP 9349)):
#0  0x00007fcbdd93205f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fcbe1f638cb in  () at /usr/lib64/libQtScript.so.4
#2  0x00007fcbe1f63909 in  () at /usr/lib64/libQtScript.so.4
#3  0x00007fcbdd92e0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fcbe46c17fd in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fcbe76af800 (LWP 9346)):
[KCrash Handler]
#5  0x00007fcbe4e28340 in QObject::setParent(QObject*) () at /usr/lib64/libQtCore.so.4
#6  0x00007fcbc78f1225 in  () at /usr/lib64/kde4/kcm_kscreen.so
#7  0x00007fcbc78f8db0 in  () at /usr/lib64/kde4/kcm_kscreen.so
#8  0x00007fcbc78f923f in  () at /usr/lib64/kde4/kcm_kscreen.so
#9  0x00007fcbc78f9654 in  () at /usr/lib64/kde4/kcm_kscreen.so
#10 0x00007fcbc78ecabb in  () at /usr/lib64/kde4/kcm_kscreen.so
#11 0x00007fcbc78ee7cb in  () at /usr/lib64/kde4/kcm_kscreen.so
#12 0x00007fcbe55fa3e3 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () at /usr/lib64/libkdecore.so.5
#13 0x00007fcbe6e0aede in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () at /usr/lib64/libkcmutils.so.4
#14 0x00007fcbe6e100e3 in  () at /usr/lib64/libkcmutils.so.4
#15 0x00007fcbe6e107f5 in KCModuleProxy::realModule() const () at /usr/lib64/libkcmutils.so.4
#16 0x00007fcbe6e10bf3 in KCModuleProxy::showEvent(QShowEvent*) () at /usr/lib64/libkcmutils.so.4
#17 0x00007fcbe5ae99a5 in QWidget::event(QEvent*) () at /usr/lib64/libQtGui.so.4
#18 0x00007fcbe5a9a76c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#19 0x00007fcbe5aa0cad in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#20 0x00007fcbe67b2bda in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#21 0x00007fcbe4e0f2ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#22 0x00007fcbe5ae710f in QWidgetPrivate::show_helper() () at /usr/lib64/libQtGui.so.4
#23 0x00007fcbe5ae6f7a in QWidgetPrivate::showChildren(bool) () at /usr/lib64/libQtGui.so.4
#24 0x00007fcbe5ae700f in QWidgetPrivate::show_helper() () at /usr/lib64/libQtGui.so.4
#25 0x00007fcbe5ae8db4 in QWidget::setVisible(bool) () at /usr/lib64/libQtGui.so.4
#26 0x00007fcbe5ae6f8e in QWidgetPrivate::showChildren(bool) () at /usr/lib64/libQtGui.so.4
#27 0x00007fcbe5ae700f in QWidgetPrivate::show_helper() () at /usr/lib64/libQtGui.so.4
#28 0x00007fcbe5ae8db4 in QWidget::setVisible(bool) () at /usr/lib64/libQtGui.so.4
#29 0x00007fcbe5accb92 in QStackedLayout::setCurrentIndex(int) () at /usr/lib64/libQtGui.so.4
#30 0x00007fcbe67dec8e in  () at /usr/lib64/libkdeui.so.5
#31 0x00007fcbe4e231fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#32 0x00007fcbe5fde087 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () at /usr/lib64/libQtGui.so.4
#33 0x00007fcbe5fe36c1 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () at /usr/lib64/libQtGui.so.4
#34 0x00007fcbe5fe3e93 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () at /usr/lib64/libQtGui.so.4
#35 0x00007fcbe5fdeed8 in QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () at /usr/lib64/libQtGui.so.4
#36 0x00007fcbe5fde2b7 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () at /usr/lib64/libQtGui.so.4
#37 0x00007fcbe67dde2e in  () at /usr/lib64/libkdeui.so.5
#38 0x00007fcbe67de8e5 in  () at /usr/lib64/libkdeui.so.5
#39 0x00007fcbe4e231fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#40 0x00007fcbe67e35bb in KPageWidgetModel::addPage(KPageWidgetItem*) () at /usr/lib64/libkdeui.so.5
#41 0x00007fcbe6be8495 in ModuleView::addModule(KCModuleInfo*) () at /usr/lib64/libsystemsettingsview.so.2
#42 0x00007fcbe6be8745 in ModuleView::loadModule(QModelIndex) () at /usr/lib64/libsystemsettingsview.so.2
#43 0x00007fcbc8dccf88 in  () at /usr/lib64/kde4/icon_mode.so
#44 0x00007fcbe4e231fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#45 0x00007fcbe5f8cb05 in QAbstractItemView::activated(QModelIndex const&) () at /usr/lib64/libQtGui.so.4
#46 0x00007fcbe5f8cd80 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libQtGui.so.4
#47 0x00007fcbe5fb5f1e in QListView::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libQtGui.so.4
#48 0x00007fcbe678c6a1 in KCategorizedView::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libkdeui.so.5
#49 0x00007fcbe5ae9c0a in QWidget::event(QEvent*) () at /usr/lib64/libQtGui.so.4
#50 0x00007fcbe5e865ee in QFrame::event(QEvent*) () at /usr/lib64/libQtGui.so.4
#51 0x00007fcbe5f95e13 in QAbstractItemView::viewportEvent(QEvent*) () at /usr/lib64/libQtGui.so.4
#52 0x00007fcbe4e0f416 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#53 0x00007fcbe5a9a74c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#54 0x00007fcbe5aa0dea in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#55 0x00007fcbe67b2bda in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#56 0x00007fcbe4e0f2ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#57 0x00007fcbe5aa05e3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib64/libQtGui.so.4
#58 0x00007fcbe5b11c9b in  () at /usr/lib64/libQtGui.so.4
#59 0x00007fcbe5b1070c in QApplication::x11ProcessEvent(_XEvent*) () at /usr/lib64/libQtGui.so.4
#60 0x00007fcbe5b375c2 in  () at /usr/lib64/libQtGui.so.4
#61 0x00007fcbdd663a04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#62 0x00007fcbdd663c48 in  () at /usr/lib64/libglib-2.0.so.0
#63 0x00007fcbdd663cec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#64 0x00007fcbe4e3c0be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#65 0x00007fcbe5b37676 in  () at /usr/lib64/libQtGui.so.4
#66 0x00007fcbe4e0de6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#67 0x00007fcbe4e0e165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#68 0x00007fcbe4e135b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#69 0x000000000040b4bb in  ()
#70 0x00007fcbe45fdb05 in __libc_start_main () at /lib64/libc.so.6
#71 0x000000000040b50c in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2014-11-05 18:13:43 UTC
Could you please install -debug packages for kscreen and libkscreen to get a better backtrace?
Comment 2 Steffen Lehmann 2014-11-11 08:10:31 UTC
Created attachment 89527 [details]
New crash information added by DrKonqi

systemsettings (4.11.12) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed:
I opened "System Settings" and clicked at "Hardware - Display and Monitor"
-debug packages for kscreen and libkscreen are installed now.

-- Backtrace (Reduced):
#5  0x00007f9b72787340 in QObject::setParent(QObject*) () at /usr/lib64/libQtCore.so.4
#6  0x00007f9b55264225 in QMLScreen::setConfig(KScreen::Config*) (this=0x1f3b090, config=<optimized out>) at /usr/src/debug/kscreen-1.0.71/kcm/src/declarative/qmlscreen.cpp:356
#7  0x00007f9b5526bdb0 in Widget::setConfig(KScreen::Config*) (this=this@entry=0x1ee25d0, config=0x0) at /usr/src/debug/kscreen-1.0.71/kcm/src/widget.cpp:129
#8  0x00007f9b5526c23f in Widget::loadQml() (this=this@entry=0x1ee25d0) at /usr/src/debug/kscreen-1.0.71/kcm/src/widget.cpp:175
#9  0x00007f9b5526c654 in Widget::Widget(QWidget*) (this=0x1ee25d0, parent=<optimized out>) at /usr/src/debug/kscreen-1.0.71/kcm/src/widget.cpp:109
Comment 3 Steffen Lehmann 2014-11-11 08:16:55 UTC
Created attachment 89529 [details]
New crash information added by DrKonqi

systemsettings (4.11.12) on KDE Platform 4.14.2 using Qt 4.8.6

I don't know why the backtrace above is "reduced", therefore, I try it again:

-- Backtrace (Reduced):
#5  0x00007f96aacd2340 in QObject::setParent(QObject*) () at /usr/lib64/libQtCore.so.4
#6  0x00007f968d7bf225 in QMLScreen::setConfig(KScreen::Config*) (this=0x1dcaca0, config=<optimized out>) at /usr/src/debug/kscreen-1.0.71/kcm/src/declarative/qmlscreen.cpp:356
#7  0x00007f968d7c6db0 in Widget::setConfig(KScreen::Config*) (this=this@entry=0x1d6eb80, config=0x0) at /usr/src/debug/kscreen-1.0.71/kcm/src/widget.cpp:129
#8  0x00007f968d7c723f in Widget::loadQml() (this=this@entry=0x1d6eb80) at /usr/src/debug/kscreen-1.0.71/kcm/src/widget.cpp:175
#9  0x00007f968d7c7654 in Widget::Widget(QWidget*) (this=0x1d6eb80, parent=<optimized out>) at /usr/src/debug/kscreen-1.0.71/kcm/src/widget.cpp:109
Comment 4 Daniel Vrátil 2015-03-06 14:59:54 UTC

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