Bug 214276

Summary: trying to save ktimetracker files with no timers loaded causes crash
Product: [Applications] kontact Reporter: Thomas Caswell <tcaswell>
Component: ktimetrackerAssignee: Thorsten Staerk <dev>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: 4.3.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Caswell 2009-11-12 17:01:16 UTC
Version:           4.3.2 (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

activity:
clicking on the save icon in ktimetracker component of kontact with no timer file loaded.

expected behavior:
nothing to happen

real behavior:
crashes kontact

repeatable: yes
steps
1. go to ktimetracker component
2. hit the red x icon to close all open files
3. hit save
Comment 1 Dario Andres 2009-11-12 22:33:33 UTC
- If you can reproduce the crash at will (or you experience this regularly), may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? (you may need to install the "kdepim-dbg" package) Thanks
Comment 2 Christophe Marin 2009-11-12 23:10:59 UTC
AFAICS with trunk, it crashes before the 3rd step.

kontact(31990)/ktimetracker TimetrackerWidget::closeFile: Entering TimetrackerWidget::closeFile
kontact(31990)/ktimetracker TaskView::save: Entering TaskView::save()
KCrash: Application 'kontact' crashing...


Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  0xadf97335 in TaskView::save (this=0x0) at /kde/src/KDE/kdepim/ktimetracker/taskview.cpp:679
#7  0xadfaaa6b in TimetrackerWidget::closeFile (this=0x8814620) at /kde/src/KDE/kdepim/ktimetracker/timetrackerwidget.cpp:479
#8  0xadfae9b7 in TimetrackerWidget::qt_metacall (this=0x8814620, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbf8c7938) at /kde/build/KDE/kdepim/ktimetracker/timetrackerwidget.moc:199
#9  0xb6cc7aed in QMetaObject::metacall (object=0x8814620, cl=3053392800, idx=42, argv=0xbf8c7938) at kernel/qmetaobject.cpp:237
#10 0xb6cd68e6 in QMetaObject::activate (sender=0x87bc880, m=0xb6b36298, local_signal_index=1, argv=0xbf8c7938) at kernel/qobject.cpp:3274
#11 0xb621465d in QAction::triggered (this=0x87bc880, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#12 0xb62168bc in QAction::activate (this=0x87bc880, event=QAction::Trigger) at kernel/qaction.cpp:1245
#13 0xb66f7b00 in QAction::trigger (this=0x0) at ../../src/gui/kernel/qaction.h:218
#14 QToolButton::nextCheckState (this=0x0) at widgets/qtoolbutton.cpp:1147
#15 0xb6611457 in QAbstractButtonPrivate::click (this=0x884d1c8) at widgets/qabstractbutton.cpp:528
#16 0xb6611746 in QAbstractButton::mouseReleaseEvent (this=0x884d0a0, e=0xbf8c7ff0) at widgets/qabstractbutton.cpp:1118
#17 0xb66f7fdd in QToolButton::mouseReleaseEvent (this=0x884d0a0, e=0xbf8c7ff0) at widgets/qtoolbutton.cpp:721
#18 0xb627a531 in QWidget::event (this=0x884d0a0, event=0xbf8c7ff0) at kernel/qwidget.cpp:7973
#19 0xb66103e0 in QAbstractButton::event (this=0x884d0a0, e=0x0) at widgets/qabstractbutton.cpp:1080
#20 0xb66fab3c in QToolButton::event (this=0x884d0a0, event=0xbf8c7ff0) at widgets/qtoolbutton.cpp:1163
#21 0xb621b01c in QApplicationPrivate::notify_helper (this=0x8076670, receiver=0x884d0a0, e=0xbf8c7ff0) at kernel/qapplication.cpp:4242
#22 0xb6222122 in QApplication::notify (this=0xbf8c7d80, receiver=0x884d0a0, e=0xbf8c7ff0) at kernel/qapplication.cpp:3822
#23 0xb7249491 in KApplication::notify (this=0xbf8c86a4, receiver=0x884d0a0, event=0xbf8c7ff0) at /usr/src/debug/kdelibs-4.3.74svn1044032/kdeui/kernel/kapplication.cpp:302
#24 0xb6cc277e in QCoreApplication::notifyInternal (this=0xbf8c86a4, receiver=0x884d0a0, event=0xbf8c7ff0) at kernel/qcoreapplication.cpp:704
#25 0xb6221784 in QCoreApplication::sendSpontaneousEvent (receiver=0x884d0a0, event=0xbf8c7ff0, alienWidget=0x884d0a0, nativeWidget=0x87f4fa8, buttonDown=0xb6b50fe0, lastMouseReceiver=..., 
    spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:218
#26 QApplicationPrivate::sendMouseEvent (receiver=0x884d0a0, event=0xbf8c7ff0, alienWidget=0x884d0a0, nativeWidget=0x87f4fa8, buttonDown=0xb6b50fe0, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2954
#27 0xb62ad03a in QETWidget::translateMouseEvent (this=0x87f4fa8, event=0xbf8c84fc) at kernel/qapplication_x11.cpp:4368
#28 0xb62ac5e4 in QApplication::x11ProcessEvent (this=0xbf8c86a4, event=0xbf8c84fc) at kernel/qapplication_x11.cpp:3379
#29 0xb62da38b in QEventDispatcherX11::processEvents (this=0x8055e88, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#30 0xb6cc0ded in QEventLoop::processEvents (this=0xbf8c8624, flags=) at kernel/qeventloop.cpp:149
#31 0xb6cc1239 in QEventLoop::exec (this=0xbf8c8624, flags=...) at kernel/qeventloop.cpp:201
#32 0xb6cc53b0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#33 0xb621b0c4 in QApplication::exec () at kernel/qapplication.cpp:3570
#34 0x0804b793 in main (argc=1, argv=0xbf8c8874) at /kde/src/KDE/kdepim/kontact/src/main.cpp:221
Comment 3 Christophe Marin 2009-11-12 23:11:41 UTC
and it's not reproducible with a standalone ktimetracker.
Comment 4 Christophe Marin 2009-11-12 23:13:05 UTC

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