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 1048 - QGridLayout.itemAtPosition() crashes when it should return None
: QGridLayout.itemAtPosition() crashes when it should return None
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.8
: Macintosh Mac OS
: P2 normal
Assigned To: Paulo Alcantara
:
:
:
  Show dependency treegraph
 
Reported: 2011-11-05 21:27 EET by john haddon
Modified: 2011-11-29 21:28 EET (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description john haddon 2011-11-05 21:27:00 EET
This code runs OK in PySide 1.0.6, but crashes in 1.0.8 :

from PySide import QtGui

a = QtGui.QApplication( [] )

w = QtGui.QWidget()
l = QtGui.QGridLayout( w )

l.itemAtPosition( 0, 0 )

Here's the top of the stack trace I get :

0   QtGui.so                          0x0000000108909667
addLayoutOwnership(QLayout*, QLayoutItem*) + 23
1   QtGui.so                          0x0000000108cec40d
Sbk_QGridLayoutFunc_itemAtPosition + 653
2   org.python.python                 0x00000001000a41bb PyEval_EvalFrameEx +
17995
3   org.python.python                 0x00000001000a7417 PyEval_EvalCodeEx +
2103
4   org.python.python                 0x00000001000a7496 PyEval_EvalCode + 54
Comment 1 Paulo Alcantara 2011-11-29 16:05:27 EET
Hi John,

Thanks for the report!

The bug has been fixed on PySide commit
6a1e70e085fa4f4e71a1c20189ac2115ebe5f19f.
Comment 2 Luciano Wolf 2011-11-29 21:28:42 EET
Released on PySide 1.0.9. Closing.