2014-03-12, 14:08
Recently XBMC sometimes stops while playing a video. Often this is about 2.5 minutes in, and after freezing replay for about 5-10 seconds, it exits the video and goes back to the menu. If it freezes at other times, it generally resumes after 10-20 seconds.
I have been investigating file system calls to the hard drive where XBMC accesses the media. The drive is in a directly attached USB enclosure. When I had this problem last night, I issued the command in Terminal to log files system calls to this drive. I also set up debug logging, restarted XBMC, and started the video again.
The video stopped 2.5 minutes in and exited to the menu. When I resumed I jumped past that point and the rest of the video played without interruption.
What is interesting is the file system calls from XBMC to the media folder. During the hour of running, XBMC issued about 29,500 file system calls to the TV show folder. Most of them were packed into continuous bursts of several minutes apiece. They appear to be extremely redundant, repeating the same calls over and over. At one point, there were hundreds of consecutive, identical, Rdata calls to the file I was playing. It's like an internal denial of service attack. I'm guessing the drive just gets overloaded with these calls at times and can't deal with it anymore.
I should say that this seems to be coincident with getting this new enclosure and drives. Maybe there is something with one or the other that makes XBMC repeat these calls?
Here is the debug log:
http://xbmclogs.com/show.php?id=147848
And the record of XBMC's file system calls during the hour. It is quite wide so you might want to turn off wrapping and scroll right to see the originator of the calls (XBMC). The drive itself is called XBMC.
http://xbmclogs.com/show.php?id=147978#
I don't know if this is mac-specific or not so just put it in the general help forum.
I can't make any sense of the XBMC log. I would appreciate if anyone can help figure out what is going on.
I have been investigating file system calls to the hard drive where XBMC accesses the media. The drive is in a directly attached USB enclosure. When I had this problem last night, I issued the command in Terminal to log files system calls to this drive. I also set up debug logging, restarted XBMC, and started the video again.
The video stopped 2.5 minutes in and exited to the menu. When I resumed I jumped past that point and the rest of the video played without interruption.
What is interesting is the file system calls from XBMC to the media folder. During the hour of running, XBMC issued about 29,500 file system calls to the TV show folder. Most of them were packed into continuous bursts of several minutes apiece. They appear to be extremely redundant, repeating the same calls over and over. At one point, there were hundreds of consecutive, identical, Rdata calls to the file I was playing. It's like an internal denial of service attack. I'm guessing the drive just gets overloaded with these calls at times and can't deal with it anymore.
I should say that this seems to be coincident with getting this new enclosure and drives. Maybe there is something with one or the other that makes XBMC repeat these calls?
Here is the debug log:
http://xbmclogs.com/show.php?id=147848
And the record of XBMC's file system calls during the hour. It is quite wide so you might want to turn off wrapping and scroll right to see the originator of the calls (XBMC). The drive itself is called XBMC.
http://xbmclogs.com/show.php?id=147978#
I don't know if this is mac-specific or not so just put it in the general help forum.
I can't make any sense of the XBMC log. I would appreciate if anyone can help figure out what is going on.