kootenpv / brightml

Convenient Machine-Learned Auto Brightness (Linux)
MIT License
120 stars 4 forks source link

occasional crash #3

Open tshirtman opened 6 years ago

tshirtman commented 6 years ago

I'm not sure yet of the cause, i though it was going to suspend mode, but i just tested and apparently not, anyway, this happened two times already, every time after a long period of use.

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/gabriel/.local/lib/python3.5/site-packages/brightml/xdisplay.py", line 95, in main_thread_fn
    self.get_window_info(event)
  File "/home/gabriel/.local/lib/python3.5/site-packages/brightml/xdisplay.py", line 49, in get_window_info
    active_window = self.get_window(event)
  File "/home/gabriel/.local/lib/python3.5/site-packages/brightml/xdisplay.py", line 42, in get_window
    window_name = active_window.get_full_property(self.NET_WM_NAME, 0).value
AttributeError: 'NoneType' object has no attribute 'value'

edit, happened again during/after a longer period of sleep, so i'm not sure.