×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Question PySide BUG : Segmentation Fault with QOrganizerCollectionId.toString()

    Hi boys and girls,

    I am working with a friend on a project that uses calandar.db data. We want to read the id's of the collections (N9 calendars), but everytime the toString() function, which should return an unicode string, gives a segmentation fault.

    Here is just an easy as possible code example:

    Code:
    #!/usr/bin/env python
    #-*- coding: utf-8 -*-
    
    import sys
    from PySide import QtCore
    from QtMobility.Organizer import *
    
    class QtMobilityTest(QtCore.QObject):
        def __init__(self):
            QtCore.QObject.__init__(self)
            self.defaultManager = QOrganizerManager()
            self.collections = self.defaultManager.collections()
         
            print len(self.collections)
    
            for collection in self.collections:
                print type(collection), collection.id()
                print collection.id().toString()
            sys.exit(0)
    
    if __name__ == "__main__":
        app = QtCore.QCoreApplication([])
        test = QtMobilityTest()
        app.exec_()
    We wrote an mail to the PySide mailing list, but got no reaction. At GIT there is a BugTracker Link, but the website seems to be down. And I am not sure (I am more or less a beginner) PySide QtMobility is wrapped from C++ version?!, because if true I am not able to fix/patch it, I have no C++ knowledge at all.

    Is ANYONE able to help me?!

    We checked alternative ways, e.g SQL, but it becomes very difficult in combination with recurring events.

    I am thanking you in anticipation.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2009
    Posts
    1,024

    Re: PySide BUG : Segmentation Fault with QOrganizerCollectionId.toString()

    Hi,
    PySide wraps C++ Mobility. If it crash it could be that the bug is in the C++ side. Did you check if there is a similar bug reported here: https://bugreports.qt-project.org/secure/Dashboard.jspa
    What firmware have you used to test this code?

  3. #3
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Re: PySide BUG : Segmentation Fault with QOrganizerCollectionId.toString()

    No I've not checked that. Thanks for the hint. Do I need yet another account to report/read bug tracker?!

    It's no difference, we've tested it on PR1.1 and also PR1.2 Beta on N950. :-/

    EDIT: Okay I've filled a "suggestion" in the recommended bug tracker.

    AlphaX2
    Last edited by AlphaX2; 2012-02-02 at 20:07.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2009
    Posts
    1,024

    Re: PySide BUG : Segmentation Fault with QOrganizerCollectionId.toString()

    Could you please paste here the BUG ID/URL?
    Other people can be interested in this thread.

  5. #5
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Re: PySide BUG : Segmentation Fault with QOrganizerCollectionId.toString()

    Last edited by AlphaX2; 2012-02-04 at 14:37.

  6. #6
    Registered User
    Join Date
    Feb 2012
    Posts
    32

    Re: PySide BUG : Segmentation Fault with QOrganizerCollectionId.toString()

    Since PySide is QtAddon, there is also a WOW...WORKING bugtracker. So I've also created there a bugreport. Just for your information, this is the link: https://bugreports.qt-project.org/browse/PYSIDE-13

    AlphaX2

Similar Threads

  1. N950 & QML Camera = segmentation fault?
    By lostdev in forum Nokia N9
    Replies: 12
    Last Post: 2011-12-29, 19:10
  2. a segmentation fault
    By yaohao@nokia in forum Qt
    Replies: 13
    Last Post: 2011-03-18, 05:25
  3. Segmentation Fault?
    By LarryP in forum [Archived] Qt SDKs and Tools
    Replies: 6
    Last Post: 2010-11-17, 18:30
  4. Segmentation fault problem
    By NMMA in forum Qt
    Replies: 8
    Last Post: 2010-06-17, 11:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •