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

Kevin Krammer kevin.krammer at gmx.at
Wed Nov 23 15:08:24 GMT 2011


On Wednesday, 2011-11-23, laurent Montel wrote:
> 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 :
> > > > On Tuesday, 2011-11-22, laurent Montel wrote:

> > > > > 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 )

> > 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.

I'm afraid I am also out of ideas.

You'll probably need to add some debug output at the place where the throw 
clause is to see why it tries to get the payload as QByteArray.

Sorry,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20111123/b42bcbb6/attachment.sig>
-------------- next part --------------
_______________________________________________
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