Bug 217935

Summary: Tool for changing resolution in SystemSettings crashes on load [QGraphicsItem::*, QGraphicsScene::addItem, RandRConfig::load, KRandRModule::load]
Product: [Applications] systemsettings Reporter: StEndres
Component: kcm_randrAssignee: Gustavo Pichorim Boiko <gustavo.boiko>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: alexo.tmp, alexo.veto, alfred.menken, andresbajotierra, blurpy, bobmatnike, b_schulz84, cfeck, daniel.winiarski, droptheleash, ecs.eco, holger, judas, l.lunak, o-z, post, rm, thomas.henze, thorsten.guenther, tobias, u.buckesfeld, yorirou
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description StEndres 2009-12-09 00:11:34 UTC
Application that crashed: kcmshell4
Version of the application: 
KDE Version: 4.3.4 (KDE 4.3.4) "release 2"
Qt Version: 4.5.3
Operating System: Linux 2.6.31.5-0.1-desktop i686
Distribution: "openSUSE 11.2 (i586)"

What I was doing when the application crashed:
starting the tool for configuring screens (don't know the exact name in english) out of the systemsettings, crashs. Works fine before KDE 4.3.4. Downgrade to 4.3.1 helps. After reinstalling KDE 4.3.4 same problem occurs again.

There is no possibility to start this tool

 -- Backtrace:
Application: KDE-Kontrollmodul (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  0xb67939d7 in QGraphicsItem::scene() const () from /usr/lib/libQtGui.so.4
#7  0xb67c2eda in QGraphicsScene::addItem(QGraphicsItem*) () from /usr/lib/libQtGui.so.4
#8  0xb24984e6 in RandRConfig::load (this=0x8171778) at /usr/src/debug/kdebase-workspace-4.3.4/kcontrol/randr/randrconfig.cpp:101
#9  0xb248353b in KRandRModule::load (this=0x8279fe8) at /usr/src/debug/kdebase-workspace-4.3.4/kcontrol/randr/krandrmodule.cpp:109
#10 0xb256fa36 in KCMDisplay::load (this=0x81ae780) at /usr/src/debug/kdebase-workspace-4.3.4/kcontrol/hardware/display/display.cpp:85
#11 0xb257098d in KCMDisplay::KCMDisplay (this=0x81ae780, parent=0x81ce210) at /usr/src/debug/kdebase-workspace-4.3.4/kcontrol/hardware/display/display.cpp:59
#12 0xb257166f in KPluginFactory::createInstance<KCMDisplay, QWidget> (parentWidget=0x0, parent=0x81ce210, args=...) at /usr/include/kpluginfactory.h:461
#13 0xb740f6d9 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib/libkdecore.so.5
#14 0xb40e8341 in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () from /usr/lib/libkutils.so.4
#15 0xb40ee24e in ?? () from /usr/lib/libkutils.so.4
#16 0xb40ef4a4 in KCModuleProxy::realModule() const () from /usr/lib/libkutils.so.4
#17 0xb40ef61a in KCModuleProxy::buttons() const () from /usr/lib/libkutils.so.4
#18 0xb40e98b5 in ?? () from /usr/lib/libkutils.so.4
#19 0xb40eaffc in KCMultiDialog::addModule(KCModuleInfo const&, KPageWidgetItem*, QStringList const&) () from /usr/lib/libkutils.so.4
#20 0xb7701019 in kdemain () from /usr/lib/libkdeinit4_kcmshell4.so
#21 0x0804e147 in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2009-12-09 03:22:07 UTC
Dario, looks like the backported memleak fix introduced a regression. Looking at QGraphicsScene::~QGraphicsScene(), all items are already removed/deleted when the scene is deleted, so there is no need to use setParent(scene) on the item; it could even cause the item to be deleted twice.

http://websvn.kde.org/branches/KDE/4.3/kdebase/workspace/kcontrol/randr/randrconfig.cpp?r1=986143&r2=1021730
Comment 2 Dario Andres 2009-12-09 12:36:02 UTC
SVN commit 1060612 by darioandres:

- setParent() was not needed and could cause a crash
  Thanks Christoph for checking it

BUG: 217935


 M  +0 -1      randrconfig.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1060612
Comment 3 Dario Andres 2009-12-09 12:39:48 UTC
SVN commit 1060614 by darioandres:

Backport of:
SVN commit 1060612 by darioandres:

- setParent() was not needed and could cause a crash
  Thanks Christoph for checking it

CCBUG: 217935


 M  +0 -1      randrconfig.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1060614
Comment 4 Dario Andres 2009-12-11 16:20:42 UTC
*** Bug 218283 has been marked as a duplicate of this bug. ***
Comment 5 StEndres 2009-12-14 16:35:49 UTC
I updated my KDE installation. RPM-packet kdebase4-workspace was now created on december, 12th. There is still the same bug. I cannot open displaysettings.

It seems to be the same backtrace. I looked in sources and the deleted line is not in there anymore. Could there be another error?


Application that crashed: systemsettings
Version of the application: 1.0
KDE Version: 4.3.4 (KDE 4.3.4) "release 2"
Qt Version: 4.6.0
Operating System: Linux 2.6.31.5-0.1-default x86_64
Distribution: "openSUSE 11.2 (x86_64)"

 -- Backtrace:
Application: Systemeinstellungen (systemsettings), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f56dc73ef84 in QGraphicsItem::scene() const () from /usr/lib64/libQtGui.so.4
#6  0x00007f56dc77fdb5 in QGraphicsScene::addItem(QGraphicsItem*) () from /usr/lib64/libQtGui.so.4
#7  0x00007f56cde421d1 in RandRConfig::load (this=0xaede30) at /usr/src/debug/kdebase-workspace-4.3.4/kcontrol/randr/randrconfig.cpp:101
#8  0x00007f56cde2feb9 in KRandRModule::load (this=0x9b0300) at /usr/src/debug/kdebase-workspace-4.3.4/kcontrol/randr/krandrmodule.cpp:109
#9  0x00007f56dceedf01 in KCModule::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkdeui.so.5
#10 0x00007f56db5b0209 in QObject::event (this=0x9b0300, e=0x9a60f0) at kernel/qobject.cpp:1260
#11 0x00007f56dc1c187f in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#12 0x00007f56dc16cbcc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#13 0x00007f56dc1731ed in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#14 0x00007f56dce45f26 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#15 0x00007f56db5a053c in QCoreApplication::notifyInternal (this=0x7fffb4350570, receiver=0x9b0300, event=0x9a60f0) at kernel/qcoreapplication.cpp:704
#16 0x00007f56db5a2cb7 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#17 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#18 0x00007f56db5c9fd3 in sendPostedEvents () at kernel/qcoreapplication.h:220
#19 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:276
#20 0x00007f56d8879dde in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f56d887d7a8 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f56d887d8d0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f56db5c9b13 in QEventDispatcherGlib::processEvents (this=0x617550, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#24 0x00007f56dc21994e in ?? () from /usr/lib64/libQtGui.so.4
#25 0x00007f56db59ee52 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#26 0x00007f56db59f22c in QEventLoop::exec (this=0x7fffb43504c0, flags=) at kernel/qeventloop.cpp:201
#27 0x00007f56db5a2f7b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#28 0x000000000040cbd9 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.3.4/systemsettings/app/main.cpp:51

An https://bugs.kde.org berichten
Comment 6 Christoph Feck 2009-12-15 09:14:17 UTC
Possibly. Please set status to REOPENED.
Comment 7 StEndres 2009-12-15 11:02:37 UTC
Cannot change status to REOPENED.
Comment 8 Ben Cooksley 2009-12-15 21:59:16 UTC
*** Bug 218832 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2009-12-18 15:53:46 UTC
*** Bug 219148 has been marked as a duplicate of this bug. ***
Comment 10 Dario Andres 2009-12-18 17:08:16 UTC
*** Bug 219196 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2009-12-23 01:53:15 UTC
*** Bug 219771 has been marked as a duplicate of this bug. ***
Comment 12 Dario Andres 2009-12-26 19:48:29 UTC
*** Bug 220156 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2009-12-26 19:48:32 UTC
*** Bug 220158 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2009-12-27 13:14:11 UTC
*** Bug 220251 has been marked as a duplicate of this bug. ***
Comment 15 Dario Andres 2009-12-27 21:39:45 UTC
To all the people experiencing this crash: which kind of screen setup do you have ? That information could be useful to try to reproduce the crash.

I can't reproduce the crash here using KDE SC 4.4 trunk with a single screen (the notebook's one)
Comment 16 tobias 2009-12-27 21:53:56 UTC
I'm using a single screen on an OpenSuSE 11.2 system with kdebase4-workspace version 4.3.4 release 8.5 from the KDE:KDE4:STABLE repository installed.

I've got a GeForce 7900 GS running with the NVIDIA driver version 190.53, if that is of interest.
Comment 17 Dario Andres 2009-12-28 20:05:46 UTC
*** Bug 220438 has been marked as a duplicate of this bug. ***
Comment 18 Uwe Buckesfeld 2009-12-28 21:42:12 UTC
Notebook LCD,Intel GMA 4500MHD, 13.3 inch, 1366x768, WXGA
Comment 19 Christoph Feck 2009-12-28 21:57:47 UTC
All reports are from openSUSE 11.2 KDE 4.3.4. As far as I know, openSUSE has added its own version of kcm-randr to the 4.3 branch. I cannot explain the crashes otherwise. Please report this bug to the Novell bugzilla at http://bugzilla.novell.com/
Comment 20 Christoph Feck 2009-12-29 14:01:44 UTC
*** Bug 220512 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2009-12-30 01:34:19 UTC
*** Bug 220619 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2009-12-30 13:52:08 UTC
*** Bug 220657 has been marked as a duplicate of this bug. ***
Comment 23 Christoph Feck 2009-12-30 14:03:52 UTC
Bug reported as https://bugzilla.novell.com/show_bug.cgi?id=561164
Comment 24 Dario Andres 2009-12-30 22:11:13 UTC
*** Bug 220730 has been marked as a duplicate of this bug. ***
Comment 25 Christoph Feck 2009-12-31 14:12:58 UTC
*** Bug 220782 has been marked as a duplicate of this bug. ***
Comment 26 Christoph Feck 2010-01-02 20:26:00 UTC
*** Bug 221018 has been marked as a duplicate of this bug. ***
Comment 27 Pino Toscano 2010-01-04 11:33:21 UTC
*** Bug 221216 has been marked as a duplicate of this bug. ***
Comment 28 Christoph Feck 2010-01-05 00:43:02 UTC
*** Bug 221309 has been marked as a duplicate of this bug. ***
Comment 29 Dario Andres 2010-01-18 00:52:02 UTC
*** Bug 223142 has been marked as a duplicate of this bug. ***