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 1015 - Segmentation fault when trying to print( QtDeclarative.QDeclarativeView().rootObject().childItems() )
: Segmentation fault when trying to print( QtDeclarative.QDeclarativeView().roo...
Status: CLOSED DUPLICATE of bug 995
Product: PySide
Classification: Unclassified
Component: QtDeclarative
: 1.0.5
: N900 Linux
: P2 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-09-29 17:38 EEST by Сергій Загорія
Modified: 2011-10-20 22:53 EEST (History)
8 users (show)

See Also:


Attachments
minimal code that segfaults (524 bytes, application/gzip)
2011-09-29 17:39 EEST, Сергій Загорія
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Сергій Загорія 2011-09-29 17:38:13 EEST
Python segfaults when I'm trying to print childItems() result. See the
attachment for the code.
Comment 1 Сергій Загорія 2011-09-29 17:39:50 EEST
Created attachment 429 [details]
minimal code that segfaults
Comment 2 Сергій Загорія 2011-10-01 05:55:44 EEST
The code:

$ cat child.py
#!/usr/bin/env python
# DEPENDS:
# python-pyside
# python-qtmobility12

from sys import argv
from PySide import QtGui
from PySide import QtDeclarative
from PySide import QtOpenGL

app = QtGui.QApplication(argv)

view = QtDeclarative.QDeclarativeView()
glw = QtOpenGL.QGLWidget()
view.setViewport(glw)
view.setResizeMode(QtDeclarative.QDeclarativeView.SizeRootObjectToView)
view.setSource(__file__.replace('.py', '.qml'))

view.showFullScreen()

root = view.rootObject()
smth = root.childItems()
print(smth)#

app.exec_()



$ cat child.qml
import Qt 4.7

Rectangle {
    id:body
    height: 100
    width: 100

    Text {
        id: child
    }
}
Comment 3 Hugo Parente Lima 2011-10-18 17:38:46 EEST
It's a duplicate of an already fixed bug.

Thanks for reporting it anyway.

Regards.

*** This bug has been marked as a duplicate of bug 995 ***
Comment 4 Hugo Parente Lima 2011-10-20 22:53:48 EEST
Released on 1.0.8.