[Kde-pim] Crash when I try to create item

laurent Montel montel at kde.org
Wed Nov 23 15:01:24 GMT 2011


Le Wednesday 23 November 2011 15:23:49 Kevin Krammer a écrit :
> On Wednesday, 2011-11-23, laurent Montel wrote:
> > Le Wednesday 23 November 2011 12:57:07 Kevin Krammer a écrit :
> > > Hi Laurent,
> > > 
> > > On Tuesday, 2011-11-22, laurent Montel wrote:
> > > > Hi,
> > > > When I want to move a item (from encapsulated email) I have this 
error:
> > > > 
> > > > -----------------------------------------------
> > > > Qt has caught an exception thrown from an event handler. Throwing
> > > > exceptions from an event handler is not supported in Qt. You must
> > > > reimplement QApplication::notify() and catch all exceptions there.
> > > > 
> > > > terminate called after throwing an instance of
> > > > 'Akonadi::PayloadException'
> > > > 
> > > >   what():  Akonadi::PayloadException: Wrong payload type (requested:
> > > > sp(0)<QByteArray>; present: sp(1)<KMime::Message*>
> > > > **
> > > 
> > > Hmm, maybe explicitly specifying the template type at setPayload?
> > > I.e. setPayload<KMime::Message::Ptr>( message ) instead of just
> > > setPayload( message )
> > > 
> > > Cheers,
> > > Kevin
> > 
> > No same error:
> > 
> > "terminate called after throwing an instance of 
'Akonadi::PayloadException'
> >   what():  Akonadi::PayloadException: Wrong payload type (requested:
> > sp(0)<QByteArray>; present: sp(1)<KMime::Message*>"
> > I don't understand what is bad...
> 
> Hmm. One other possibilty for this error is serlializer plugin for a payload 
> MIME type missing or not found.
> 
> Can you try calling setMimeType() before calling setPayload()?

Same crash.


> Do other payload interactions with KMime::Message::Ptr work?

Yes I can reply/print/ etc. So KMime::Message::Ptr is ok
Don't know why it doesn't work.


> Cheers,
> Kevin
> 
> -- 
> Kevin Krammer, KDE developer, xdg-utils developer
> KDE user support, developer mentoring
-- 
Laurent Montel | laurent.montel at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list