tlecomte / friture

Real-time audio visualizations (spectrum, spectrogram, etc.)
http://friture.org
GNU General Public License v3.0
937 stars 161 forks source link

crash: sweep.py: spinBox: unexpected type: float #230

Closed es20490446e closed 1 year ago

es20490446e commented 2 years ago
(Friture 0.49)
Traceback (most recent call last):
  File "/usr/bin/friture", line 10, in 
    main()
  File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 395, in main
    window = Friture()
  File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 154, in __init__
    self.restoreAppState()
  File "/usr/lib/python3.10/site-packages/friture/analyzer.py", line 258, in restoreAppState
    self.dockmanager.restoreState(settings)
  File "/usr/lib/python3.10/site-packages/friture/dockmanager.py", line 78, in restoreState
    dock.restoreState(settings)
  File "/usr/lib/python3.10/site-packages/friture/dock.py", line 125, in restoreState
    self.audiowidget.restoreState(settings)
  File "/usr/lib/python3.10/site-packages/friture/generator.py", line 308, in restoreState
    generator.settingsWidget().restoreState(settings)
  File "/usr/lib/python3.10/site-packages/friture/generators/sweep.py", line 159, in restoreState
    self.spinBox_sweep_startfrequency.setValue(sweep_start_frequency)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
es20490446e commented 2 years ago

Removing the config files makes it work.

es20490446e commented 2 years ago

But editing the view makes it to reappear.