Version: 1.10.3 (using KDE 4.1.3) OS: Linux Installed from: Ubuntu Packages Kmail crashes when creating new mail. Maybe the problem is that the file /usr/include/qt4/QtCore/qstring.h isn't exist. Console output (last 10 lines): kmail(6057) KMFolderImap::finishMailCheck: "INBOX" finishMailCheck getMessage 3 ---------------------"creating new mail at this point"--------------------------- kmail(6057) KMail::TemplateParser::findTemplate: Folder found: KMFolder(0x8b93988) kmail(6057) KMail::TemplateParser::findTemplate: Identity found: 341066778 kmail(6057) KMail::TemplateParser::processWithTemplate: Command: CURSOR kmail(6057) KMail::TemplateParser::processWithTemplate: Command: REM= kmail(6057) KMail::TemplateParser::processWithTemplate: Command: - ASSERT: "i >= 0 && i < size()" in file /usr/include/qt4/QtCore/qstring.h, line 646 *** KMail got signal 6 (Crashing) KCrash: Application 'kmail' crashing... sock_file=/home/kornel/.kde/socket-kornel-laptop/kdeinit4__0
At the moment it crashes when I use custom template messages for my identity.
Hi, Thanks for your bug report. We need more information to solve it, like: * Are you able to reproduce it? yes? * Is it always when you use the custom template messages? * Is it possible to have a copy of the template? * It could be also very valuable if you provide a backtrace, take a look at: https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports Best Regards.
I am not able to reproduce it with current trunk, but I let the developers see if they are aware of it. I do not attach the emailed backtrace as it does not contains enought information. The template is: [Templates #IDENTITY_341066778] QuoteString=>%_ TemplateForward=%REM="Default forward template"%-\n\n---------- Forwarded Message ----------\n\nSubject: %OFULLSUBJECT\nDate: %ODATE \nFrom: %OFROMADDR\nTo: %OTOADDR\n\n%TEXT \n-------------------------------------------------------\n TemplateNewMessage=%CURSOR\n\nÜdvözlettel\n\nTakó Kornél\n \nwww.www.hu\n%REM="Default new message template"%-\n TemplateReply=%CURSOR\n\nÜdvözlettel\n\nTakó Kornél\n\nwww.www.hu\n \n%REM="Default reply template"%-\nOn %ODATEEN %OTIMELONGEN you wrote:\n %QUOTE\n\n TemplateReplyAll=%REM="Default reply all template"%-\nOn %ODATEEN % OTIMELONGEN %OFROMNAME wrote:\n%QUOTE\n%CURSOR\n
SVN commit 898607 by winterz: fix crashing in templates when using the %- (dnl) in certain conditions. BUG: 178038 M +4 -3 templateparser.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=898607
SVN commit 899969 by tmcguire: Backport r898607 by winterz from trunk to the 4.1 branch: fix crashing in templates when using the %- (dnl) in certain conditions. CCBUG: 178038 M +4 -3 templateparser.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=899969