Bug 171433

Summary: ASSERT: "dt.isValid()" when exporting a vCalendar (vcs) file
Product: [Applications] korganizer Reporter: Harald Sitter <sitter>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: winter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Harald Sitter 2008-09-22 03:46:19 UTC
Version:            (using KDE 4.1.1)
Compiler:          gcc (Ubuntu 4.3.2-1ubuntu7) 4.3.2
 
OS:                Linux
Installed from:    Ubuntu Packages

If I create a To Do item in KOrganizer that has a due date set, but no time, then export it to vcs format (File -> Export -> vCalendar), KOrganizer crashes on Q_ASSERT( dt.isValid() ) in VCalFormat::kDateTimeToISO. The "type" of the KDateTime variable, dt, is SpecType::Invalid.

To-Do items with no due date, or with a complete due date including the time of day, are exported without a problem.

The terminal output from the crash is:
 kontact
 kontact(15641)/kmail KMailPart::KMailPart: InstanceName: "kontact"
 kontact(15641)/kmail KMailPart::KMailPart: InstanceName: "kontact"
 kontact(15641)/kmail KMail::lockOrDie: oldPid= 15482
 kontact(15641)/kmail KMKernel::KMKernel:
 kontact(15641)/kmail KMKernel::init: foldersPath (from config): "/home/ubuntu/.kde/share/apps/kmail/mail"
 kontact(15641)/kmail KMKernel::identityManager:
 kontact(15641)/kmail KMFilterMgr::KMFilterMgr: pPopFilter set
 kontact(15641)/kmail KMailPart::guiActivateEvent:
 kontact(15641)/kmail KMailPart::guiActivateEvent:
 kontact(15641)/kmail KMailPart::guiActivateEvent:
 kontact(15641)/kmail KMailPart::guiActivateEvent:
 ubuntu@ubuntu:~$ kontact(15641)/kmail KMail::Vacation::Vacation: Vacation: found url " "" "
 kontact(15641) KFileDialog::getSaveFileName: KFileDialog::getSaveFileName called with non-local start dir KUrl("vcalout.vcs")
 kontact(15641) KFileItem::isDir: can't say -> false
 ASSERT: "dt.isValid()" in file /build/buildd/kdepimlibs-4.1.1/kcal/vcalformat.cpp, line 1380
 *** KMail got signal 6 (Crashing)
 KCrash: Application 'kontact' crashing...

Forwarded from: https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/254137
Comment 1 Allen Winter 2008-12-06 15:23:00 UTC
I fixed this a few days ago.