Recursion error

31 views
Skip to first unread message

webuser 1300

unread,
Feb 21, 2023, 2:06:02 PM2/21/23
to pyqtgraph
I get the following error while zooming in and out of a graph:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/AxisItem.py", line 570, in linkedViewChanged
    self.setRange(*newRange)
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/AxisItem.py", line 521, in setRange
    self.updateAutoSIPrefix()
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/AxisItem.py", line 511, in updateAutoSIPrefix
    self._updateLabel()
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/AxisItem.py", line 304, in _updateLabel
    self._adjustSize()
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/AxisItem.py", line 352, in _adjustSize
    self._updateWidth()
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/AxisItem.py", line 408, in _updateWidth
    w += max(0, self.style['tickLength'])
RecursionError: maximum recursion depth exceeded in comparison
Fatal Python error: _Py_CheckRecursiveCall: Cannot recover from stack overflow.
Python runtime state: initialized

Current thread 0x000000010a5e4600 (most recent call first):
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 832 in enableAutoRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 801 in enableAutoRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 540 in setRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 639 in setYRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 282 in method
  File "/graphhelper.py", line 91 in set_y_axis_for_plot_data
  File "/pygraph/bar/graphdetail.py", line 24 in update_region
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 1578 in updateViewRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 616 in setRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 639 in setYRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 282 in method
  File "/graphhelper.py", line 91 in set_y_axis_for_plot_data
  File "/pygraph/bar/graphdetail.py", line 24 in update_region
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 1578 in updateViewRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 616 in setRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 639 in setYRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 282 in method
  File "/graphhelper.py", line 91 in set_y_axis_for_plot_data
  File "/pygraph/bar/graphdetail.py", line 24 in update_region
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 1578 in updateViewRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 616 in setRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 639 in setYRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 282 in method
  File "/graphhelper.py", line 91 in set_y_axis_for_plot_data
  File "/pygraph/bar/graphdetail.py", line 24 in update_region
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 1578 in updateViewRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 616 in setRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 639 in setYRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 282 in method
  File "/graphhelper.py", line 91 in set_y_axis_for_plot_data
  File "/pygraph/bar/graphdetail.py", line 24 in update_region
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 1578 in updateViewRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 616 in setRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/ViewBox/ViewBox.py", line 639 in setYRange
  File "/usr/local/lib/python3.9/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 282 in method
  File "/graphhelper.py", line 91 in set_y_axis_for_plot_data
  File "/pygraph/bar/graphdetail.py", line 24 in update_region
Reply all
Reply to author
Forward
0 new messages