KBNLresearch / iromlab

Loader software for automated imaging of optical media with Nimbie disc robot
Apache License 2.0
31 stars 5 forks source link

Iromlab doesn't exit if Finalize button is pressed after last disc has been processed #50

Closed bitsgalore closed 7 years ago

bitsgalore commented 7 years ago

Possibly related/same issue: while running iromlab from console this happened after pressing Finalize:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python36\lib\tkinter\__init__.py", line 1699, in __call__
    return self.func(*args)
  File "C:\Python36\lib\tkinter\__init__.py", line 745, in callit
    func(*args)
  File "F:\johan\pythonCode\iromlab\iromlab\iromlab.pyw", line 348, in append
    self.text.configure(state='normal')
  File "C:\Python36\lib\tkinter\__init__.py", line 1479, in configure
    return self._configure('configure', cnf, kw)
  File "C:\Python36\lib\tkinter\__init__.py", line 1470, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
KeyboardInterrupt

This happens after the operator pressed the confirmation button and after the removal of jobs / jobsFailed folders. Error is related to logging --> perhaps KeyboardInterrupt interferes with displaying/writing to the log? In that case pausing a few seconds before thread.interrupt_main() might do the trick.

bitsgalore commented 7 years ago

Added 2-second delay before KeyboardInterrupt https://github.com/KBNLresearch/iromlab/commit/e1e30f6380febf229a9153eaf9a22d8006b1e497