Bug 198997 - KTimeTracker 4.3.0 crashes when right clicking on a task
Summary: KTimeTracker 4.3.0 crashes when right clicking on a task
Status: RESOLVED FIXED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: Git (master)
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Thorsten Staerk
URL:
Keywords:
: 199123 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-05 11:46 UTC by G Cohen
Modified: 2009-07-07 20:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G Cohen 2009-07-05 11:46:07 UTC
Application that crashed: ktimetracker
Version of the application: 4.3.0
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.0
Operating System: Linux 2.6.28-13-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
Kubuntu 9.04
KTimeTracker crashes when right clicking on a task

 -- Backtrace:
Application: KTimeTracker (ktimetracker), signal: Segmentation fault
[KCrash Handler]
#6  KXMLGUIFactory::container (this=0x0, containerName=@0xbfa551b8, client=0x9ec1328, useTagName=false) at /build/buildd/kde4libs-4.2.95/kdeui/xmlgui/kxmlguifactory.cpp:453
#7  0xb35edc46 in ?? () from /usr/lib/kde4/ktimetrackerpart.so
#8  0xb35edd3a in ?? () from /usr/lib/kde4/ktimetrackerpart.so
#9  0xb6536ca8 in QMetaObject::activate (sender=0x9ec58f0, from_signal_index=34, to_signal_index=34, argv=0xbfa552bc) at kernel/qobject.cpp:3069
#10 0xb6537932 in QMetaObject::activate (sender=0x9ec58f0, m=0xb3644b50, local_signal_index=7, argv=0xbfa552bc) at kernel/qobject.cpp:3143
#11 0xb3627e33 in ?? () from /usr/lib/kde4/ktimetrackerpart.so
#12 0xb3630097 in ?? () from /usr/lib/kde4/ktimetrackerpart.so
#13 0xb6536ca8 in QMetaObject::activate (sender=0x9f0f1a0, from_signal_index=129, to_signal_index=129, argv=0xbfa553ec) at kernel/qobject.cpp:3069
#14 0xb6537932 in QMetaObject::activate (sender=0x9f0f1a0, m=0xb36440e0, local_signal_index=7, argv=0xbfa553ec) at kernel/qobject.cpp:3143
#15 0xb360ee93 in ?? () from /usr/lib/kde4/ktimetrackerpart.so
#16 0xb360f1b5 in ?? () from /usr/lib/kde4/ktimetrackerpart.so
#17 0xb36193d1 in ?? () from /usr/lib/kde4/ktimetrackerpart.so
#18 0xb6536ca8 in QMetaObject::activate (sender=0x9f0f1a0, from_signal_index=4, to_signal_index=4, argv=0xbfa5553c) at kernel/qobject.cpp:3069
#19 0xb6537932 in QMetaObject::activate (sender=0x9f0f1a0, m=0x80b5538, local_signal_index=0, argv=0xbfa5553c) at kernel/qobject.cpp:3143
#20 0xb6a487b3 in QWidget::customContextMenuRequested (this=0x9f0f1a0, _t1=@0xbfa55dc0) at .moc/release-shared/moc_qwidget.cpp:350
#21 0xb6a5724b in QWidget::event (this=0x9f0f1a0, event=0xbfa55db0) at kernel/qwidget.cpp:7678
#22 0xb6e30993 in QFrame::event (this=0x9f0f1a0, e=0xbfa55db0) at widgets/qframe.cpp:559
#23 0xb6ed094f in QAbstractScrollArea::viewportEvent (this=0x9f0f1a0, e=0xbfa551b8) at widgets/qabstractscrollarea.cpp:962
#24 0xb6f82647 in QAbstractItemView::viewportEvent (this=0x9f0f1a0, event=0xbfa55db0) at itemviews/qabstractitemview.cpp:1466
#25 0xb6fbd0c4 in QTreeView::viewportEvent (this=0x9f0f1a0, event=0xbfa55db0) at itemviews/qtreeview.cpp:1257
#26 0xb6ed2f55 in QAbstractScrollAreaFilter::eventFilter (this=0x9f39d30, o=0x9db97a8, e=0xbfa55db0) at widgets/qabstractscrollarea_p.h:100
#27 0xb651fc5a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x9dd45b0, receiver=0x9db97a8, event=0xbfa55db0) at kernel/qcoreapplication.cpp:718
#28 0xb69ffe7a in QApplicationPrivate::notify_helper (this=0x9dd45b0, receiver=0x9db97a8, e=0xbfa55db0) at kernel/qapplication.cpp:4080
#29 0xb6a086dd in QApplication::notify (this=0xbfa566cc, receiver=0x9db97a8, e=0xbfa55db0) at kernel/qapplication.cpp:3873
#30 0xb76263dd in KApplication::notify (this=0xbfa566cc, receiver=0x9db97a8, event=0xbfa55db0) at /build/buildd/kde4libs-4.2.95/kdeui/kernel/kapplication.cpp:302
#31 0xb6520a3b in QCoreApplication::notifyInternal (this=0xbfa566cc, receiver=0x9db97a8, event=0xbfa55db0) at kernel/qcoreapplication.cpp:602
#32 0xb6a0afee in QCoreApplication::sendSpontaneousEvent (receiver=0x9db97a8, event=0xbfa551b8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#33 0xb6a78167 in QETWidget::translateMouseEvent (this=0x9e9d370, event=0xbfa563cc) at kernel/qapplication_x11.cpp:4431
#34 0xb6a76ca7 in QApplication::x11ProcessEvent (this=0xbfa566cc, event=0xbfa563cc) at kernel/qapplication_x11.cpp:3421
#35 0xb6aa1c6a in x11EventSourceDispatch (s=0x9ddb670, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#36 0xb54c9b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb54cd0eb in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb54cd268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb654c438 in QEventDispatcherGlib::processEvents (this=0x9dd3b90, flags={i = -1079679608}) at kernel/qeventdispatcher_glib.cpp:323
#40 0xb6aa1365 in QGuiEventDispatcherGlib::processEvents (this=0x9dd3b90, flags={i = -1079679560}) at kernel/qguieventdispatcher_glib.cpp:202
#41 0xb651f06a in QEventLoop::processEvents (this=0xbfa56630, flags={i = -1079679496}) at kernel/qeventloop.cpp:149
#42 0xb651f4aa in QEventLoop::exec (this=0xbfa56630, flags={i = -1079679432}) at kernel/qeventloop.cpp:200
#43 0xb6521959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#44 0xb69ffd17 in QApplication::exec () at kernel/qapplication.cpp:3553
#45 0x080618fa in _start ()

Reported using DrKonqi
Comment 1 Christophe Marin 2009-07-05 13:55:17 UTC
confirmed.

(gdb) bt full                                                                                                                                                           
#0  KXMLGUIFactory::container (this=0x0, containerName=@0xbfffb1e8, client=0x8180e88, useTagName=false) at /usr/src/debug/kdelibs-4.2.95/kdeui/xmlgui/kxmlguifactory.cpp:453
        result = <value optimized out>                                                                                                                                      
#1  0xb3780298 in ktimetrackerpart::taskViewCustomContextMenuRequested (this=0x8180e70, point=@0xbfffb474)                                                                  
    at /home/krop/kde/src/KDE/kdepim/ktimetracker/ktimetrackerpart.cpp:141                                                                                                  
        pop = 0xb37dbff4                                                                                                                                                    
#2  0xb37803d7 in ktimetrackerpart::qt_metacall (this=0x8180e70, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfffb2d8)                                                    
    at /home/krop/kde/build/KDE/kdepim/ktimetracker/ktimetrackerpart.moc:71                                                                                                 
No locals.                                                                                                                                                                  
#3  0xb64e6788 in QMetaObject::activate (sender=0x8182bd8, from_signal_index=34, to_signal_index=34, argv=0xbfffb2d8) at kernel/qobject.cpp:3113                            
        method = 19                                                                                                                                                         
        currentSender = {sender = 0x8182bd8, signal = 34, ref = 1}                                                                                                          
        previousSender = 0x0                                                                                                                                                
        i = 0                                                                                                                                                               
        count = 2                                                                                                                                                           
        signal = 34                                                                                                                                                         
        empty_argv = {0x0}                                                                                                                                                  
        locker = {{mtx = 0x80bf5a4, val = 135001508}}                                                                                                                       
        currentThreadData = 0x80bf570                                                                                                                                       
        connectionLists = 0x81aa778                                                                                                                                         
#4  0xb64e7412 in QMetaObject::activate (sender=0x8182bd8, m=0xb37dbafc, local_signal_index=7, argv=0xbfffb2d8) at kernel/qobject.cpp:3187                                  
        signal_index = 49                                                                                                                                                   
#5  0xb37b9564 in TimetrackerWidget::contextMenuRequested (this=0x8182bd8, _t1=@0xbfffb474) at /home/krop/kde/build/KDE/kdepim/ktimetracker/timetrackerwidget.moc:315       
        _a = {0x0, 0xbfffb474}                                                                                                                                              
#6  0xb37b8ae0 in TimetrackerWidget::qt_metacall (this=0x8182bd8, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfffb448)                                                   
    at /home/krop/kde/build/KDE/kdepim/ktimetracker/timetrackerwidget.moc:183                                                                                               
No locals.                                                                                                                                                                  
                                                                                                                     
#7  0xb64e6788 in QMetaObject::activate (sender=0x81e6608, from_signal_index=129, to_signal_index=129, argv=0xbfffb448) at kernel/qobject.cpp:3113                          
        method = 34                                                                                                                                                         
        currentSender = {sender = 0x81e6608, signal = 129, ref = 1}                                                                                                         
        previousSender = 0x0                                                                                                                                                
        i = 0                                                                                                                                                               
        count = 1                                                                                                                                                           
        signal = 129                                                                                                                                                        
        empty_argv = {0x0}                                                                                                                                                  
        locker = {{mtx = 0x80bf5a4, val = 135001508}}                                                                                                                       
        currentThreadData = 0x80bf570                                                                                                                                       
        connectionLists = 0x81db188                                                                                                                                         
#8  0xb64e7412 in QMetaObject::activate (sender=0x81e6608, m=0xb37db080, local_signal_index=7, argv=0xbfffb448) at kernel/qobject.cpp:3187                                  
        signal_index = 49                                                                                                                                                   
#9  0xb37a5c94 in TaskView::contextMenuRequested (this=0x81e6608, _t1=@0xbfffb474) at /home/krop/kde/build/KDE/kdepim/ktimetracker/taskview.moc:269                         
        _a = {0x0, 0xbfffb474}                                                                                                                                              
#10 0xb37a4fa0 in TaskView::slotCustomContextMenuRequested (this=0x81e6608, pos=@0xbfffbe20) at /home/krop/kde/src/KDE/kdepim/ktimetracker/taskview.cpp:1116                
        newPos = {xp = 134, yp = 1001}                                                                                                                                      
        column = 1                                                                                                                                                          
#11 0xb37a5a0e in TaskView::qt_metacall (this=0x81e6608, _c=QMetaObject::InvokeMetaMethod, _id=49, _a=0xbfffb59c)                                                           
    at /home/krop/kde/build/KDE/kdepim/ktimetracker/taskview.moc:210                                                                                                        
No locals.

etc...
Comment 2 Thorsten Staerk 2009-07-05 15:08:15 UTC
Bummer. Thanks for the report. Probably I caused it by using a kpart inside the mainwindow (http://websvn.kde.org/?view=rev&revision=916458).
Comment 3 Thorsten Staerk 2009-07-05 15:29:37 UTC
SVN commit 991655 by tstaerk:

Do not crash on right-click.
Guilty guy:tstaerk
BUGS:198997


 M  +0 -8      ktimetrackerpart.cpp  
 M  +0 -1      ktimetrackerpart.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=991655
Comment 4 Thorsten Staerk 2009-07-06 10:37:59 UTC
*** Bug 199123 has been marked as a duplicate of this bug. ***
Comment 5 Thorsten Staerk 2009-07-07 11:34:11 UTC
This bugfix disables the context menu in the kontact plugin.
Comment 6 Christophe Marin 2009-07-07 11:59:02 UTC
(In reply to comment #5)
> This bugfix disables the context menu in the kontact plugin.

hm, it's even worse : there's no context menu in ktimetracker when it's embedded in Kontact even without your last fixes (I didn't 'svn up' yet)
Comment 7 Thorsten Staerk 2009-07-07 20:41:25 UTC
Not for me. If I checkout, compile, link and install revision 991654, I do get a context menu in ktimetracker's kontact plugin. Remember you have to install it, kompiling is not enough.
Comment 8 Thorsten Staerk 2009-07-07 20:47:35 UTC
Opened Bug 199335 for the missing context menu functionality.