Open astrofrog opened 8 years ago
The following example causes a segmentation fault:
from PySide import QtGui from PySide.QtCore import Qt class Data(object): def __getitem__(self, item): raise ValueError("Issue") model = QtGui.QStandardItemModel() item = QtGui.QStandardItem('a') item.setData(Data(), role=Qt.UserRole) model.appendRow(item) model.item(0)
Somehow, the getitem which raises an exception is needed to reproduce the failure. if instead of raising an exception I do:
class Data(object): def __getitem__(self, item): return 1
then the script is stuck.
It might have better chances to be spotted if reported here - https://bugreports.qt.io/browse/PYSIDE
The following example causes a segmentation fault:
Somehow, the getitem which raises an exception is needed to reproduce the failure. if instead of raising an exception I do:
then the script is stuck.