xybu / onedrived-dev

A Microsoft OneDrive client for Linux, written in Python3.
https://github.com/xybu/onedrived-dev
MIT License
705 stars 78 forks source link

Repeating error on debug mode #104

Open brauliobo opened 6 years ago

brauliobo commented 6 years ago
[2018-07-15 14:00:44,819] DEBUG: MainThread: Read the following events: [(Event(wd=2710, mask=32768, cookie=0, name=''), [<flags.IGNORED: 32768>])].
[2018-07-15 14:00:44,820] ERROR: MainThread: Exception in callback LocalRepositoryWatcher.process_events()                                                                                  
handle: <Handle LocalRepositoryWatcher.process_events() created at /usr/lib/python3.6/asyncio/selector_events.py:262>
source_traceback: Object created at (most recent call last):                                                                                                                                
  File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke                                                                                                                
    return callback(*args, **kwargs)
  File "/home/braulio/.local/lib/python3.6/site-packages/daemonocle/cli.py", line 57, in subcommand
    daemon.do_action(name)                                                                                                                                                                  
  File "/home/braulio/.local/lib/python3.6/site-packages/daemonocle/core.py", line 608, in do_action                                                                                        
    func()                                                                                                                                                                                  
  File "/home/braulio/.local/lib/python3.6/site-packages/daemonocle/core.py", line 477, in start                                                                                            
    self._run()                                                                                                                                                                             
  File "/home/braulio/.local/lib/python3.6/site-packages/daemonocle/core.py", line 399, in _run                                                                                             
    self.worker()                                                                                                                                                                           
  File "/home/braulio/.local/lib/python3.6/site-packages/onedrived/od_main.py", line 204, in main                                                                                                context.watcher = LocalRepositoryWatcher(task_pool=task_pool, loop=context.loop)
  File "/home/braulio/.local/lib/python3.6/site-packages/onedrived/od_watcher.py", line 46, in __init__                                                                                     
    self.loop.add_reader(self.notifier.fd, self.process_events)                                                                                                                             
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 337, in add_reader
    return self._add_reader(fd, callback, *args)                                                                                                                                            
  File "/usr/lib/python3.6/asyncio/selector_events.py", line 262, in _add_reader                                                                                                                 handle = events.Handle(callback, args, self)
Traceback (most recent call last):                                                                                                                                                          
  File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/braulio/.local/lib/python3.6/site-packages/onedrived/od_watcher.py", line 441, in process_events
    self.handle_event(ev, flags, move_pairs)
  File "/home/braulio/.local/lib/python3.6/site-packages/onedrived/od_watcher.py", line 339, in handle_event                                                                                
    repo, parent_dir = self.watch_descriptors[ev.wd]                                                                                                                                           File "/home/braulio/.local/lib/python3.6/site-packages/bidict/_base.py", line 410, in __getitem__
    return self._fwdm[key]                                                                                                                                                                  
KeyError: 2710                                    
[2018-07-15 14:00:44,820] WARNING: MainThread: Executing <Handle LocalRepositoryWatcher.process_events() created at /usr/lib/python3.6/asyncio/selector_events.py:262> took 0.202 seconds