Bug 305526 - Kmail2 migration failed, all imported folders and emails (from Kmail) were deleted
Summary: Kmail2 migration failed, all imported folders and emails (from Kmail) were ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.8
Platform: Mageia RPMs Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-08-21 00:48 UTC by Macxi
Modified: 2018-10-27 02:38 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 Macxi 2012-08-21 00:48:44 UTC
I imported the emails from Kmail (Mageia 1) for Kmail2 (Mageia 2, Kde 482)

A problem occurs when I move some folder and Kmail closes. After I open Kmail, and the folder is correctly to where I moved it. (nothing serious)

Another problem is that I can not change the name of folders. (nothing serious)

Another problem occurs if I delete or move any folders. After a few hours, insistent warnings appear for 10 or 15 minutes without stopping, warning that a folder was not found. I can not stop these warnings and have to turn the sound off (to not hear the constant beeping of system). After 10 or 15 minutes, it stops. But after 1 hour or 2 hours back again. (is serious, if not stop these warnings, I will have to change email manager). 

And the last error: all folders and emails they had imported from Kmail to Kmail2 been erased.

Mageia Forum: Kmail2: erro opening folder, is missing - Mga 2 - Kde 482 
https://forums.mageia.org/en/viewtopic.php?f=7&t=3325&p=24725#p24725
Comment 1 Macxi 2012-08-21 01:22:55 UTC
I report a bug in bugzilla Mageia: https://bugs.mageia.org/show_bug.cgi?id=7129

KDE: correcting the phrase: All folders and emails that had been imported from Kmail to Kmail2 were erased.
Comment 2 Macxi 2012-08-22 13:52:11 UTC
I'm checking what the possible causes of this error. with migration from kmail to kmail2.
If I made a mistake and if there's any bug or something that can be improved to avoid that.

Error that I may have committed:  I configured Kmail as POP and I imported the messages in a non-recommended directly from the folder .kde/share/apps/kmail in a very large number of messages (more than 10,000).

I have not used the mechanism of export (folders with messages) from Kmail because did not know existed, so I may have caused this error to have improperly imported messages.

What can be improved in Kmail2 :There is no clear guidance on how you can export messages. To export, you click on Kmail folder, and right-mouse button, select the "Archive Folders", which will create a compressed archive (zip, tar, etc.).

Akonadi gave warning error when I moved  Kmail folders
___________________

Application: kmail (4.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.2
Operating System: Linux 3.3.6-desktop586-2.mga2 i686
Distribution: "Mageia 2"

-- Information about the crash:
<Descreva-nos, em detalhes, o que você estava fazendo quando ocorreu a falha no aplicativo.>

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/i686/libthread_db.so.1".
[Current thread is 1 (Thread 0xb1454710 (LWP 11565))]

Thread 3 (Thread 0xafc09b70 (LWP 18867)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb596825b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb5f6293c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libc.so.6
#3  0xb37078cb in ?? () from /usr/lib/libQtWebKit.so.4
#4  0xb37079ef in ?? () from /usr/lib/libQtWebKit.so.4
#5  0xb5964a37 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb5f5498e in clone () from /lib/i686/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xaf2e8b70 (LWP 18868)):
#0  0xb5967594 in __pthread_mutex_unlock_usercnt () from /lib/i686/libpthread.so.0
#1  0xb5f62b94 in pthread_mutex_unlock () from /lib/i686/libc.so.6
#2  0xb4629240 in g_mutex_unlock () from /lib/libglib-2.0.so.0
#3  0xb45e9cd0 in ?? () from /lib/libglib-2.0.so.0
#4  0xb45e9f81 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb62aee87 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb627ad2d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb627afc9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb616470c in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb61647fb in QThread::run() () from /usr/lib/libQtCore.so.4
#10 0xb6167bf0 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb5964a37 in start_thread () from /lib/i686/libpthread.so.0
#12 0xb5f5498e in clone () from /lib/i686/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb1454710 (LWP 11565)):
[KCrash Handler]
#7  0xb5466cd8 in ?? () from /usr/lib/libakonadi-kde.so.4
#8  0xb5468448 in Akonadi::Monitor::mimeTypesMonitored() const () from /usr/lib/libakonadi-kde.so.4
#9  0xb541ed77 in ?? () from /usr/lib/libakonadi-kde.so.4
#10 0xb541f21f in ?? () from /usr/lib/libakonadi-kde.so.4
#11 0xb5415d0b in ?? () from /usr/lib/libakonadi-kde.so.4
#12 0xb6292b6f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0xb7155dd5 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#14 0xb7155e28 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#15 0xb5463aae in ?? () from /usr/lib/libakonadi-kde.so.4
#16 0xb628e0a1 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#17 0xb62971fb in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#18 0xb6515c14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0xb651af53 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0xb7496741 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#21 0xb627c4ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#22 0xb62800d8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#23 0xb628040c in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#24 0xb62aea34 in ?? () from /usr/lib/libQtCore.so.4
#25 0xb45e9a9a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0xb45e9ea5 in ?? () from /lib/libglib-2.0.so.0
#27 0xb45e9f81 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0xb62aee27 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0xb65c954a in ?? () from /usr/lib/libQtGui.so.4
#30 0xb627ad2d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#31 0xb627afc9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#32 0xb6a65f69 in QDialog::exec() () from /usr/lib/libQtGui.so.4
#33 0xb7605c6c in KMessageBox::createKMessageBox(KDialog*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) () from /usr/lib/libkdeui.so.5
#34 0xb7631ecd in KMessageBox::createKMessageBox(KDialog*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) () from /usr/lib/libkdeui.so.5
#35 0xb76372d5 in KMessageBox::errorListWId(unsigned long, QString const&, QStringList const&, QString const&, QFlags<KMessageBox::Option>) () from /usr/lib/libkdeui.so.5
#36 0xb76374f4 in KMessageBox::error(QWidget*, QString const&, QString const&, QFlags<KMessageBox::Option>) () from /usr/lib/libkdeui.so.5
#37 0xb5426230 in ?? () from /usr/lib/libakonadi-kde.so.4
#38 0xb5415ca7 in ?? () from /usr/lib/libakonadi-kde.so.4
#39 0xb6292b6f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#40 0xb7155dd5 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#41 0xb7155e28 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#42 0xb7155ef5 in KJob::kill(KJob::KillVerbosity) () from /usr/lib/libkdecore.so.5
#43 0xb54a1148 in Akonadi::Session::clear() () from /usr/lib/libakonadi-kde.so.4
#44 0xb54a13cd in Akonadi::Session::~Session() () from /usr/lib/libakonadi-kde.so.4
#45 0xb54a1432 in Akonadi::Session::~Session() () from /usr/lib/libakonadi-kde.so.4
#46 0xb62911b1 in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#47 0xb6296a01 in QObject::~QObject() () from /usr/lib/libQtCore.so.4
#48 0xb6f63e43 in KMKernel::~KMKernel() () from /usr/lib/libkmailprivate.so.4
#49 0x0804a2ed in ?? ()
#50 0xb5e993e3 in __libc_start_main () from /lib/i686/libc.so.6
#51 0x0804a759 in _start ()
Comment 3 Myriam Schweingruber 2012-08-25 14:42:47 UTC
The problem appears to be with Akonadi. Please install debugging symbols for Aknoadi and provide a better backtrace. See also http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 4 Macxi 2012-08-25 19:30:45 UTC
(In reply to comment #3)
> The problem appears to be with Akonadi. Please install debugging symbols for
> Aknoadi and provide a better backtrace. See also
> http://techbase.kde.org/Development/Tutorials/Debugging/
> How_to_create_useful_crash_reports

Myriam, 

Thanks for your help

I enabled the media "Core Debug Release" of "Mageia 2" and I installed the following packages:

- akonadi-debug-1.7.2-1.mga2.i586
- kdeadmin4-debug-4.8.2-2.mga2.i586
- kdebase4-runtime-debug-4.8.2-3.mga2.i586
- kdebase4-workspace-debug-4.8.2-5.mga2.i586
- kdelibs4-debug-4.8.2-3.mga2.i586
- kdenetwork4-debug-4.8.2-2.mga2.i586
- kdepim4-debug-4.8.2-3.mga2.i586
- gdb-7.3.50.20110722-4.mga2.i586
- gdb-debug-7.3.50.20110722-4.mga2.i586

The error occurred again after I moved a folder in Kmail, from the directory "inbox" to "local folders".

Kmail backtrace: 

Application: kmail (4.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.2
Operating System: Linux 3.3.8-desktop586-2.mga2 i686
Distribution: "Mageia 2"

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>
The error occurred again after I moved a folder in Kmail, from the directory "inbox" to "local folders".
I was waiting for to finish the operation, when Kmail closed

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/i686/libthread_db.so.1".
[Current thread is 1 (Thread 0xb13e4710 (LWP 3402))]

Thread 3 (Thread 0xaf567b70 (LWP 3433)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb58f825b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb5ef293c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libc.so.6
#3  0xb36978cb in ?? () from /usr/lib/libQtWebKit.so.4
#4  0xb36979ef in ?? () from /usr/lib/libQtWebKit.so.4
#5  0xb58f4a37 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb5ee498e in clone () from /lib/i686/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xaec46b70 (LWP 3434)):
#0  0xb5ef2b20 in pthread_mutex_lock () from /lib/i686/libc.so.6
#1  0xb45b9200 in g_mutex_lock () from /lib/libglib-2.0.so.0
#2  0xb4579514 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0xb4579d2f in ?? () from /lib/libglib-2.0.so.0
#4  0xb4579f81 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb623ee87 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb620ad2d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb620afc9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb60f470c in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb60f47fb in QThread::run() () from /usr/lib/libQtCore.so.4
#10 0xb60f7bf0 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb58f4a37 in start_thread () from /lib/i686/libpthread.so.0
#12 0xb5ee498e in clone () from /lib/i686/libc.so.6
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb13e4710 (LWP 3402)):
[KCrash Handler]
#7  0xb6ae9295 in ?? () from /usr/lib/libQtGui.so.4
#8  0xb6ae9413 in QSortFilterProxyModel::mapToSource(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#9  0xb6aea70b in ?? () from /usr/lib/libQtGui.so.4
#10 0xb6aeb5b0 in ?? () from /usr/lib/libQtGui.so.4
#11 0xb6222b6f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#12 0xb6274a15 in QAbstractItemModel::layoutAboutToBeChanged() () from /usr/lib/libQtCore.so.4
#13 0xb62057dc in QAbstractItemModel::beginMoveRows(QModelIndex const&, int, int, QModelIndex const&, int) () from /usr/lib/libQtCore.so.4
#14 0xb53bbc14 in ?? () from /usr/lib/libakonadi-kde.so.4
#15 0xb53a5ea3 in ?? () from /usr/lib/libakonadi-kde.so.4
#16 0xb6222b6f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0xb53f7c35 in Akonadi::Monitor::collectionMoved(Akonadi::Collection const&, Akonadi::Collection const&, Akonadi::Collection const&) () from /usr/lib/libakonadi-kde.so.4
#18 0xb53fbaab in ?? () from /usr/lib/libakonadi-kde.so.4
#19 0xb53fe189 in ?? () from /usr/lib/libakonadi-kde.so.4
#20 0xb534d4c9 in ?? () from /usr/lib/libakonadi-kde.so.4
#21 0xb53fe326 in ?? () from /usr/lib/libakonadi-kde.so.4
#22 0xb53fe3c0 in ?? () from /usr/lib/libakonadi-kde.so.4
#23 0xb53f82e3 in ?? () from /usr/lib/libakonadi-kde.so.4
#24 0xb6222b6f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#25 0xb539cfd5 in ?? () from /usr/lib/libakonadi-kde.so.4
#26 0xb5353ebe in ?? () from /usr/lib/libakonadi-kde.so.4
#27 0xb539d01e in ?? () from /usr/lib/libakonadi-kde.so.4
#28 0xb6222b6f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#29 0xb70e5dd5 in KJob::result (this=0xaea0f18, _t1=0xaea0f18) at /usr/src/debug/kdelibs-4.8.2/build/kdecore/kjob.moc:208
#30 0xb70e5e28 in KJob::emitResult (this=0xaea0f18) at /usr/src/debug/kdelibs-4.8.2/kdecore/jobs/kjob.cpp:318
#31 0xb53f3aae in ?? () from /usr/lib/libakonadi-kde.so.4
#32 0xb621e0a1 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#33 0xb62271fb in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#34 0xb64a5c14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#35 0xb64aaf53 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0xb7426741 in KApplication::notify (this=0xbfc3d9cc, receiver=0xaea0f18, event=0xa73d4f8) at /usr/src/debug/kdelibs-4.8.2/kdeui/kernel/kapplication.cpp:311
#37 0xb620c4ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#38 0xb62100d8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#39 0xb621040c in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#40 0xb623ea34 in ?? () from /usr/lib/libQtCore.so.4
#41 0xb4579a9a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#42 0xb4579ea5 in ?? () from /lib/libglib-2.0.so.0
#43 0xb4579f81 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#44 0xb623ee27 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#45 0xb655954a in ?? () from /usr/lib/libQtGui.so.4
#46 0xb620ad2d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#47 0xb620afc9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#48 0xb62104ba in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#49 0xb64a3ab4 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#50 0x0804a2d6 in main (argc=-1226672456, argv=0x9db9090) at /usr/src/debug/kdepim-4.8.2/kmail/main.cpp:145

Report to https://bugs.kde.org
Comment 5 Myriam Schweingruber 2012-08-27 22:46:57 UTC
There still are no debugging symbols apparently, did you restart Akonadi before reproducing this problem? Could you also check if there is a -debug package for libakonadi?
Comment 6 Macxi 2012-11-28 00:12:10 UTC
I could not repeat the error.
I reinstalled Mageia 2, 64bit KDE. I installed the Kmail2, and again I imported the emails correctly, exporting first, then importing.  The mistakes were not repeated again.

The only Kmail2 error occurs every time I ask to download emails, a specific list (not all) downloads the same emails multiple times, creating lists dozens of emails repeated.
If I click on the option to delete duplicate emails, nothing happens.
I have to delete one by one.
Comment 7 Andrew Crouthamel 2018-09-23 02:36:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-27 02:38:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!