Summary: | Crashes very often when moving an appointment from the main window to the small window showing the month | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Alex Chejlyk <swiftnet> |
Component: | general | Assignee: | Cornelius Schumacher <schumacher> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | w.richert |
Priority: | NOR | ||
Version: | 3.2 | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Backtrace of moving appointment bug |
Description
Alex Chejlyk
2004-03-17 18:01:26 UTC
I'm able to reproduce that problem, although it crashes only after I move/copy several events. I also get a useless backtrace in gdb: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 9814)] 0x4107720d in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libqt-mt.so.3 (gdb) bt #0 0x4107720d in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libqt-mt.so.3 #1 0x4108cf01 in QEventLoop::processEvents(unsigned) () from /usr/lib/libqt-mt.so.3 #2 0x410f4ce8 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3 #3 0x410f4b98 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3 #4 0x410e16d1 in QApplication::exec() () from /usr/lib/libqt-mt.so.3 #5 0x08050a81 in main (argc=2, argv=0xbffff6d4) at ../../HEAD_kdepim/korganizer/main.cpp:58 The console debug output is: libkcal: Event::clone() libkcal: CalendarResource::endChange() korganizer: ERROR: No change count for resource. libkcal: CalendarResources::save( Ticket *) korganizer: KOAgendaView::startDrag(): Delete drag source Somehow this reminds me of the crashes I hoped I had fixed some time ago :-((( Thanks for the report, Reinhold This is confirmed problem... Been meaning to file a bug. It occurs any time you move an appointment. Whether you drag the appointment, or double click then change the date/time manually. I am attaching a backtrace. Created attachment 5661 [details]
Backtrace of moving appointment bug
I can confirm this with KDE 3.2.1 SUSE RPMs *** Bug 83527 has been marked as a duplicate of this bug. *** CVS commit by kainhofe: Fix the crash when cancelling a drop. I can now no longer reproduce the crash. CCMAIL: 77852-done@bugs.kde.org M +17 -16 kodaymatrix.cpp 1.53 --- kdepim/korganizer/kodaymatrix.cpp #1.52:1.53 @@ -209,5 +209,5 @@ void KODayMatrix::recalculateToday() } } - // qDebug(QString("Today is visible at %1.").arg(today)); + // kdDegug(5850) << "Today is visible at "<< today << "." << endl; } @@ -481,4 +481,6 @@ void KODayMatrix::dropEvent( QDropEvent } + if ( action == DRAG_COPY || action == DRAG_MOVE ) { + // When copying, clear the UID: if ( action == DRAG_COPY ) { @@ -494,5 +496,4 @@ void KODayMatrix::dropEvent( QDropEvent } - if ( action == DRAG_COPY || action == DRAG_MOVE ) { e->accept(); if ( event ) { @@ -510,5 +511,5 @@ void KODayMatrix::dropEvent( QDropEvent // When moving, we don't need to insert the item! if ( action != DRAG_MOVE ) { - if ( !mCalendar->addEvent( event ) ) { + if ( !mCalendar->addIncidence( event ) ) { KODialogManager::errorSaveIncidence( this, event ); return; @@ -533,5 +534,5 @@ void KODayMatrix::dropEvent( QDropEvent // When moving, we don't need to insert the item! if ( action != DRAG_MOVE ) { - if ( !mCalendar->addTodo( todo ) ) { + if ( !mCalendar->addIncidence( todo ) ) { KODialogManager::errorSaveIncidence( this, todo ); } |