Bug 454

Summary: Smooth tasks crash plasma
Product: Mageia Reporter: Dimitris Tsiamasiotis <dtsiamasiotis>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: balcaen.john, dmorganec, sfietkonstantin
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: plasma-applet-smooth-tasks CVE:
Status comment:

Description Dimitris Tsiamasiotis 2011-03-19 16:00:50 CET
I installed smooth tasks from Mageia's official repositories and added the widget to the panel. If I right click on a running program and choose from the menu Advanced->Show A Launcher for "program" When It is not Running and then close this program, the panel crashes and restarts without a launcher of the specific program.
Dimitris Tsiamasiotis 2011-03-19 16:06:11 CET

Source RPM: (none) => plasma-applet-smooth-tasks

Comment 1 Lucien XU 2011-03-20 12:54:52 CET
Confirmed here too (i586)

CC: (none) => sfietkonstantin

Comment 2 D Morgan 2011-03-20 12:56:16 CET
please provide a backtrace.

CC: (none) => dmorganec

Comment 3 John Balcaen 2011-03-20 17:59:51 CET
Hum i can't  reproduce on x86_64.
Could you provide the backtrace as suggested by dmorgan ?
Using gdb --pid $(pidof plasma-desktop) in a shell.
Please install also the -debug packages suggests by gdb.

Also if i'm not wrong for the moment smooth-tasks does not support launcher (but there's a fork of it supporting around.)

CC: (none) => balcaen.john

Comment 4 Lucien XU 2011-03-20 22:10:25 CET
I get a backtrace from KDE crash handler tool
(With all debug packages installed)


Application: Outil de gestion de fenêtres Plasma (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb54aa6d0 (LWP 4066))]

Thread 2 (Thread 0xa84beb70 (LWP 4072)):
#0  0xb5af6f94 in clock_gettime () from /lib/i686/librt.so.1
#1  0xb6cffb25 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb6ddc2b6 in QTimerInfoList::updateCurrentTime (this=0xa7b01834) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb6ddc2fe in QTimerInfoList::timerWait (this=0xa7b01834, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6dda38b in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xa84be15c) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb6dda42d in timerSourcePrepare (source=0x0, timeout=0xb5afaff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb5a41b70 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb5a429e2 in ?? () from /lib/libglib-2.0.so.0
#9  0xb5a430ca in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb6dda18f in QEventDispatcherGlib::processEvents (this=0xa7b00468, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0xb6da932d in QEventLoop::processEvents (this=0xa84be2f0, flags=) at kernel/qeventloop.cpp:149
#12 0xb6da97b9 in QEventLoop::exec (this=0xa84be2f0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb6c9e72b in QThread::exec (this=0x8d46eb8) at thread/qthread.cpp:490
#14 0xb6d86c8d in QInotifyFileSystemWatcherEngine::run (this=0x8d46eb8) at io/qfilesystemwatcher_inotify.cpp:248
#15 0xb6ca1b0a in QThreadPrivate::start (arg=0x8d46eb8) at thread/qthread_unix.cpp:285
#16 0xb6c2be89 in start_thread () from /lib/i686/libpthread.so.0
#17 0xb5fd14ce in clone () from /lib/i686/libc.so.6

Thread 1 (Thread 0xb54aa6d0 (LWP 4066)):
[KCrash Handler]
#7  0xb60199ec in __memcpy_ssse3 () from /lib/i686/libc.so.6
#8  0xb6ca4990 in QByteArray::realloc (this=0xbfb26218, alloc=37) at /usr/include/bits/string3.h:52
#9  0xb6db3b9b in reserve (method=0xaf9e3638 "2expand(TaskItem*,ExpansionDirection)") at ../../src/corelib/tools/qbytearray.h:432
#10 QMetaObject::normalizedSignature (method=0xaf9e3638 "2expand(TaskItem*,ExpansionDirection)") at kernel/qmetaobject.cpp:1007
#11 0xb6dc3467 in QObject::disconnect (sender=0x987a530, signal=0xaf9e3638 "2expand(TaskItem*,ExpansionDirection)", receiver=0x8540818, method=0xaf9e360c "1expandItem(TaskItem*,ExpansionDirection)")
    at kernel/qobject.cpp:2684
#12 0xaf9d9bd7 in SmoothTasks::TaskbarLayout::disconnectItem (this=0x8540818, item=0x987a530) at /usr/src/debug/smooth-tasks-src-wip-2010-11-06/applet/SmoothTasks/TaskbarLayout.cpp:951
#13 0xaf9db00d in SmoothTasks::TaskbarLayout::removeAt (this=0x8540818, index=0) at /usr/src/debug/smooth-tasks-src-wip-2010-11-06/applet/SmoothTasks/TaskbarLayout.cpp:519
#14 0xaf9d998a in SmoothTasks::TaskbarLayout::removeItem (this=0x8540818, item=0x987a530) at /usr/src/debug/smooth-tasks-src-wip-2010-11-06/applet/SmoothTasks/TaskbarLayout.cpp:534
#15 0xaf9be296 in SmoothTasks::Applet::itemRemoved (this=0x85615c0, groupableItem=0x91c86e0) at /usr/src/debug/smooth-tasks-src-wip-2010-11-06/applet/SmoothTasks/Applet.cpp:242
#16 0xaf9c0215 in SmoothTasks::Applet::qt_metacall (this=0x85615c0, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbfb263f8)
    at /usr/src/debug/smooth-tasks-src-wip-2010-11-06/build/applet/Applet.moc:122
#17 0xb6db070d in QMetaObject::metacall (object=0x85615c0, cl=37, idx=72, argv=0xbfb263f8) at kernel/qmetaobject.cpp:237
#18 0xb6dc3c3c in QMetaObject::activate (sender=0x8560f90, m=0xaf986bec, local_signal_index=1, argv=0xbfb263f8) at kernel/qobject.cpp:3272
#19 0xaf96d3c5 in TaskManager::TaskGroup::itemRemoved (this=0x8560f90, _t1=0x91c86e0) at /usr/src/debug/kdebase-workspace-4.6.1/build/libs/taskmanager/taskgroup.moc:159
#20 0xaf96d716 in TaskManager::TaskGroup::remove (this=0x8560f90, item=0x91c86e0) at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/taskgroup.cpp:303
#21 0xaf96da11 in TaskManager::TaskGroup::add (this=0x9572980, item=0x91c86e0) at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/taskgroup.cpp:191
#22 0xaf957385 in TaskManager::GroupManagerPrivate::checkLauncherVisibility (this=0x8562648, launcher=0x91c86e0) at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/groupmanager.cpp:648
#23 0xaf9575e2 in TaskManager::GroupManagerPrivate::launcherVisibilityChange (this=0x8562648) at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/groupmanager.cpp:634
#24 0xaf95b903 in TaskManager::GroupManager::qt_metacall (this=0x84dd0d8, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbfb266b8)
    at /usr/src/debug/kdebase-workspace-4.6.1/build/libs/taskmanager/groupmanager.moc:119
#25 0xb6db070d in QMetaObject::metacall (object=0x84dd0d8, cl=37, idx=20, argv=0xbfb266b8) at kernel/qmetaobject.cpp:237
#26 0xb6dc3c3c in QMetaObject::activate (sender=0x91c86e0, m=0xaf985c24, local_signal_index=0, argv=0xbfb266b8) at kernel/qobject.cpp:3272
#27 0xaf95de1d in TaskManager::LauncherItem::show (this=0x91c86e0, _t1=false) at /usr/src/debug/kdebase-workspace-4.6.1/build/libs/taskmanager/launcheritem.moc:126
#28 0xaf95debf in TaskManager::LauncherItemPrivate::associateDestroyed (this=0x90798f0, obj=0x9a08b08) at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/launcheritem.cpp:127
#29 0xaf95dfc8 in TaskManager::LauncherItem::qt_metacall (this=0x91c86e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfb26838)
    at /usr/src/debug/kdebase-workspace-4.6.1/build/libs/taskmanager/launcheritem.moc:114
#30 0xb6db070d in QMetaObject::metacall (object=0x91c86e0, cl=37, idx=37, argv=0xbfb26838) at kernel/qmetaobject.cpp:237
#31 0xb6dc3c3c in QMetaObject::activate (sender=0x9a08b08, m=0xb6ed92b0, local_signal_index=0, argv=0xbfb26838) at kernel/qobject.cpp:3272
#32 0xb6dc41f5 in QObject::destroyed (this=0x9a08b08, _t1=0x9a08b08) at .moc/release-shared/moc_qobject.cpp:149
#33 0xb6dc512d in QObject::~QObject (this=0x9a08b08, __in_chrg=<value optimized out>) at kernel/qobject.cpp:842
#34 0xaf953470 in TaskManager::AbstractGroupableItem::~AbstractGroupableItem (this=0x9a08b08, __in_chrg=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/abstractgroupableitem.cpp:65
#35 0xaf970bef in TaskManager::TaskItem::~TaskItem (this=0x9a08b08, __in_chrg=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/taskitem.cpp:67
#36 0xaf970c22 in TaskManager::TaskItem::~TaskItem (this=0x9a08b08, __in_chrg=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.6.1/libs/taskmanager/taskitem.cpp:75
#37 0xb6dbbb13 in qDeleteInEventHandler (o=0x0) at kernel/qobject.cpp:3980
#38 0xb6dbdf70 in QObject::event (this=0x9a08b08, e=0x9007218) at kernel/qobject.cpp:1194
#39 0xb627a70c in QApplicationPrivate::notify_helper (this=0x82da268, receiver=0x9a08b08, e=0x9845f40) at kernel/qapplication.cpp:4445
#40 0xb62825a8 in QApplication::notify (this=0x82d38b0, receiver=0x9a08b08, e=0x9845f40) at kernel/qapplication.cpp:4324
#41 0xb74d9ce1 in KApplication::notify (this=0x82d38b0, receiver=0x9a08b08, event=0x9845f40) at /usr/src/debug/kdelibs-4.6.1/kdeui/kernel/kapplication.cpp:311
#42 0xb6daa87e in QCoreApplication::notifyInternal (this=0x82d38b0, receiver=0x9a08b08, event=0x9845f40) at kernel/qcoreapplication.cpp:732
#43 0xb6daebe3 in sendEvent (receiver=0x0, event_type=0, data=0x8251f20) at kernel/qcoreapplication.h:215
#44 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8251f20) at kernel/qcoreapplication.cpp:1373
#45 0xb6daed4c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#46 0xb6dda664 in sendPostedEvents (s=0x82dc500) at kernel/qcoreapplication.h:220
#47 postEventSourceDispatch (s=0x82dc500) at kernel/qeventdispatcher_glib.cpp:277
#48 0xb5a42609 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#49 0xb5a42e10 in ?? () from /lib/libglib-2.0.so.0
#50 0xb5a430ca in g_main_context_iteration () from /lib/libglib-2.0.so.0
#51 0xb6dda141 in QEventDispatcherGlib::processEvents (this=0x82d9888, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#52 0xb633e6da in QGuiEventDispatcherGlib::processEvents (this=0x82d9888, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#53 0xb6da932d in QEventLoop::processEvents (this=0xbfb27094, flags=) at kernel/qeventloop.cpp:149
#54 0xb6da97b9 in QEventLoop::exec (this=0xbfb27094, flags=...) at kernel/qeventloop.cpp:201
#55 0xb6daee20 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#56 0xb62793c4 in QApplication::exec () at kernel/qapplication.cpp:3719
#57 0xb244745a in kdemain (argc=1, argv=0x82c43a8) at /usr/src/debug/kdebase-workspace-4.6.1/plasma/desktop/shell/main.cpp:118
#58 0x0804dca4 in launch (argc=1, _name=0x82c30bc "/usr/bin/plasma-desktop", args=<value optimized out>, cwd=0x0, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x8051f7a "0") at /usr/src/debug/kdelibs-4.6.1/kinit/kinit.cpp:734
#59 0x0804e823 in handle_launcher_request (sock=8, who=<value optimized out>) at /usr/src/debug/kdelibs-4.6.1/kinit/kinit.cpp:1226
#60 0x0804ee97 in handle_requests (waitForPid=<value optimized out>) at /usr/src/debug/kdelibs-4.6.1/kinit/kinit.cpp:1419
#61 0x0804fd09 in main (argc=) at /usr/src/debug/kdelibs-4.6.1/kinit/kinit.cpp:1907
Comment 5 Dimitris Tsiamasiotis 2011-03-20 22:33:34 CET
Users complained for the same bug on kde-look.org where the widget is hosted. The menu option which causes the crash works fine in the regular task manager. I don't think it's related to the launcher support because there's no such feature implemented yet.
Comment 6 John Balcaen 2011-03-21 00:55:18 CET
Well we're agree on the point that smooth-task is not supporting launcher support.
Here you're trying to use the launcher support (since it's wrongly available on the advanced submenu) in smooth tasks.
Using it make plasma crash so i guess we can say that the crash is related to launcher support in smooth tasks as smooth tasks can't handle it currently.
Smooth tasks should probably not show this advanced feature only available in the stock task manager.
@Lucien 
Thks for the backtrace :)
Comment 7 John Balcaen 2011-03-22 02:36:39 CET
Do you still reproduce the crash with the last smooth tasks package which is now providing support for launcher ?
Comment 8 Dimitris Tsiamasiotis 2011-03-22 16:32:06 CET
I can't reproduce the crash.It seems to work fine now.
Comment 9 D Morgan 2011-03-22 18:52:54 CET
tks closing

Status: NEW => RESOLVED
Resolution: (none) => FIXED