Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyQtGraph Largely Incompatible with PyPy #2270

Open
j9ac9k opened this issue Apr 23, 2022 · 1 comment
Open

PyQtGraph Largely Incompatible with PyPy #2270

j9ac9k opened this issue Apr 23, 2022 · 1 comment

Comments

@j9ac9k
Copy link
Member

@j9ac9k j9ac9k commented Apr 23, 2022

Short description

Getting segfaults when using widgets based on GraphicsView, Widgets using QOpenGLWidget appear to function as intended.

Code to reproduce

When running examples that use pyqtgraph.GraphicsWidget we get a segfault/

python pyqtgraph/examples/PlotSpeedTest.py

Expected behavior

No segfault

Real behavior

pyqtgraph-pypy ❯ python pyqtgraph/examples/PlotSpeedTest.py
zsh: segmentation fault  python pyqtgraph/examples/PlotSpeedTest.py

Tested environment(s)

  • PyQtGraph version: master commit: 74fa36d
  • Qt Python binding: PySide6 6.3 PyPy
  • Python version: 3.8.13 - pypy
  • NumPy version: 1.22.3 - pypy
  • Operating system: macOS
  • Installation method: pip

Additional context

PySide6 installed via

pip install pyside6 --index-url=https://download.qt.io/official_releases/QtForPython/pypy/

NumPy was built from source.

@j9ac9k
Copy link
Member Author

@j9ac9k j9ac9k commented Apr 23, 2022

Walking through the debugger, the segfault occurs on this line:

QtWidgets.QGraphicsWidget.__init__(self, *args, **kargs)

> /Users/ogi/Developer/pyqtgraph/pyqtgraph/graphicsItems/GraphicsWidget.py(17)__init__()
-> QtWidgets.QGraphicsWidget.__init__(self, *args, **kargs)
(Pdb) widget = QtWidgets.QGraphicsWidget()
(Pdb) widfget = QtWidgets.QGraphicsWidget.__init__(self)
zsh: segmentation fault  python pyqtgraph/examples/PlotSpeedTest.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant