krontech / chronos-gui-2

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

Play&Save - error sometimes when exiting Saved File Settings #51

Open skronstein opened 4 years ago

skronstein commented 4 years ago

I tried entering and exiting the Saved File Settings screen from Play&Save, and the camera kept alternating between a grey screen and one of the recorded frames.

WARNING Chronos.api _asyncCallFinished() slow call: video.call('configure', {'hres': 601, 'xoff': 0, 'yoff': 30, 'vres': 361}) took 224ms/100ms. (Total call time was 226ms.) WARNING Chronos.api _asyncCallFinished() slow call: control.call('get', ['batteryChargePercent']) took 228ms/100ms. (Total call time was 229ms.) INFO Chronos.api __newKeyValue() Received new information. {'videoState': 'filesave'} PRINT Chronos.gui onVideoStateChangeAlways() ovsca → filesave, w1JxG7pZ Traceback (most recent call last): File "/root/chronos-gui-2/chronosGui2/api.py", line 347, in _asyncCallFinished value = then(value) File "/root/chronos-gui-2/chronosGui2/screens/play_and_save.py", line 149, in checkLastKnownFrame (lastKnownFrame - region['mark start']) / (region['mark end'] - region['mark start']) ZeroDivisionError: division by zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/chronos-gui-2/chronosGui2/api.py", line 358, in _asyncCallFinished raise e File "/root/chronos-gui-2/chronosGui2/api.py", line 356, in _asyncCallFinished raise e UnboundLocalError: local variable 'e' referenced before assignment 0 [1] > /root/chronos-gui-2/chronosGui2/api.py(356)_asyncCallFinished() -> raise e