Bug 251658 - kmail is crashing when replying using L with a « Could not compose message: No charsets were available for encoding. Please report this bug.»
Summary: kmail is crashing when replying using L with a « Could not compose message: N...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 2.0.89
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-18 13:29 UTC by Balcaen John
Modified: 2010-12-30 12:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Balcaen John 2010-09-18 13:29:31 UTC
Application: kmail (2.0.89)
KDE Platform Version: 4.5.68 (4.6 >= 20100912)
Qt Version: 4.7.0
Operating System: Linux 2.6.35.4-desktop-1mnb x86_64
Distribution: "Mandriva Linux 2010.1"

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

I was writting an answer to a french mailing list using the L shortcut to answer in the mailing list.
After writing my mail, switching to the correct identity, when i click send, i can see a popup in french saying that « no charset is available for sending this mail (or something like that), please report this bug ».
I noticed this 3 times.
After the restart of kmail from drkonqui, the mail i wrote is available (well there's some missing parts) but i notice that it swichted back to the default identity (not the one i initially set up) *without* any FROM email, i need to switch again to the new identity  & i can send my mail.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f06bbc18720 (LWP 23512))]

Thread 2 (Thread 0x7f069fadb710 (LWP 23517)):
#0  0x00007f06b757c0bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f06aecc38d4 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f06b7577a5d in start_thread () from /lib64/libpthread.so.0
#3  0x00007f06b8f2115d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f06bbc18720 (LWP 23512)):
[KCrash Handler]
#6  0x00007f06b8e77925 in raise () from /lib64/libc.so.6
#7  0x00007f06b8e78f40 in abort () from /lib64/libc.so.6
#8  0x00007f06b97385d4 in qt_message_output (msgType=<value optimized out>, buf=<value optimized out>) at global/qglobal.cpp:2259
#9  0x00007f06b973879d in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f06b9888d88 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffe77eb6d0)
    at global/qglobal.cpp:2305
#10 0x00007f06b9738935 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2488
#11 0x00007f06b52a5504 in Message::ComposerViewBase::slotAutoSaveComposeResult(KJob*) () from /usr/lib64/libmessagecomposer.so.4
#12 0x00007f06b527dbac in Message::ComposerViewBase::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libmessagecomposer.so.4
#13 0x00007f06b983dfbf in QMetaObject::activate (sender=0x959f3d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe77eb960) at kernel/qobject.cpp:3272
#14 0x00007f06bb019f52 in KJob::result (this=<value optimized out>, _t1=0x959f3d0) at /usr/src/debug/kdelibs-4.5.68svn1174542/build/kdecore/kjob.moc:194
#15 0x00007f06bb019f95 in KJob::emitResult (this=0x959f3d0) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdecore/jobs/kjob.cpp:312
#16 0x00007f06b52814b5 in Message::Composer::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libmessagecomposer.so.4
#17 0x00007f06b983dfbf in QMetaObject::activate (sender=0x81f1810, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe77eba90) at kernel/qobject.cpp:3272
#18 0x00007f06bb019f52 in KJob::result (this=<value optimized out>, _t1=0x81f1810) at /usr/src/debug/kdelibs-4.5.68svn1174542/build/kdecore/kjob.moc:194
#19 0x00007f06bb019f95 in KJob::emitResult (this=0x81f1810) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdecore/jobs/kjob.cpp:312
#20 0x00007f06b52b2e3c in ?? () from /usr/lib64/libmessagecomposer.so.4
#21 0x00007f06b52a3273 in Message::ComposerViewBase::autoSaveMessage() () from /usr/lib64/libmessagecomposer.so.4
#22 0x00007f06ba922bdc in KMKernel::dumpDeadLetters() () from /usr/lib64/libkmailprivate.so.4
#23 0x00007f06ba922d57 in ?? () from /usr/lib64/libkmailprivate.so.4
#24 0x00007f06bb63febf in KCrash::defaultCrashHandler (sig=6) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdeui/util/kcrash.cpp:290
#25 <signal handler called>
#26 0x00007f06b8e77925 in raise () from /lib64/libc.so.6
#27 0x00007f06b8e78f40 in abort () from /lib64/libc.so.6
#28 0x00007f06b97385d4 in qt_message_output (msgType=<value optimized out>, buf=<value optimized out>) at global/qglobal.cpp:2259
#29 0x00007f06b973879d in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f06b9888d88 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffe77ec880)
    at global/qglobal.cpp:2305
#30 0x00007f06b9738935 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2488
#31 0x00007f06b52a4f06 in Message::ComposerViewBase::slotSendComposeResult(KJob*) () from /usr/lib64/libmessagecomposer.so.4
#32 0x00007f06b527db4c in Message::ComposerViewBase::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libmessagecomposer.so.4
#33 0x00007f06b983dfbf in QMetaObject::activate (sender=0x8a38370, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe77ecc60) at kernel/qobject.cpp:3272
#34 0x00007f06bb019f52 in KJob::result (this=<value optimized out>, _t1=0x8a38370) at /usr/src/debug/kdelibs-4.5.68svn1174542/build/kdecore/kjob.moc:194
#35 0x00007f06bb019f95 in KJob::emitResult (this=0x8a38370) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdecore/jobs/kjob.cpp:312
#36 0x00007f06b52814b5 in Message::Composer::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libmessagecomposer.so.4
#37 0x00007f06b983dfbf in QMetaObject::activate (sender=0x8ba08c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe77ecd90) at kernel/qobject.cpp:3272
#38 0x00007f06bb019f52 in KJob::result (this=<value optimized out>, _t1=0x8ba08c0) at /usr/src/debug/kdelibs-4.5.68svn1174542/build/kdecore/kjob.moc:194
#39 0x00007f06bb019f95 in KJob::emitResult (this=0x8ba08c0) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdecore/jobs/kjob.cpp:312
#40 0x00007f06b52b2e3c in ?? () from /usr/lib64/libmessagecomposer.so.4
#41 0x00007f06b52a72c9 in Message::ComposerViewBase::slotEmailAddressResolved(KJob*) () from /usr/lib64/libmessagecomposer.so.4
#42 0x00007f06b527db2c in Message::ComposerViewBase::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libmessagecomposer.so.4
#43 0x00007f06b983dfbf in QMetaObject::activate (sender=0x956ae80, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe77ed580) at kernel/qobject.cpp:3272
#44 0x00007f06bb019f52 in KJob::result (this=<value optimized out>, _t1=0x956ae80) at /usr/src/debug/kdelibs-4.5.68svn1174542/build/kdecore/kjob.moc:194
#45 0x00007f06bb019f95 in KJob::emitResult (this=0x956ae80) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdecore/jobs/kjob.cpp:312
#46 0x00007f06b52c4aa9 in MessageComposer::EmailAddressResolveJob::slotAliasExpansionDone(KJob*) () from /usr/lib64/libmessagecomposer.so.4
#47 0x00007f06b52c4b60 in MessageComposer::EmailAddressResolveJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libmessagecomposer.so.4
#48 0x00007f06b983dfbf in QMetaObject::activate (sender=0x95a0f40, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe77ed730) at kernel/qobject.cpp:3272
#49 0x00007f06bb019f52 in KJob::result (this=<value optimized out>, _t1=0x95a0f40) at /usr/src/debug/kdelibs-4.5.68svn1174542/build/kdecore/kjob.moc:194
#50 0x00007f06bb019f95 in KJob::emitResult (this=0x95a0f40) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdecore/jobs/kjob.cpp:312
#51 0x00007f06b52c2c00 in MessageComposer::AliasesExpandJob::finishExpansion() () from /usr/lib64/libmessagecomposer.so.4
#52 0x00007f06b52c2e8a in MessageComposer::AliasesExpandJob::slotNicknameExpansionDone(KJob*) () from /usr/lib64/libmessagecomposer.so.4
#53 0x00007f06b52c3176 in MessageComposer::AliasesExpandJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libmessagecomposer.so.4
#54 0x00007f06b983dfbf in QMetaObject::activate (sender=0x8a382a0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fffe77edb70) at kernel/qobject.cpp:3272
#55 0x00007f06bb019f52 in KJob::result (this=<value optimized out>, _t1=0x8a382a0) at /usr/src/debug/kdelibs-4.5.68svn1174542/build/kdecore/kjob.moc:194
#56 0x00007f06bb019f95 in KJob::emitResult (this=0x8a382a0) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdecore/jobs/kjob.cpp:312
#57 0x00007f06b5aaeed1 in Akonadi::Job::qt_metacall (this=0x8a382a0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x944a600) at /usr/src/debug/kdepimlibs-4.5.68svn1174542/build/akonadi/job.moc:91
#58 0x00007f06b5aa53f5 in Akonadi::ItemSearchJob::qt_metacall (this=0x8a382a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x944a600)
    at /usr/src/debug/kdepimlibs-4.5.68svn1174542/build/akonadi/itemsearchjob.moc:72
#59 0x00007f06b983daba in QObject::event (this=0x8a382a0, e=<value optimized out>) at kernel/qobject.cpp:1211
#60 0x00007f06b9d126e4 in QApplicationPrivate::notify_helper (this=0x8d0d00, receiver=0x8a382a0, e=0x95b1d20) at kernel/qapplication.cpp:4396
#61 0x00007f06b9d1715a in QApplication::notify (this=<value optimized out>, receiver=0x8a382a0, e=0x95b1d20) at kernel/qapplication.cpp:4277
#62 0x00007f06bb5dd766 in KApplication::notify (this=0x7fffe77ee6f0, receiver=0x8a382a0, event=0x95b1d20) at /usr/src/debug/kdelibs-4.5.68svn1174542/kdeui/kernel/kapplication.cpp:310
#63 0x00007f06b982973c in QCoreApplication::notifyInternal (this=0x7fffe77ee6f0, receiver=0x8a382a0, event=0x95b1d20) at kernel/qcoreapplication.cpp:732
#64 0x00007f06b982cee5 in sendEvent (receiver=0x0, event_type=0, data=0x897d90) at kernel/qcoreapplication.h:215
#65 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x897d90) at kernel/qcoreapplication.cpp:1373
#66 0x00007f06b98546c3 in sendPostedEvents (s=0x8dd980) at kernel/qcoreapplication.h:220
#67 postEventSourceDispatch (s=0x8dd980) at kernel/qeventdispatcher_glib.cpp:277
#68 0x00007f06b18a13d3 in g_main_dispatch (context=0x8dc920) at gmain.c:2119
#69 g_main_context_dispatch (context=0x8dc920) at gmain.c:2672
#70 0x00007f06b18a1bb0 in g_main_context_iterate (context=0x8dc920, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2750
#71 0x00007f06b18a1e4d in g_main_context_iteration (context=0x8dc920, may_block=1) at gmain.c:2813
#72 0x00007f06b985485f in QEventDispatcherGlib::processEvents (this=0x8974e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#73 0x00007f06b9db674e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#74 0x00007f06b9828ad2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#75 0x00007f06b9828d1c in QEventLoop::exec (this=0x7fffe77ee590, flags=...) at kernel/qeventloop.cpp:201
#76 0x00007f06b982d19b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#77 0x0000000000402e66 in _start ()

Reported using DrKonqi
Comment 1 Balcaen John 2010-09-18 13:38:20 UTC
The exact sentence is in fact:
« Could not compose message: No charsets were available for encoding.   Please report this bug. »
I can reproduce it all the time using simply in fact reply to this mailing list
Comment 2 Balcaen John 2010-09-18 13:41:50 UTC
In fact i need to specify UTF-8 Encoding to be able to sent the mail, if i'm using something else it's crashing, for example choosing us-ascii prompt a pop up saying : 
Encoding the message with us-ascii will lose some characters.
Do you want to continue?
& if i accept to loose characters it's crashing.
Comment 3 Tobias Koenig 2010-12-11 23:15:23 UTC
Hej,

can you still reproduce this issue with current version (4.6beta)?
The message about missing charsets can be caused by an empty 'pref-charsets' entry in $HOME/.kde/share/config/kmail2rc in the [Composer] section. Just remove this entry and the defaults will be used again -> sending should work out of the box.
If you can reproduce the crash nevertheless, can you attach the console output of kmail when it is crashing, please?

Ciao,
Tobias
Comment 4 Balcaen John 2010-12-18 12:02:59 UTC
I can't reproduce anymore by removing the empty pref-charsets as suggested.
Sorry for the delay.
Tests are done on kdepim beta2 (4.5.85)

Regards,
Comment 5 Alexander van Loon 2010-12-29 17:29:37 UTC
I also encountered this bug when I got the message 'No charsets were available for encoding'. However, it did not crash KMail if I remember correctly, all it did was refuse to save the e-mail as a Draft, KMail didn't stop working. Following the instruction to remove the 'pref-charsets' entry in $HOME/.kde/share/config/kmail2rc in the [Composer] section and starting Kontact again fixed it for me.

However, this is on Kontact 4.6 beta 3. This is very fresh because I installed Kubuntu 10.10 today and immediately used Kubuntu's repositories to upgrade to KDE PIM 4.6 beta 3, so I didn
Comment 6 Alexander van Loon 2010-12-29 17:30:38 UTC
Last sentence got eaten somehow, I wanted to say:

so I didn't use any earlier beta. Unfortunately I haven't
been able to reproduce it so far.
Comment 7 Jacob R 2010-12-30 12:58:59 UTC
Same as above comment, now running Kmail 2.0.89. Removing the line in kmail2rc worked, but it needs to be done automatically.