Bug 366388 - Could not create collection trash resourceId: 24
Summary: Could not create collection trash resourceId: 24
Status: RESOLVED DUPLICATE of bug 339214
Alias: None
Product: kontact
Classification: Applications
Component: mail (show other bugs)
Version: 4.13
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-03 21:18 UTC by Ewald Müller
Modified: 2017-01-11 02:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the ressource for the local trash folder can't be found (1.62 KB, text/plain)
2016-08-06 07:22 UTC, Ewald Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ewald Müller 2016-08-03 21:18:13 UTC
Just started Kontact, it was receiving mails, then the error occurs: Crash trying to create a trash-folder for an imap-account (that was former under the local folders)
Asus Eee PC, Kubuntu Trusty Tahr, 

Application: kontact (4.13.3)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.2.0-54-generic x86_64
Distribution: Ubuntu 14.04.4 LTS


Reproducible: Always

Steps to Reproduce:
1. start kontact
2. switch to kmail
3. crash occurs receiving mails



Application: kontact (4.13.3)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.2.0-54-generic x86_64
Distribution: Ubuntu 14.04.4 LTS

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

Just startet Firefox before (on that slow machine); then Kontact was starting, receiving Mails

The crash can be reproduced sometimes.

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

Thread 5 (Thread 0x7f7355568700 (LWP 4479)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7370d3081d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f7370d30859 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f736d452184 in start_thread (arg=0x7f7355568700) at pthread_create.c:312
#4  0x00007f737350237d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f7314c5d700 (LWP 4480)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f7370a7120d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f7370d5ffd6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f736d452184 in start_thread (arg=0x7f7314c5d700) at pthread_create.c:312
#4  0x00007f737350237d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f7303eba700 (LWP 4497)):
#0  0x00007f73734f4fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f736cf72fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f736cf730ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7373c7b7be in QEventDispatcherGlib::processEvents (this=0x7f72fc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f7373c4d0af in QEventLoop::processEvents (this=this@entry=0x7f7303eb9da0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f7373c4d3a5 in QEventLoop::exec (this=this@entry=0x7f7303eb9da0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f7373b49c5f in QThread::exec (this=this@entry=0x1efe5c0) at thread/qthread.cpp:537
#7  0x00007f7373c2e823 in QInotifyFileSystemWatcherEngine::run (this=0x1efe5c0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f7373b4c32f in QThreadPrivate::start (arg=0x1efe5c0) at thread/qthread_unix.cpp:349
#9  0x00007f736d452184 in start_thread (arg=0x7f7303eba700) at pthread_create.c:312
#10 0x00007f737350237d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f73036b9700 (LWP 4500)):
#0  0x00007f73734f4fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f736cf72fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f736cf730ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7373c7b7be in QEventDispatcherGlib::processEvents (this=0x7f72f40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f7373c4d0af in QEventLoop::processEvents (this=this@entry=0x7f73036b8de0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f7373c4d3a5 in QEventLoop::exec (this=this@entry=0x7f73036b8de0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f7373b49c5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#7  0x00007f7373b4c32f in QThreadPrivate::start (arg=0x1e79540) at thread/qthread_unix.cpp:349
#8  0x00007f736d452184 in start_thread (arg=0x7f73036b9700) at pthread_create.c:312
#9  0x00007f737350237d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f7375f8c800 (LWP 4478)):
[KCrash Handler]
#6  0x00007f737343ec37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f7373442028 in __GI_abort () at abort.c:89
#8  0x00007f7373b41c92 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=0x298ac48 "Fatal Error: Accessed global static 'KernelPrivate *sInstance()' after destruction. Defined at ../../mailcommon/kernel/mailkernel.cpp:57") at global/qglobal.cpp:2383
#9  0x00007f7373b41ff9 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=0x7f730a7daea0 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fff2f27ac48) at global/qglobal.cpp:2429
#10 0x00007f7373b42804 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2612
#11 0x00007f730a72f9d7 in operator-> (this=<optimized out>) at ../../mailcommon/kernel/mailkernel.cpp:57
#12 MailCommon::Kernel::self () at ../../mailcommon/kernel/mailkernel.cpp:73
#13 0x00007f730a776680 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x306eb40) at ../../mailcommon/folder/foldercollection.cpp:218
#14 0x00007f730a776ef2 in MailCommon::FolderCollection::~FolderCollection (this=0x306eb40, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:84
#15 0x00007f730a776f69 in MailCommon::FolderCollection::~FolderCollection (this=0x306eb40, __in_chrg=<optimized out>) at ../../mailcommon/folder/foldercollection.cpp:86
#16 0x00007f730a7757a4 in deref (value=0x306eb40, d=0x1d039d0) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:342
#17 deref (this=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:336
#18 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:401
#19 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:466
#20 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x1dcce00, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:652
#21 0x00007f73734441a9 in __run_exit_handlers (status=1, listp=0x7f73737c66c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#22 0x00007f73734441f5 in __GI_exit (status=<optimized out>) at exit.c:104
#23 0x00007f730a7300a7 in MailCommon::Kernel::emergencyExit (this=this@entry=0x22760f0, reason=...) at ../../mailcommon/kernel/mailkernel.cpp:230
#24 0x00007f730a730667 in MailCommon::Kernel::createDefaultCollectionDone (this=0x22760f0, job=0x2272b00) at ../../mailcommon/kernel/mailkernel.cpp:182
#25 0x00007f7373c6287a in QMetaObject::activate (sender=sender@entry=0x2272b00, m=m@entry=0x7f7374467600 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff2f27b240) at kernel/qobject.cpp:3539
#26 0x00007f73740d87a2 in KJob::result (this=this@entry=0x2272b00, _t1=_t1@entry=0x2272b00) at ./kjob.moc:207
#27 0x00007f73740d87e0 in KJob::emitResult (this=this@entry=0x2272b00) at ../../kdecore/jobs/kjob.cpp:318
#28 0x00007f737257128a in Akonadi::TransactionSequence::slotResult (this=this@entry=0x2272b00, job=job@entry=0x334ac80) at ../../akonadi/transactionsequence.cpp:134
#29 0x00007f737254d48e in Akonadi::SpecialCollectionsRequestJob::slotResult (this=0x2272b00, job=0x334ac80) at ../../akonadi/specialcollectionsrequestjob.cpp:356
#30 0x00007f7372570b20 in Akonadi::TransactionSequence::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_transactionsequence.cpp:52
#31 0x00007f7373c6287a in QMetaObject::activate (sender=sender@entry=0x334ac80, m=m@entry=0x7f7374467600 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff2f27b480) at kernel/qobject.cpp:3539
#32 0x00007f73740d87a2 in KJob::result (this=this@entry=0x334ac80, _t1=_t1@entry=0x334ac80) at ./kjob.moc:207
#33 0x00007f73740d87e0 in KJob::emitResult (this=this@entry=0x334ac80) at ../../kdecore/jobs/kjob.cpp:318
#34 0x00007f73724ecf01 in Akonadi::JobPrivate::handleResponse (this=<optimized out>, tag=..., data=...) at ../../akonadi/job.cpp:64
#35 0x00007f73724ece04 in Akonadi::JobPrivate::handleResponse (this=<optimized out>, tag=..., data=...) at ../../akonadi/job.cpp:49
#36 0x00007f737253a432 in Akonadi::SessionPrivate::dataReceived (this=0x1e4b230) at ../../akonadi/session.cpp:236
#37 0x00007f7373c6287a in QMetaObject::activate (sender=0x20c8e10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#38 0x00007f7373c6287a in QMetaObject::activate (sender=sender@entry=0x1e449a8, m=m@entry=0x7f7373fb1540 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#39 0x00007f7373cab720 in QIODevice::readyRead (this=this@entry=0x1e449a8) at .moc/release-shared/moc_qiodevice.cpp:104
#40 0x00007f736e506ccd in QAbstractSocketPrivate::canReadNotification (this=0x216fb40) at socket/qabstractsocket.cpp:654
#41 0x00007f736e50fcfd in QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1151
#42 0x00007f737463fe2c in QApplicationPrivate::notify_helper (this=this@entry=0x1bd0a00, receiver=receiver@entry=0x2211ee0, e=e@entry=0x7fff2f27ba50) at kernel/qapplication.cpp:4567
#43 0x00007f73746464a0 in QApplication::notify (this=this@entry=0x7fff2f27bd90, receiver=receiver@entry=0x2211ee0, e=e@entry=0x7fff2f27ba50) at kernel/qapplication.cpp:4353
#44 0x00007f737534a63a in KApplication::notify (this=0x7fff2f27bd90, receiver=0x2211ee0, event=0x7fff2f27ba50) at ../../kdeui/kernel/kapplication.cpp:311
#45 0x00007f7373c4e4dd in QCoreApplication::notifyInternal (this=0x7fff2f27bd90, receiver=0x2211ee0, event=event@entry=0x7fff2f27ba50) at kernel/qcoreapplication.cpp:953
#46 0x00007f7373c7c4a8 in sendEvent (event=0x7fff2f27ba50, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#47 socketNotifierSourceDispatch (source=0x1bcbb00) at kernel/qeventdispatcher_glib.cpp:117
#48 0x00007f736cf72e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f736cf73048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f736cf730ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f7373c7b7a1 in QEventDispatcherGlib::processEvents (this=0x1b91bb0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#52 0x00007f73746e1be6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#53 0x00007f7373c4d0af in QEventLoop::processEvents (this=this@entry=0x7fff2f27bc90, flags=...) at kernel/qeventloop.cpp:149
#54 0x00007f7373c4d3a5 in QEventLoop::exec (this=this@entry=0x7fff2f27bc90, flags=...) at kernel/qeventloop.cpp:204
#55 0x00007f7373c52b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#56 0x00007f737463e37c in QApplication::exec () at kernel/qapplication.cpp:3828
#57 0x0000000000403660 in main (argc=1, argv=0x7fff2f27bed8) at ../../../kontact/src/main.cpp:219

The reporter indicates this bug may be a duplicate of or related to bug 358650.

Possible duplicates by query: bug 358650.
Comment 1 Ewald Müller 2016-08-06 07:20:16 UTC
The search for the error leads me to the akonadi ressources; i think it was my mistake removing a duplicate entry for 'trash' at the 'local folders'.
The appropriate error file is attached:

/home/muelux/.local/share/akonadi/akonadiserver.error
Comment 2 Ewald Müller 2016-08-06 07:22:08 UTC
Created attachment 100477 [details]
the ressource for the local trash folder can't be found
Comment 3 Gianluca Frustagli 2016-12-19 17:33:00 UTC
Bug is substantially equivalent to #339214 and #362339 but either surprisingly yet in "unconfirmed" state.

All are related to change of location of trash folder from local to an IMAP folder.

There's a workaround here: https://forum.kde.org/viewtopic.php?f=215&t=120777&p=368778#p368778 that implies use of 'akonadiconsole'.

But, in my opinion, this bug SHOULD indeed be taken into proper attention as it's particularly annoying: it stops KMail immediately after execution and discourages non-skilled users. Furthermore the workaround can not be readily found.
Comment 4 Christoph Feck 2017-01-11 02:31:17 UTC

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