Bug 310409 - Kontact crashed when moving folders imported from Thunderbird
Summary: Kontact crashed when moving folders imported from Thunderbird
Status: RESOLVED DUPLICATE of bug 304324
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 4.8.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-20 14:52 UTC by Steve
Modified: 2014-02-09 17:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 2012-11-20 14:52:15 UTC
Application: kontact (4.8.5)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-33-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I had imported mail from Thunderbird, about 40,000 messages or so in many folders with subfolders. This went fine. Then I got mail from my POP3 servers. I waited overnight for everything to settle down, since virtuoso-t (I think) was using 100% of one of my CPU cores. In the morning, the system was quiet.

Then I moved the imported mail from the imported inbox to the KMail inbox, from the imported sent folder to KMail sent folder, from imported trash to KMail trash, and from imported drafts to KMail drafts. I deleted all the imported folders that I had just emptied. All that went fine.

Then I selected the rest of the imported folders that hadn't been emptied and dragged them to "Local Folders" and selected move. The CPU went crazy again, which I thought was normal with KMail, and KMail didn't respond, so I went away and ate breakfast. When I came back, Kontact had crashed.

This seems closest to bug 304324, which has been closed and marked as fixed, but the other bug I listed seems like a close match, too.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3e93f3e7c0 (LWP 2054))]

Thread 4 (Thread 0x7f3e77ae5700 (LWP 2057)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f3e90726dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f3e90726f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f3e8bbe8e9a in start_thread (arg=0x7f3e77ae5700) at pthread_create.c:308
#4  0x00007f3e91459cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f3e772e4700 (LWP 2058)):
#0  0x00007f3e9144e303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f3e8b71c036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3e8b71c164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3e91bcf426 in QEventDispatcherGlib::processEvents (this=0x7f3e700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f3e91b9ec82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f3e91b9eed7 in QEventLoop::exec (this=0x7f3e772e3dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3e91a9dfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f3e91aa0fcb in QThreadPrivate::start (arg=0xf78560) at thread/qthread_unix.cpp:298
#8  0x00007f3e8bbe8e9a in start_thread (arg=0x7f3e772e4700) at pthread_create.c:308
#9  0x00007f3e91459cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3e1bfff700 (LWP 2167)):
#0  __pthread_mutex_lock (mutex=0x7f3e10000a60) at pthread_mutex_lock.c:64
#1  0x00007f3e8b7575a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3e8b71bb4e in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3e8b71bfd6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3e8b71c164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3e91bcf426 in QEventDispatcherGlib::processEvents (this=0x7f3e100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f3e91b9ec82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f3e91b9eed7 in QEventLoop::exec (this=0x7f3e1bffed90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f3e91a9dfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f3e91b7e9ff in QInotifyFileSystemWatcherEngine::run (this=0x2906050) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f3e91aa0fcb in QThreadPrivate::start (arg=0x2906050) at thread/qthread_unix.cpp:298
#11 0x00007f3e8bbe8e9a in start_thread (arg=0x7f3e1bfff700) at pthread_create.c:308
#12 0x00007f3e91459cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3e93f3e7c0 (LWP 2054)):
[KCrash Handler]
#6  QModelIndex (other=..., this=0x7fff42899d20) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x1223d70, child=...) at itemviews/qsortfilterproxymodel.cpp:1659
#8  0x00007f3e9328f0fa in parent (this=0x7fff42899d70) at /usr/include/qt4/QtCore/qabstractitemmodel.h:393
#9  KIdentityProxyModel::parent (this=0x1028910, child=...) at ../../kdeui/itemviews/kidentityproxymodel.cpp:359
#10 0x00007f3e8eab43d9 in parent (this=0x7fff42899dd0) at /usr/include/qt4/QtCore/qabstractitemmodel.h:393
#11 KPIM::StatisticsProxyModel::parent (this=0x102c8e0, child=...) at ../../libkdepim/statisticsproxymodel.cpp:346
#12 0x00007f3e8eab5952 in sibling (acolumn=1, arow=0, this=0x2470890) at /usr/include/qt4/QtCore/qabstractitemmodel.h:396
#13 KPIM::StatisticsProxyModel::Private::sourceLayoutAboutToBeChanged (this=0x1036f80) at ../../libkdepim/statisticsproxymodel.cpp:217
#14 0x00007f3e91bb4281 in QMetaObject::activate (sender=0x102c8e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#15 0x00007f3e932905ac in KIdentityProxyModelPrivate::_k_sourceLayoutAboutToBeChanged (this=0x1306570) at ../../kdeui/itemviews/kidentityproxymodel.cpp:589
#16 0x00007f3e91bb4281 in QMetaObject::activate (sender=0x1028910, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#17 0x00007f3e932905ac in KIdentityProxyModelPrivate::_k_sourceLayoutAboutToBeChanged (this=0x1248af0) at ../../kdeui/itemviews/kidentityproxymodel.cpp:589
#18 0x00007f3e91bb4281 in QMetaObject::activate (sender=0x1223d70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#19 0x00007f3e92b48f61 in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1240
#20 0x00007f3e91bb4281 in QMetaObject::activate (sender=0x131be50, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#21 0x00007f3e91b99bcc in QAbstractItemModel::beginMoveRows (this=0x131be50, sourceParent=..., sourceFirst=10, sourceLast=10, destinationParent=..., destinationChild=0) at kernel/qabstractitemmodel.cpp:2635
#22 0x00007f3e8dfaab0e in Akonadi::EntityTreeModelPrivate::monitoredCollectionMoved (this=0x13172c0, collection=..., sourceCollection=..., destCollection=...) at ../../akonadi/entitytreemodel_p.cpp:917
#23 0x00007f3e91bb4281 in QMetaObject::activate (sender=0xfa5220, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff4289a880) at kernel/qobject.cpp:3547
#24 0x00007f3e8dfe1c4f in Akonadi::Monitor::collectionMoved (this=<optimized out>, _t1=..., _t2=..., _t3=...) at ./monitor.moc:252
#25 0x00007f3e8dfe598b in Akonadi::MonitorPrivate::emitCollectionNotification (this=0x12fa9b0, msg=..., col=..., par=..., dest=...) at ../../akonadi/monitor_p.cpp:612
#26 0x00007f3e8dfe762a in Akonadi::MonitorPrivate::emitNotification (this=0x12fa9b0, msg=...) at ../../akonadi/monitor_p.cpp:285
#27 0x00007f3e8df45b31 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x12fa9b0, msg=...) at ../../akonadi/changerecorder_p.h:60
#28 0x00007f3e8dfe7356 in Akonadi::MonitorPrivate::flushPipeline (this=0x12fa9b0) at ../../akonadi/monitor_p.cpp:429
#29 0x00007f3e8dfe7829 in Akonadi::MonitorPrivate::dataAvailable (this=0x12fa9b0) at ../../akonadi/monitor_p.cpp:438
#30 0x00007f3e91bb4281 in QMetaObject::activate (sender=0x131e7b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#31 0x00007f3e8df4c64d in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::processResult (this=0x131e7b0, job=<optimized out>) at ../../akonadi/entitycache_p.h:192
#32 0x00007f3e91bb4281 in QMetaObject::activate (sender=0xa269fc0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff4289af40) at kernel/qobject.cpp:3547
#33 0x00007f3e9202a152 in KJob::result (this=<optimized out>, _t1=0xa269fc0) at ./kjob.moc:208
#34 0x00007f3e9202a190 in KJob::emitResult (this=0xa269fc0) at ../../kdecore/jobs/kjob.cpp:318
#35 0x00007f3e91bb9446 in QObject::event (this=0xa269fc0, e=<optimized out>) at kernel/qobject.cpp:1195
#36 0x00007f3e92599894 in notify_helper (e=0x237d280, receiver=0xa269fc0, this=0xdf5150) at kernel/qapplication.cpp:4559
#37 QApplicationPrivate::notify_helper (this=0xdf5150, receiver=0xa269fc0, e=0x237d280) at kernel/qapplication.cpp:4531
#38 0x00007f3e9259e713 in QApplication::notify (this=0x7fff4289b8d0, receiver=0xa269fc0, e=0x237d280) at kernel/qapplication.cpp:4420
#39 0x00007f3e932d33f6 in KApplication::notify (this=0x7fff4289b8d0, receiver=0xa269fc0, event=0x237d280) at ../../kdeui/kernel/kapplication.cpp:311
#40 0x00007f3e91b9fe9c in QCoreApplication::notifyInternal (this=0x7fff4289b8d0, receiver=0xa269fc0, event=0x237d280) at kernel/qcoreapplication.cpp:876
#41 0x00007f3e91ba3c6a in sendEvent (event=0x237d280, receiver=0xa269fc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#42 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xdbd380) at kernel/qcoreapplication.cpp:1500
#43 0x00007f3e91bcef93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#44 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#45 0x00007f3e8b71bd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f3e8b71c0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f3e8b71c164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f3e91bcf3bf in QEventDispatcherGlib::processEvents (this=0xdbec10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#49 0x00007f3e92641d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f3e91b9ec82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007f3e91b9eed7 in QEventLoop::exec (this=0x7fff4289b860, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007f3e91ba3f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#53 0x0000000000403629 in main (argc=3, argv=0x7fff4289bef8) at ../../../kontact/src/main.cpp:218

This bug may be a duplicate of or related to bug 310179, bug 304324.

Possible duplicates by query: bug 310179, bug 307631, bug 306704, bug 306315, bug 306080.

Reported using DrKonqi
Comment 1 Steve 2012-11-20 14:55:30 UTC
When I reopened Kontact, all the folders have apparently been moved successfully as I requested. Perhaps it just needs a better notification that the job is done than crashing the application? (Just kidding, a little developer humor there.)
Comment 2 Steve 2012-11-20 15:25:39 UTC
When I click on one of the many folders I imported and then moved all at once, I get a notification pop-up that says something like:

Local Folders
Local Folders: Maildir '/home/<userid>/.local/share/local-mail/.Import.directory/.Thunderbird-Import.directory/Car' for collection 'Car' is invalid.

Import is the directory I created to import the mail from Thunderbird into. This import was done from "Import Messages" in the File menu. All the e-mails are displayed correctly, and when I click on them, I see their contents in the preview pane, but I also sometimes get this notification pop-up:

Local Folders
Local Folders: Error opening /home/<userid>/.local/share/local-mail/.Import.directory/.Thunderbird-Import.directory/Car; this folder is missing.

However, when I click on most of the messages in the sent-mail folder, which I imported from Thunderbird, I don't get a notification pop-up, but I don't see the contents of the message in the preview pane or when I double-click to open the message, either. I see the From, To, and Date headers, but not the body of the message.
Comment 3 Steve 2012-11-20 22:48:16 UTC
Every time I get mail from my POP3 accounts, I get what seems like hundreds of notification pop-ups saying:

Local Folders
Local Folders: Maildir '/home/<userid>/.local/share/local-mail/.Import.directory/.Thunderbird-Import.directory/Travel' for collection 'Travel' is invalid.
Comment 4 Jekyll Wu 2014-02-09 17:31:28 UTC
Could you try KDE SC 4.9 or higher ?

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