krontech / chronos-gui-2

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

Exceptions raised after tapping Record Mode dropdown #40

Open skronstein opened 4 years ago

skronstein commented 4 years ago

Immediately after I tapped the dropdown on Record Modes, GUI2 froze and outputted this to the console:

WARNING Chronos.api _asyncCallFinished() slow call: control.call('get', ['dateTime']) took 194ms/100ms. (Total call time was 196ms.) WARNING Chronos.api _asyncCallFinished() slow call: video.call('livedisplay', {}) took 206ms/100ms. (Total call time was 209ms.) INFO Chronos.api newKeyValue() Received new information. {'videoState': 'live'} INFO Chronos.api newKeyValue() Ignoring videoState → live, stale. WARNING Chronos.api _asyncCallFinished() slow call: video.call('livedisplay', {}) took 138ms/100ms. (Total call time was 140ms.) INFO Chronos.api newKeyValue() Received new information. {'videoState': 'live'} INFO Chronos.api newKeyValue() Ignoring videoState → live, stale. WARNING Chronos.api _asyncCallFinished() slow call: control.call('set', {'recMode': 'segmented'}) took 103ms/100ms. (Total call time was 105ms.) 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/api.py", line 243, in valueDict[args[0]] KeyError: 'recMode'

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 (Pdb++)