DBus timeout while adding watches on a large HD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HD Lorean |
New
|
Undecided
|
Unassigned |
Bug Description
Starting the app in a huge HD for the first time results in a Dbus Timeout. Seeking around hdloreand was doing this when the timeout occurs:
Traceback (most recent call last):
File "../hdloreand/
daemon = hdloreand()
File "../hdloreand/
self.__watcher = Watcher.Watcher()
File "/home/
self.
File "/home/
self.
File "/home/
_dic = self.__
File "/var/lib/
for rpath in self.__
File "/var/lib/
for root, dirs, files in os.walk(top):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
for x in walk(path, topdown, onerror):
File "/usr/lib/
if isdir(join(top, name)):
File "/usr/lib/
st = os.stat(path)
KeyboardInterrupt
It seems that adding watches should be made inside a thread so the main loop won't be affected.
Removing watches also should be done into a thread or everything will explode soon