Bug 213461 - kalarm a new alarm, a disaster when you click Modify
Summary: kalarm a new alarm, a disaster when you click Modify
Status: CLOSED FIXED
Alias: None
Product: kalarm
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: David Jarvie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-06 20:04 UTC by fizista
Modified: 2010-09-02 12:34 UTC (History)
0 users

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 fizista 2009-11-06 20:04:35 UTC
Application that crashed: kalarm
Version of the application: 2.2.8
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.3
Operating System: Linux 2.6.29.6-server-2mnb i686
Distribution: "Mandriva Linux 2009.1"

 -- Backtrace:
Application: KAlarm (kalarm), signal: Segmentation fault
[KCrash Handler]
#6  QCoreApplication::notifyInternal (this=0x89a6d30, receiver=0x0, event=0xbfb05bf8) at kernel/qcoreapplication.cpp:594
#7  0xb66d63db in QWidget::event (this=0x8f44510, event=0xbfb05bf8) at ../../src/corelib/kernel/qcoreapplication.h:213
#8  0xb667cb1c in QApplicationPrivate::notify_helper (this=0x89b2f38, receiver=0x8f44510, e=0xbfb05bf8) at kernel/qapplication.cpp:4065
#9  0xb668536b in QApplication::notify (this=0x89a6d30, receiver=0x8f44510, e=0xbfb05bf8) at kernel/qapplication.cpp:4030
#10 0xb760e7fb in KApplication::notify (this=0x89a6d30, receiver=0x8f44510, event=0xbfb05bf8) at /usr/src/debug/kdelibs-4.3.2/kdeui/kernel/kapplication.cpp:302
#11 0xb708723e in QCoreApplication::notifyInternal (this=0x89a6d30, receiver=0x8f44510, event=0xbfb05bf8) at kernel/qcoreapplication.cpp:610
#12 0xb668311a in QApplicationPrivate::leaveModal (widget=0x0) at ../../src/corelib/kernel/qcoreapplication.h:213
#13 0xb66d42f2 in QWidgetPrivate::hide_helper (this=0x8e73df8) at kernel/qwidget.cpp:6828
#14 0xb66dc050 in QWidget::setVisible (this=0x8e67630, visible=false) at kernel/qwidget.cpp:7017
#15 0xb6b97a8b in QDialog::setVisible (this=0x8e67630, visible=false) at dialogs/qdialog.cpp:758
#16 0xb6b95d2f in ~QDialog (this=0x8e67630) at ../../src/gui/kernel/qwidget.h:477
#17 0xb757e9e4 in ~KDialog (this=0x8e67630) at /usr/src/debug/kdelibs-4.3.2/kdeui/dialogs/kdialog.cpp:197
#18 0x080bd5f3 in ~EditDisplayAlarmDlg (this=0x8e67630) at /usr/src/debug/kdepim-4.3.2/kalarm/editdlgtypes.h:49
#19 0xb70969e4 in QObjectPrivate::deleteChildren (this=0x8e70640) at kernel/qobject.cpp:1846
#20 0xb66d15b9 in ~QWidget (this=0x8f44510) at kernel/qwidget.cpp:1367
#21 0xb6ac4b3f in ~QMainWindow (this=0x8f44510) at widgets/qmainwindow.cpp:331
#22 0xb76eb446 in ~KMainWindow (this=0x8f44510) at /usr/src/debug/kdelibs-4.3.2/kdeui/widgets/kmainwindow.cpp:467
#23 0xb772e369 in ~KXmlGuiWindow (this=0x8f44510, __vtt_parm=0x8182ee0) at /usr/src/debug/kdelibs-4.3.2/kdeui/xmlgui/kxmlguiwindow.cpp:127
#24 0x080ebbbc in ~MessageWin (this=0x8f44510) at /usr/src/debug/kdepim-4.3.2/kalarm/messagewin.cpp:344
#25 0x080d3a92 in KAlarmApp::execAlarm (this=0x89a6d30, event=@0x8f4af20, alarm=@0xbfb06290, reschedule=true, allowDefer=true, noPreAction=false)
    at /usr/src/debug/kdepim-4.3.2/kalarm/kalarmapp.cpp:1407
#26 0x080d507b in KAlarmApp::handleEvent (this=0x89a6d30, eventID=@0x9194c74, function=KAlarmApp::EVENT_HANDLE) at /usr/src/debug/kdepim-4.3.2/kalarm/kalarmapp.cpp:1192
#27 0x080d664a in KAlarmApp::processQueue (this=0x89a6d30) at /usr/src/debug/kdepim-4.3.2/kalarm/kalarmapp.cpp:699
#28 0x080d8058 in KAlarmApp::qt_metacall (this=0x89a6d30, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfb066a8) at /usr/src/debug/kdepim-4.3.2/build/kalarm/kalarmapp.moc:102
#29 0xb709d065 in QMetaObject::activate (sender=0x8ed6e58, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3112
#30 0xb709dd65 in QMetaObject::activate (sender=0x8ed6e58, m=0xb717d908, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3186
#31 0xb70a30b5 in QSingleShotTimer::timeout (this=0x8ed6e58) at .moc/release-shared/qtimer.moc:76
#32 0xb70a31fc in QSingleShotTimer::timerEvent (this=0x8ed6e58) at kernel/qtimer.cpp:298
#33 0xb7097dbb in QObject::event (this=0x8ed6e58, e=0xbfb06b0c) at kernel/qobject.cpp:1074
#34 0xb667cb1c in QApplicationPrivate::notify_helper (this=0x89b2f38, receiver=0x8ed6e58, e=0xbfb06b0c) at kernel/qapplication.cpp:4065
#35 0xb6685276 in QApplication::notify (this=0x89a6d30, receiver=0x8ed6e58, e=0xbfb06b0c) at kernel/qapplication.cpp:3605
#36 0xb760e7fb in KApplication::notify (this=0x89a6d30, receiver=0x8ed6e58, event=0xbfb06b0c) at /usr/src/debug/kdelibs-4.3.2/kdeui/kernel/kapplication.cpp:302
#37 0xb708723e in QCoreApplication::notifyInternal (this=0x89a6d30, receiver=0x8ed6e58, event=0xbfb06b0c) at kernel/qcoreapplication.cpp:610
#38 0xb70b79bd in QTimerInfoList::activateTimers (this=0x89aa68c) at ../../src/corelib/kernel/qcoreapplication.h:213
#39 0xb70b4145 in idleTimerSourceDispatch (source=0x89aab00) at kernel/qeventdispatcher_glib.cpp:184
#40 0xb552fcea in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#41 0xb5533354 in ?? () from /usr/lib/libglib-2.0.so.0
#42 0xb55334df in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#43 0xb70b3e43 in QEventDispatcherGlib::processEvents (this=0x89a8d90, flags={i = -1078956936}) at kernel/qeventdispatcher_glib.cpp:407
#44 0xb6721bba in QGuiEventDispatcherGlib::processEvents (this=0x89a8d90, flags={i = -1078956888}) at kernel/qguieventdispatcher_glib.cpp:202
#45 0xb7085803 in QEventLoop::processEvents (this=0xbfb06d1c, flags={i = -1078956824}) at kernel/qeventloop.cpp:149
#46 0xb7085c5d in QEventLoop::exec (this=0xbfb06d1c, flags={i = -1078956764}) at kernel/qeventloop.cpp:201
#47 0xb6b96a61 in QDialog::exec (this=0x8e67630) at dialogs/qdialog.cpp:498
#48 0x080e44d5 in MessageWin::slotEdit (this=0x8f44510) at /usr/src/debug/kdepim-4.3.2/kalarm/messagewin.cpp:1758
#49 0x080e8490 in MessageWin::qt_metacall (this=0x8f44510, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfb07070) at /usr/src/debug/kdepim-4.3.2/build/kalarm/messagewin.moc:89
#50 0xb709d065 in QMetaObject::activate (sender=0x8f9bb00, from_signal_index=29, to_signal_index=30, argv=0xbfb07070) at kernel/qobject.cpp:3112
#51 0xb709d4cb in QMetaObject::activate (sender=0x8f9bb00, m=0xb6f370c4, from_local_signal_index=2, to_local_signal_index=3, argv=0xbfb07070) at kernel/qobject.cpp:3206
#52 0xb6d45a95 in QAbstractButton::clicked (this=0x8f9bb00, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:200
#53 0xb6a5549d in QAbstractButtonPrivate::emitClicked (this=0x8e51760) at widgets/qabstractbutton.cpp:543
#54 0xb6a571fb in QAbstractButtonPrivate::click (this=0x8e51760) at widgets/qabstractbutton.cpp:536
#55 0xb6a57496 in QAbstractButton::mouseReleaseEvent (this=0x8f9bb00, e=0xbfb07618) at widgets/qabstractbutton.cpp:1115
#56 0xb66d5f4d in QWidget::event (this=0x8f9bb00, event=0xbfb07618) at kernel/qwidget.cpp:7554
#57 0xb6a55320 in QAbstractButton::event (this=0x8f9bb00, e=0xbfb07618) at widgets/qabstractbutton.cpp:1077
#58 0xb6b049b3 in QPushButton::event (this=0x8f9bb00, e=0xbfb07618) at widgets/qpushbutton.cpp:662
#59 0xb667cb1c in QApplicationPrivate::notify_helper (this=0x89b2f38, receiver=0x8f9bb00, e=0xbfb07618) at kernel/qapplication.cpp:4065
#60 0xb6685dc2 in QApplication::notify (this=0x89a6d30, receiver=0x8f9bb00, e=0xbfb07618) at kernel/qapplication.cpp:3767
#61 0xb760e7fb in KApplication::notify (this=0x89a6d30, receiver=0x8f9bb00, event=0xbfb07618) at /usr/src/debug/kdelibs-4.3.2/kdeui/kernel/kapplication.cpp:302
#62 0xb708723e in QCoreApplication::notifyInternal (this=0x89a6d30, receiver=0x8f9bb00, event=0xbfb07618) at kernel/qcoreapplication.cpp:610
#63 0xb6684bf1 in QApplicationPrivate::sendMouseEvent (receiver=0x8f9bb00, event=0xbfb07618, alienWidget=0x8f9bb00, nativeWidget=0x8f44510, buttonDown=0xb6f3ea60, lastMouseReceiver=@0xb6f3ea64)
    at ../../src/corelib/kernel/qcoreapplication.h:216
#64 0xb66f897d in QETWidget::translateMouseEvent (this=0x8f44510, event=0xbfb08c7c) at kernel/qapplication_x11.cpp:4411
#65 0xb66f7dea in QApplication::x11ProcessEvent (this=0x89a6d30, event=0xbfb08c7c) at kernel/qapplication_x11.cpp:3430
#66 0xb6722464 in x11EventSourceDispatch (s=0x89aab40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#67 0xb552fcea in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#68 0xb5533354 in ?? () from /usr/lib/libglib-2.0.so.0
#69 0xb55334df in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#70 0xb70b3e43 in QEventDispatcherGlib::processEvents (this=0x89a8d90, flags={i = -1078948312}) at kernel/qeventdispatcher_glib.cpp:407
#71 0xb6721bba in QGuiEventDispatcherGlib::processEvents (this=0x89a8d90, flags={i = -1078948264}) at kernel/qguieventdispatcher_glib.cpp:202
#72 0xb7085803 in QEventLoop::processEvents (this=0xbfb08ed0, flags={i = -1078948200}) at kernel/qeventloop.cpp:149
#73 0xb7085c5d in QEventLoop::exec (this=0xbfb08ed0, flags={i = -1078948136}) at kernel/qeventloop.cpp:201
#74 0xb70881b6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#75 0xb667c984 in QApplication::exec () at kernel/qapplication.cpp:3525
#76 0x08096f67 in main (argc=-1078946988, argv=0xb717eff4) at /usr/src/debug/kdepim-4.3.2/kalarm/main.cpp:126

Reported using DrKonqi
Comment 1 David Jarvie 2009-11-06 21:47:31 UTC
Could you please describe exactly what you were doing at the time of the crash, or what KAlarm was doing. It looks as if you clicked on the Edit button in an alarm message window, and that the same alarm triggered again while you were still editing the alarm - please confirm if that is what happened.
Comment 2 fizista 2009-11-06 22:13:03 UTC
I created a new alarm. I've set the delay except for 1 hour (I think). Then - OK. Immediately displays the alarm me. I wanted to modify it (kalarm crash).
Comment 3 fizista 2009-11-06 22:14:39 UTC
I can not repeat this mistake. Maybe I did something I do not remember what.
Comment 4 David Jarvie 2009-11-16 14:41:56 UTC
This crash is due to the alarm window (which is the parent of the edit dialogue) being closed or replaced while the dialogue is still open. There are two things which need to be done to fix this:

- change the alarm window's contents instead of closing it and displaying a new one when it changes from a reminder to a normal alarm, or when the final trigger occurs for a repeat-at-login alarm.

- when the alarm window closes, change the edit dialogue's parent window to the KAlarm main window.
Comment 5 David Jarvie 2009-11-16 23:26:48 UTC
Fixed first case, where the alarm window's contents change (SVN commits 1050233, 1050234).
Comment 6 David Jarvie 2009-11-22 20:39:48 UTC
Fixed other case, when the alarm window auto-closes while an edit dialog is open (SVN commits 1052909, 1052910).

Additional commits for the first case: 1050333, 1050335, 1051193, 1051194.