Pyside open gl panning bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyqtgraph |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I found a bug when using opengl and pyside and panning using the middle mouse button. This is reproducable using the any of the 3d plotting examples. Traceback:
File "/usr/lib/
self.
File "/usr/lib/
self.
RuntimeError: maximum recursion depth exceeded while calling a Python object
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
RuntimeError: maximum recursion depth exceeded while calling a Python object
I tried to chase this down, but could not really find out more, than that this seems somehow because of adding QVectors (I tried to reproduce this in an isolated test case but couldn't). This might very well be a Pyside bug, if yes let me know and I report there.
Running Ubuntu with pyside 1.1.2 and pyqtgraph 0.9.7
Cheers
Jochen
Changed in pyqtgraph: | |
status: | New → Confirmed |
This does appear to be a PySide bug. Simple example:
>>> from PySide.QtGui import QVector3D QtGui.QVector3D (2.000000, 4.000000, 6.000000) QtGui.QVector3D (2.000000, 4.000000, 6.000000)
>>> class Vector(QVector3D):
... pass
...
>>> v1 = Vector(1,2,3)
>>> v2 = QVector3D(1,2,3)
>>> v1+v1
PySide.
>>> v2+v2
PySide.
>>> v1+v2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: maximum recursion depth exceeded while calling a Python object
I have worked around this by converting the QVector3D to a Vector before adding to self.opts[ 'center' ].