PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 796 - Pyside and Dbus Segmentation fault
: Pyside and Dbus Segmentation fault
Status: CLOSED DUPLICATE of bug 814
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0
: PC Linux
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-03-29 16:10 EEST by Wiliam Souza
Modified: 2011-04-29 18:07 EEST (History)
8 users (show)

See Also:


Attachments
groups.py (542 bytes, text/plain)
2011-04-06 16:45 EEST, Hugo Parente Lima
Details
groups.qml (219 bytes, text/plain)
2011-04-06 16:45 EEST, Hugo Parente Lima
Details
models.py (2.02 KB, text/x-python)
2011-04-06 16:46 EEST, Hugo Parente Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wiliam Souza 2011-03-29 16:10:37 EEST
A Segmentation fault is raised when ListView use objects returned by dbus
interface.

The code that reproduce the error can be found here.
https://github.com/wiliamsouza/tralha/tree/master/groups_fault

One workaround is replace the "populate" class method to:

    @classmethod
    def populate(cls):
        groups = []
        for group in GROUPS:
            new_dict = {}
            for key, value in group.items():
                if key == 'members': 
                    new_list = []
                    for list_value in value:
                        new_list.append(str(list_value))
                        new_dict[str(key)] = new_list
                        break
                new_dict[str(key)] = str(value)
            groups.append(cls(new_dict))
        return groups
Comment 1 Hugo Parente Lima 2011-04-06 16:45:23 EEST
Created attachment 300 [details]
groups.py
Comment 2 Hugo Parente Lima 2011-04-06 16:45:48 EEST
Created attachment 301 [details]
groups.qml
Comment 3 Hugo Parente Lima 2011-04-06 16:46:16 EEST
Created attachment 302 [details]
models.py
Comment 4 Hugo Parente Lima 2011-04-06 16:48:13 EEST
I can reproduce that.

I attached your example to the bug report, so feel free to dispose your git
repository, and thanks for reporting.
Comment 5 renato filho 2011-04-18 16:49:06 EEST
This bug was related with bug #814, which was fixed.

*** This bug has been marked as a duplicate of bug 814 ***
Comment 6 renato filho 2011-04-29 18:07:57 EEST
PySide release 1.0.2