[Kde-pim] Segment fault tring to create akonadi resource in python

Kevin Krammer kevin.krammer at gmx.at
Wed Aug 17 08:48:31 BST 2011


Hi Mario,

On Wednesday, 2011-08-17, Mario Santagiuliana wrote:
> Hi to all,
> I just ask this thing to fedora-kde ML and to akonadi IRC channel without
> answer.
> 
> I want to create an akonadi resource using python, I start this simple
> script:
> 
> #!/usr/bin/python
> 
> import sys
> from PyKDE4.akonadi import *
> from PyQt4 import QtCore
> 
> class PyGCalResource( Akonadi.ResourceBase ):
>         id = None
> 
>         def __init__( self, id ):
>                 Akonadi.ResourceBase.__init__( self, id )
>                 self.id = id
> 
> if __name__ == "__main__":
>         p = PyGCalResource( QtCore.QString( 'PyGCalResource' ) )
> 
> 
> But I receive this error using gdb:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff0afc1b0 in QObject::thread() const () from
> /usr/lib64/libQtCore.so.4
> 
> Have you got any suggestions?

Most likely unrelated to the crash but definitely wrong is passing a hard 
coded identifier. The identifier is handed out by the Akonadi Control process, 
passed to the resource as a commandline parameter (see the --identifier part 
of the commandline of other resources running on your system).

> If you want I can provide a little backtrace...

Can't hurt.

Cheers,
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/20110817/662f0c62/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