The clue is in the "Now performing cleanup" message in the log, which is 
where the plugin asks SqueezeCenter to look through the entire music 
database and see if any files have disappeared, and if so to remove them 
from the library.

This is, unfortunately, a feature of the way I've implemented it. 
SqueezeCenter doesn't have an easy way of just saying "check this 
directory to see if any files have been removed", and it doesn't seem to 
be possible for a normal plugin to initiate selecting scanning in a 
separate process in the same way that the normal scanner runs (this is 
why you'll get pauses in playback during this process).

I have had other reports of this, though, and it's definitely a problem. 
I've an idea for a design change that would help, which I've documented 
in my ticket here:
http://www.hickinbottom.com/autorescan/ticket/12

This has the advantage that the rescanning and cleanup would happen in a 
different process and so you shouldn't see any delays in playback, but 
the disadvantage that it's doing a complete "look for new and changed 
music" which means it'll take longer for your new music to show up in 
the SqueezeCenter database.

What do you think of that change? Take a look at the ticket and see what 
you think.

I'm pretty sure that the bug, if there is one, is in my plugin and not 
SqueezeCenter, though.

Stuart


On 02/12/2008 4:55 PM, kolding wrote:
> I've been using the AutoRescan plugin on Fedora 7 for a while now, and
> in recent versions of SC 7.3, the plugin seems to send CPU utilization
> to 100% where it seems to stay for quite a while.  The plugin used to
> work great, and I've only seen this on newer 7.3 builds.  While the
> utilization is high, access to squeezecenter via the web is pretty much
> impossible.  Not sure about other interfaces.
>
> I'm currently running the 24179 build, but also saw this with the 24069
> build.  Latest version of AutoRescan, which has been stable since August
> or thereabouts.
>
> Last few lines of a log.  I added a few songs to a directory, the scan
> seemed to get kicked off at 8:46:43, and CPU utilization was pegged for
> about 2 minutes, until 8:48:31, when LazySearch2 seems to get notified.
> Scanner log messages were on DEBUG level, but no messages showed up
> during the high utilization period.
>
> [08-12-02 08:46:28.1667]
> Plugins::AutoRescan::Monitor_Linux::watchCallback (120) Received
> inotify event for: /music/MP3/other/The Decemberists/01 - Valerie
> Plame.mp
> 3 (is_directory=, was_created=, was_modified=, was_deleted=,
> was_moved_from=, was_moved_to=
> [08-12-02 08:46:43.2139] Plugins::AutoRescan::Plugin::poller (253)
> Triggering RESCAN of folder: /music/MP3/other/The Decemberists
> [08-12-02 08:46:43.2208] Slim::Utils::Scanner::scanDirectory (289)
> About to look for files in /music/MP3/other/The Decemberists
> [08-12-02 08:46:43.2258] Slim::Utils::Scanner::scanDirectory (290) For
> files with extensions in:
> (?i-xsm:\.(?:ape|wma|asf|wax|asx|lnk|wpl|wv|wav|wave|mp3|mp2|m3u|pl
> s|xspf|flc|flac|fla|m4a|mov|m4b|mp4|cue|mp+|mpc|ogg|aif|aiff)$)
> [08-12-02 08:46:43.2326] Slim::Utils::Scanner::scanDirectory (320)
> Found 6 files in /music/MP3/other/The Decemberists
> [08-12-02 08:46:43.2542] Slim::Utils::Scanner::scanDirectory (338)
> Adding
> file:///music/MP3/other/The%20Decemberists/01%20-%20Valerie%20Plame.mp3
> to database.
> [08-12-02 08:46:43.5157] Slim::Utils::Scanner::scanDirectory (338)
> Adding
> file:///music/MP3/other/The%20Decemberists/02%20-%20Days%20Of%20Elaine.mp3
> to database.
> [08-12-02 08:46:43.6278] Slim::Utils::Scanner::scanDirectory (338)
> Adding
> file:///music/MP3/other/The%20Decemberists/03%20-%20O%20New%20England.mp3
> to database.
> [08-12-02 08:46:43.6637] Slim::Utils::Scanner::scanDirectory (338)
> Adding
> file:///music/MP3/other/The%20Decemberists/04%20-%20I%27m%20Sticking%20With%20You.mp3
> to d
> atabase.
> [08-12-02 08:46:43.6997] Slim::Utils::Scanner::scanDirectory (338)
> Adding
> file:///music/MP3/other/The%20Decemberists/05%20-%20Record%20Year.mp3
> to database.
> [08-12-02 08:46:43.7355] Slim::Utils::Scanner::scanDirectory (338)
> Adding
> file:///music/MP3/other/The%20Decemberists/06%20-%20Raincoat%20Song.mp3
> to database.
> [08-12-02 08:46:43.8564] Plugins::AutoRescan::Plugin::poller (296) One
> or more scans have been performed. Now performing cleanup
> [08-12-02 08:48:31.2715] Plugins::LazySearch2::Plugin::scanDoneCallback
> (2034) Lazifying database items not already done
> [08-12-02 08:48:32.1612] Plugins::LazySearch2::Plugin::encodeTask
> (2299) Database lazification completed
>
> Anybody seen this?  I'll file a bug later....
>
> Eric
>
>
>    
_______________________________________________
beta mailing list
beta@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to