Bug 197171

Summary: Plasma crashes when configuring adjustable-clock
Product: [Unmaintained] plasma4 Reporter: Bob K <metamorfozis>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: aseigo, Chaosspawn23, emdeck, gdarecki, hippich, jan.rauberg, john_douberro, mahasamoot, meetkrish, olaf, rdieter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bob K 2009-06-19 17:55:10 UTC
Application that crashed: plasma-desktop
Version of the application: 0.3
KDE Version: 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2))
Qt Version: 4.5.0
Operating System: Linux 2.6.30-9-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
I have added adjustable-clock to my desktop, and tried to right click -> configure adjustable clock.
That's all :|

 -- Backtrace:
Application: Plasma Workspace (kdeinit), signal: Segmentation fault
[Current thread is 0 (LWP 4027)]

Thread 4 (Thread 0xac064b90 (LWP 4034)):
#0  0x00c27422 in __kernel_vsyscall ()
#1  0x00b980e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x00e0a2ed in __pthread_cond_wait (cond=0x9257998, mutex=0x9257980) at forward.c:139
#3  0x001679b2 in QWaitCondition::wait (this=0x925cca0, mutex=0x925cc9c, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  0x00728152 in QHostInfoAgent::run (this=0x925cc90) at kernel/qhostinfo.cpp:260
#5  0x0016696e in QThreadPrivate::start (arg=0x925cc90) at thread/qthread_unix.cpp:189
#6  0x00b944ff in start_thread (arg=0xac064b90) at pthread_create.c:297
#7  0x00dfb49e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xaabddb90 (LWP 4578)):
#0  0x00c27422 in __kernel_vsyscall ()
#1  0x00b98412 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0x00e0a344 in __pthread_cond_timedwait (cond=0xa4bd7c8, mutex=0xa4bd7b0, abstime=0xaabdd35c) at forward.c:152
#3  0x02322ae3 in metronom_sync_loop (this=0xa4bd768) at metronom.c:870
#4  0x00b944ff in start_thread (arg=0xaabddb90) at pthread_create.c:297
#5  0x00dfb49e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xaa3dcb90 (LWP 4579)):
#0  QThreadData::current () at thread/qthread_unix.cpp:104
#1  0x0028681f in postEventSourcePrepare (s=0xa437b38, timeout=0x0) at kernel/qeventdispatcher_glib.cpp:186
#2  0x00286889 in postEventSourceCheck (source=0xa437b38) at kernel/qeventdispatcher_glib.cpp:202
#3  0x057fe6f6 in IA__g_main_context_check (context=0x9ea4db8, max_priority=2147483647, fds=0xa3fa970, n_fds=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2323
#4  0x057fefdd in g_main_context_iterate (context=0x9ea4db8, block=1, dispatch=1, self=0xa477d80) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2445
#5  0x057ff268 in IA__g_main_context_iteration (context=0x9ea4db8, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#6  0x00286457 in QEventDispatcherGlib::processEvents (this=0xa3c9450, flags={i = -1438793112}) at kernel/qeventdispatcher_glib.cpp:325
#7  0x0025906a in QEventLoop::processEvents (this=0xaa3dc2e0, flags={i = -1438793048}) at kernel/qeventloop.cpp:149
#8  0x002594aa in QEventLoop::exec (this=0xaa3dc2e0, flags={i = -1438792984}) at kernel/qeventloop.cpp:200
#9  0x00163639 in QThread::exec (this=0xa3ff1c8) at thread/qthread.cpp:481
#10 0x022c920a in Phonon::Xine::XineThread::run (this=0xa3ff1c8) at /build/buildd/phonon-4.3.1/xine/xinethread.cpp:143
#11 0x0016696e in QThreadPrivate::start (arg=0xa3ff1c8) at thread/qthread_unix.cpp:189
#12 0x00b944ff in start_thread (arg=0xaa3dcb90) at pthread_create.c:297
#13 0x00dfb49e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7fffa10 (LWP 4027)):
[KCrash Handler]
#6  0x080532c8 in QString::shared_null ()
#7  0x0026cd76 in QObject::connect (sender=0xa490cf8, signal=0x20ec128 "applyClicked()", receiver=0xa56da38, method=0x20ec116 "configAccepted()", type=Qt::AutoConnection) at kernel/qobject.cpp:2446
#8  0x020def95 in ClockApplet::createConfigurationInterface (this=0xa56da38, parent=0xa490cf8) at /build/buildd/kdebase-workspace-4.2.90/libs/plasmaclock/clockapplet.cpp:402
#9  0x027bec63 in ?? () from /usr/lib/kde4/plasma_applet_adjustableclock.so
#10 0x05cf905e in Plasma::AppletPrivate::generateGenericConfigDialog (this=0xa31ed10) at /build/buildd/kde4libs-4.2.90/plasma/applet.cpp:1619
#11 0x05cf9b1d in Plasma::Applet::showConfigurationInterface (this=0xa56da38) at /build/buildd/kde4libs-4.2.90/plasma/applet.cpp:1569
#12 0x05cfce03 in Plasma::Applet::qt_metacall (this=0xa56da38, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbfceaa2c) at /build/buildd/kde4libs-4.2.90/obj-i486-linux-gnu/plasma/applet.moc:144
#13 0x05d4473a in Plasma::PopupApplet::qt_metacall (this=0xa56da38, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbfceaa2c)
    at /build/buildd/kde4libs-4.2.90/obj-i486-linux-gnu/plasma/popupapplet.moc:75
#14 0x020e022a in ClockApplet::qt_metacall (this=0xa56da38, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbfceaa2c)
    at /build/buildd/kdebase-workspace-4.2.90/obj-i486-linux-gnu/libs/plasmaclock/clockapplet.moc:79
#15 0x027bd97a in ?? () from /usr/lib/kde4/plasma_applet_adjustableclock.so
#16 0x00270ca8 in QMetaObject::activate (sender=0x9fff3f8, from_signal_index=5, to_signal_index=6, argv=0xbfceaa2c) at kernel/qobject.cpp:3069
#17 0x002710e0 in QMetaObject::activate (sender=0x9fff3f8, m=0x1d70008, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfceaa2c) at kernel/qobject.cpp:3163
#18 0x014dd891 in QAction::triggered (this=0x9fff3f8, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#19 0x014dee0f in QAction::activate (this=0x9fff3f8, event=QAction::Trigger) at kernel/qaction.cpp:1160
#20 0x0195901c in QMenuPrivate::activateCausedStack (this=0xa83d7f8, causedStack=@0xbfceab08, action=0x9fff3f8, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:962
#21 0x0195f76b in QMenuPrivate::activateAction (this=0xa83d7f8, action=0x9fff3f8, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1058
#22 0x01960242 in QMenu::mouseReleaseEvent (this=0xbfceba34, e=0xbfceb148) at widgets/qmenu.cpp:2252
#23 0x011e7555 in KMenu::mouseReleaseEvent (this=0xbfceba34, e=0xbfceb148) at /build/buildd/kde4libs-4.2.90/kdeui/widgets/kmenu.cpp:456
#24 0x0153ab43 in QWidget::event (this=0xbfceba34, event=0xbfceb148) at kernel/qwidget.cpp:7516
#25 0x01962629 in QMenu::event (this=0xbfceba34, e=0xbfceb148) at widgets/qmenu.cpp:2351
#26 0x014e3e9c in QApplicationPrivate::notify_helper (this=0x8c7f290, receiver=0xbfceba34, e=0xbfceb148) at kernel/qapplication.cpp:4084
#27 0x014ecb11 in QApplication::notify (this=0x8c4e5c8, receiver=0xbfceba34, e=0xbfceb148) at kernel/qapplication.cpp:3786
#28 0x010fee8d in KApplication::notify (this=0x8c4e5c8, receiver=0xbfceba34, event=0xbfceb148) at /build/buildd/kde4libs-4.2.90/kdeui/kernel/kapplication.cpp:302
#29 0x0025aa3b in QCoreApplication::notifyInternal (this=0x8c4e5c8, receiver=0xbfceba34, event=0xbfceb148) at kernel/qcoreapplication.cpp:602
#30 0x014ebb7e in QApplicationPrivate::sendMouseEvent (receiver=0xbfceba34, event=0xbfceb148, alienWidget=0x0, nativeWidget=0xbfceba34, buttonDown=0x1d8e200, lastMouseReceiver=@0x1d8e204)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#31 0x0155bc06 in QETWidget::translateMouseEvent (this=0xbfceba34, event=0xbfceb78c) at kernel/qapplication_x11.cpp:4359
#32 0x0155aca7 in QApplication::x11ProcessEvent (this=0x8c4e5c8, event=0xbfceb78c) at kernel/qapplication_x11.cpp:3421
#33 0x01585c6a in x11EventSourceDispatch (s=0x8c82070, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x057fbb88 in IA__g_main_context_dispatch (context=0x8c81298) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#35 0x057ff0eb in g_main_context_iterate (context=0x8c81298, block=1, dispatch=1, self=0x8c7e738) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#36 0x057ff268 in IA__g_main_context_iteration (context=0x8c81298, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#37 0x00286438 in QEventDispatcherGlib::processEvents (this=0x8c7e590, flags={i = -1076971192}) at kernel/qeventdispatcher_glib.cpp:323
#38 0x01585365 in QGuiEventDispatcherGlib::processEvents (this=0x8c7e590, flags={i = -1076971144}) at kernel/qguieventdispatcher_glib.cpp:202
#39 0x0025906a in QEventLoop::processEvents (this=0xbfceb9ec, flags={i = -1076971080}) at kernel/qeventloop.cpp:149
#40 0x002594aa in QEventLoop::exec (this=0xbfceb9ec, flags={i = -1076971020}) at kernel/qeventloop.cpp:200
#41 0x01962361 in QMenu::exec (this=0xbfceba34, p=@0xbfceba8c, action=0x0) at widgets/qmenu.cpp:1991
#42 0x05d0e28c in Plasma::ContainmentPrivate::showContextMenu (this=0x8eba5f0, point=@0xbfceba78, screenPos=@0xbfceba8c, includeApplet=true)
    at /build/buildd/kde4libs-4.2.90/plasma/containment.cpp:633
#43 0x05d0e385 in Plasma::Containment::contextMenuEvent (this=0x8ebbaa0, event=0xbfcebfdc) at /build/buildd/kde4libs-4.2.90/plasma/containment.cpp:504
#44 0x01b19c28 in QGraphicsItem::sceneEvent (this=0x8ebbaa8, event=0xbfcebfdc) at graphicsview/qgraphicsitem.cpp:4762
#45 0x01b66f9f in QGraphicsWidget::sceneEvent (this=0x8ebbaa0, event=0xbfcebfdc) at graphicsview/qgraphicswidget.cpp:1089
#46 0x01b3e1cc in QGraphicsScenePrivate::sendEvent (this=0x8d1aab8, item=0x8ebbaa8, event=0xbfcebfdc) at graphicsview/qgraphicsscene.cpp:1150
#47 0x01b486ef in QGraphicsScene::contextMenuEvent (this=0x8d53390, contextMenuEvent=0xbfcebfdc) at graphicsview/qgraphicsscene.cpp:3809
#48 0x01b4750a in QGraphicsScene::event (this=0x8d53390, event=0xbfcebfdc) at graphicsview/qgraphicsscene.cpp:3619
#49 0x014e3e9c in QApplicationPrivate::notify_helper (this=0x8c7f290, receiver=0x8d53390, e=0xbfcebfdc) at kernel/qapplication.cpp:4084
#50 0x014ec19e in QApplication::notify (this=0x8c4e5c8, receiver=0x8d53390, e=0xbfcebfdc) at kernel/qapplication.cpp:3631
#51 0x010fee8d in KApplication::notify (this=0x8c4e5c8, receiver=0x8d53390, event=0xbfcebfdc) at /build/buildd/kde4libs-4.2.90/kdeui/kernel/kapplication.cpp:302
#52 0x0025aa3b in QCoreApplication::notifyInternal (this=0x8c4e5c8, receiver=0x8d53390, event=0xbfcebfdc) at kernel/qcoreapplication.cpp:602
#53 0x01b55b46 in QGraphicsView::contextMenuEvent (this=0x9324f98, event=0xbfcec5d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#54 0x0153b22c in QWidget::event (this=0x9324f98, event=0xbfcec5d0) at kernel/qwidget.cpp:7675
#55 0x01914993 in QFrame::event (this=0x9324f98, e=0xbfcec5d0) at widgets/qframe.cpp:559
#56 0x019b494f in QAbstractScrollArea::viewportEvent (this=0x9324f98, e=0xbfcea454) at widgets/qabstractscrollarea.cpp:962
#57 0x01b58102 in QGraphicsView::viewportEvent (this=0x9324f98, event=0xbfcec5d0) at graphicsview/qgraphicsview.cpp:2933
#58 0x019b6f55 in QAbstractScrollAreaFilter::eventFilter (this=0x9324698, o=0x946daf0, e=0xbfcec5d0) at widgets/qabstractscrollarea_p.h:100
#59 0x00259c5a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8c7f290, receiver=0x946daf0, event=0xbfcec5d0) at kernel/qcoreapplication.cpp:718
#60 0x014e3e7a in QApplicationPrivate::notify_helper (this=0x8c7f290, receiver=0x946daf0, e=0xbfcec5d0) at kernel/qapplication.cpp:4080
#61 0x014ec6dd in QApplication::notify (this=0x8c4e5c8, receiver=0x946daf0, e=0xbfcec5d0) at kernel/qapplication.cpp:3873
#62 0x010fee8d in KApplication::notify (this=0x8c4e5c8, receiver=0x946daf0, event=0xbfcec5d0) at /build/buildd/kde4libs-4.2.90/kdeui/kernel/kapplication.cpp:302
#63 0x0025aa3b in QCoreApplication::notifyInternal (this=0x8c4e5c8, receiver=0x946daf0, event=0xbfcec5d0) at kernel/qcoreapplication.cpp:602
#64 0x014eefee in QCoreApplication::sendSpontaneousEvent (receiver=0x946daf0, event=0xbfcea454) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#65 0x0155c167 in QETWidget::translateMouseEvent (this=0x9324f98, event=0xbfcecbec) at kernel/qapplication_x11.cpp:4431
#66 0x0155aca7 in QApplication::x11ProcessEvent (this=0x8c4e5c8, event=0xbfcecbec) at kernel/qapplication_x11.cpp:3421
#67 0x01585c6a in x11EventSourceDispatch (s=0x8c82070, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#68 0x057fbb88 in IA__g_main_context_dispatch (context=0x8c81298) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#69 0x057ff0eb in g_main_context_iterate (context=0x8c81298, block=1, dispatch=1, self=0x8c7e738) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#70 0x057ff268 in IA__g_main_context_iteration (context=0x8c81298, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#71 0x00286438 in QEventDispatcherGlib::processEvents (this=0x8c7e590, flags={i = -1076965976}) at kernel/qeventdispatcher_glib.cpp:323
#72 0x01585365 in QGuiEventDispatcherGlib::processEvents (this=0x8c7e590, flags={i = -1076965928}) at kernel/qguieventdispatcher_glib.cpp:202
#73 0x0025906a in QEventLoop::processEvents (this=0xbfcece50, flags={i = -1076965864}) at kernel/qeventloop.cpp:149
#74 0x002594aa in QEventLoop::exec (this=0xbfcece50, flags={i = -1076965800}) at kernel/qeventloop.cpp:200
#75 0x0025b959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#76 0x014e3d17 in QApplication::exec () at kernel/qapplication.cpp:3553
#77 0x01dc0820 in kdemain (argc=1, argv=0x8c66ac8) at /build/buildd/kdebase-workspace-4.2.90/plasma/shells/desktop/main.cpp:50
#78 0x0804e1c0 in launch (argc=1, _name=0x8c66adc "/usr/bin/plasma-desktop", args=0x8c66af4 "", cwd=0x0, envc=0, envs=0x8c66af8 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x80512d0 "0") at /build/buildd/kde4libs-4.2.90/kinit/kinit.cpp:671
#79 0x0804e99d in handle_launcher_request (sock=7, who=<value optimized out>) at /build/buildd/kde4libs-4.2.90/kinit/kinit.cpp:1163
#80 0x0804ef25 in handle_requests (waitForPid=0) at /build/buildd/kde4libs-4.2.90/kinit/kinit.cpp:1356
#81 0x0804fb0a in main (argc=2, argv=0xbfced644, envp=0xbfced650) at /build/buildd/kde4libs-4.2.90/kinit/kinit.cpp:1783

Reported using DrKonqi
Comment 1 Aaron J. Seigo 2009-06-24 20:36:36 UTC
libplasmaclock is not actually a public library and binary compatibility may change from release to release. as a third party module, linking against it is rather risky :)

perhaps we can make it BC stable for 4.4 however.

in any case, in the code it is reimplementing createConfigurationInterface; it should actually be reimplementing createClockConfigurationInterface and not calling ClockApplet::createConfigurationInterface.
Comment 2 Michał D. (Emdek) 2009-06-24 22:57:36 UTC
Strange, I'm using KDE 4.3 beta 2 right now and it doesn't crash for me (it works good also for my friend that uses trunk)...

I'm using own implementation of createConfigurationInterface to avoid strange order of pages, "Advanced" looks strange if it is placed before "General". ;-)
And I can't workaround this by inserting own pages in right place (is it possible to insert page also with icon, like in addPage method?) because "standard" pages are added after createClockConfigurationInterface is executed (maybe this could be changed?)...
Comment 3 Dario Andres 2009-07-03 15:44:55 UTC
*** Bug 198737 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-08-06 03:47:42 UTC
*** Bug 202731 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-08-30 17:09:45 UTC
*** Bug 205642 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2009-09-01 23:10:15 UTC
*** Bug 205759 has been marked as a duplicate of this bug. ***
Comment 7 Michał D. (Emdek) 2009-09-03 15:10:02 UTC
Could someone check if it still happens in new version (2.2)?
Comment 8 Bob K 2009-09-04 11:45:23 UTC
(In reply to comment #7)
> Could someone check if it still happens in new version (2.2)?


I have built from source, from here:
http://www.kde-look.org/content/show.php/Adjustable+Clock?content=92825

I'm on:
Qt: 4.5.2
KDE: 4.3.1 (KDE 4.3.1)
kde4-config: 1.0

After exit/kbuildsycoca/add widget/rightclick adjust... it crashed again.
But, for second time the config dialog just come up. I will test it more, then come back to tell the results. 

Anyways, thank you for fixing it.
Comment 9 Dario Andres 2009-09-12 16:06:15 UTC
*** Bug 207149 has been marked as a duplicate of this bug. ***
Comment 10 Dario Andres 2009-09-24 23:41:42 UTC
*** Bug 208337 has been marked as a duplicate of this bug. ***
Comment 11 Bob K 2009-09-25 13:37:50 UTC
(In reply to comment #7)
> Could someone check if it still happens in new version (2.2)?

Works fine here, thank you.
Comment 12 Michał D. (Emdek) 2009-09-25 15:25:10 UTC
(In reply to comment #11)
> (In reply to comment #7)
> > Could someone check if it still happens in new version (2.2)?
> 
> Works fine here, thank you.

Thanks for testing. :-)
Comment 13 Dario Andres 2009-11-06 03:41:46 UTC
*** Bug 212685 has been marked as a duplicate of this bug. ***
Comment 14 Dario Andres 2009-12-13 23:26:07 UTC
*** Bug 218573 has been marked as a duplicate of this bug. ***