krontech / chronos-gui-2

Chronos 1.4 back-of-camera Python QT 5 GUI
Other
7 stars 2 forks source link

Error when setting resolution below minimum #44

Open skronstein opened 4 years ago

skronstein commented 4 years ago

When I entered 36 into the textbox for image width, the camera froze and this came up either before or after I tried to tap Close:

Traceback (most recent call last): File "/root/chronos-gui-2/chronosGui2/signal_tap.py", line 34, in emit callback(self.transformer(args)) File "/root/chronos-gui-2/chronosGui2/screens/recording_settings.py", line 364, in updateForSensorHRes self.updateMaximumFramerate() File "/root/chronos-gui-2/chronosGui2/screens/recording_settings.py", line 393, in updateMaximumFramerate log.error("Error retrieving maximum framerate for {}×{}: {}".format((hRes), (vRes), (limits['error']))) NameError: name 'hRes' is not defined 0 [2] > /root/chronos-gui-2/chronosGui2/screens/recording_settings.py(393)updateMaximumFramerate() -> log.error("Error retrieving maximum framerate for {}×{}: {}".format((hRes), (vRes), (limits['error'])))