[RELEASE] Library watchdog

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Offline
Skilled Skinner
Posts: 9,930
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #11
Can I ask how exactly it know when files are added or deleted?

Thanks.

[Image: sig_zps3af3b48e.jpg]
find quote
takoi Offline
Fan
Posts: 506
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #12
(2012-05-09 17:20)Hitcher Wrote:  Can I ask how exactly it know when files are added or deleted?

Thanks.
Through system calls. inotify on linux, winapi on windows, otherwise it takes a snapshot of a folders 'modified' timestamp every second or so and compare.
find quote
tinybutstrong Offline
Senior Member
Posts: 192
Joined: Sep 2010
Reputation: 0
Post: #13
Cool addon idea, but after installed it, XBMC refuses to close. Stuck on this log message:

18:49:22 T:2232 NOTICE: WATCHDOG: BaseObserver.on_thread_exit()
find quote
takoi Offline
Fan
Posts: 506
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #14
(2012-05-09 23:51)tinybutstrong Wrote:  Cool addon idea, but after installed it, XBMC refuses to close. Stuck on this log message:

18:49:22 T:2232 NOTICE: WATCHDOG: BaseObserver.on_thread_exit()

Can you please post a complete debug log? I need some more info to see why this happens..
find quote
tinybutstrong Offline
Senior Member
Posts: 192
Joined: Sep 2010
Reputation: 0
Post: #15
Hmm got more info this time, check log bellow:

http://pastebin.com/Cwkqp8QL
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,930
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #16
(2012-05-09 17:29)takoi Wrote:  
(2012-05-09 17:20)Hitcher Wrote:  Can I ask how exactly it know when files are added or deleted?

Thanks.
Through system calls. inotify on linux, winapi on windows, otherwise it takes a snapshot of a folders 'modified' timestamp every second or so and compare.

So my hard drives will be constantly spinning?

[Image: sig_zps3af3b48e.jpg]
find quote
Aenima99x Offline
Member+
Posts: 1,030
Joined: Aug 2007
Reputation: 7
Location: California
Post: #17
(2012-05-10 08:30)Hitcher Wrote:  
(2012-05-09 17:29)takoi Wrote:  
(2012-05-09 17:20)Hitcher Wrote:  Can I ask how exactly it know when files are added or deleted?

Thanks.
Through system calls. inotify on linux, winapi on windows, otherwise it takes a snapshot of a folders 'modified' timestamp every second or so and compare.

So my hard drives will be constantly spinning?
I can't speak for the windows part, but on ubuntu when using iotop and dstat to monitor the activity on my SSD and RAID, I don't see any activity.
find quote
takoi Offline
Fan
Posts: 506
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #18
(2012-05-10 16:50)Aenima99x Wrote:  
(2012-05-10 08:30)Hitcher Wrote:  
(2012-05-09 17:29)takoi Wrote:  Through system calls. inotify on linux, winapi on windows, otherwise it takes a snapshot of a folders 'modified' timestamp every second or so and compare.

So my hard drives will be constantly spinning?
I can't speak for the windows part, but on ubuntu when using iotop and dstat to monitor the activity on my SSD and RAID, I don't see any activity.

This is correct. It's event based so it won't do anything until you write something to the disk.
find quote
takoi Offline
Fan
Posts: 506
Joined: Oct 2009
Reputation: 6
Location: Norway
Post: #19
(2012-05-10 00:58)tinybutstrong Wrote:  Hmm got more info this time, check log bellow:

http://pastebin.com/Cwkqp8QL

Fixed. Should be in repo soon
find quote
tinybutstrong Offline
Senior Member
Posts: 192
Joined: Sep 2010
Reputation: 0
Post: #20
(2012-05-10 19:51)takoi Wrote:  Fixed. Should be in repo soon

Now XBMC is crashing on exit, log:

http://pastebin.com/QQsCftQc
find quote
Post Reply