qspectrumanalyzer icon indicating copy to clipboard operation
qspectrumanalyzer copied to clipboard

Crashes when changing bin size

Open fruitofgeorge opened this issue 4 years ago • 0 comments

I managed to finally get this installed on macOS 10.13.6 (which was quite a feat in itself) but unfortunately it crashes quite a lot. Sometimes seemingly random but one reproducible method is by changing the bin size from the default 10kHz. Most often it will spit out this error:

Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/qspectrumanalyzer/plot.py", line 130, in update_plot
    self.curve.setData(data_storage.x, data_storage.y)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotDataItem.py", line 461, in setData
    self.updateItems()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotDataItem.py", line 487, in updateItems
    self.curve.setData(x=x, y=y, **curveArgs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotCurveItem.py", line 307, in setData
    self.updateData(*args, **kargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyqtgraph/graphicsItems/PlotCurveItem.py", line 353, in updateData
    raise Exception("X and Y arrays must be the same shape--got %s and %s." % (self.xData.shape, self.yData.shape))
Exception: X and Y arrays must be the same shape--got (3025,) and (2964,).
INFO: Total time: 11.775 s
Abort trap: 6

Do you have any guidance on what the program thinks is an acceptable bin size? A couple other minor bothers is it doesn't retain any input settings and always defaults to FM radio spectrum, 0 gain, etc. And also the interval setting doesn't seem to produce a logical effect on the scan time.

fruitofgeorge avatar Jun 07 '20 01:06 fruitofgeorge