Bug 4056 - System scan continually with Moodlogic Enabled
: System scan continually with Moodlogic Enabled
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: MoodLogic
: 6.5b1
: PC Windows Server 2003
: P2 major (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-05 17:29 UTC by Greg Hamilton
Modified: 2008-09-15 14:39 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Hamilton 2006-09-05 17:29:18 UTC
System scan upon startup and will be scanning for days.  
Beging of the log show:  I can assure you the library has not changed in at least a week.

C:\6.5\server>perl slimserver.pl --d_moodlogic
2006-09-05 20:24:50.7881 MoodLogic: music library has changed!
2006-09-05 20:24:55.8121 MoodLogic: music library has changed!
2006-09-05 20:24:59.6037 About to look for files in D:\My Music
2006-09-05 20:24:59.6054 For files with extensions in: [(?i-xsm:\.(?:ape|wma|shn|wav|wave|mp3|mp2|flc|flac|m4a|mov|m4b|mp4|mp+|mpc|o
gg|aif|aiff|lnk|cue)$)]
commit ineffective with AutoCommit enabled at C:\6.5\server\CPAN/DBIx/Class/Storage/DBI.pm line 706.
Commmit ineffective while AutoCommit is on at C:\6.5\server\CPAN/DBIx/Class/Storage/DBI.pm line 706.
DBD::mysql::db commit failed: Commmit ineffective while AutoCommit is on at C:\6.5\server\CPAN/DBIx/Class/Storage/DBI.pm line 706.
2006-09-05 20:25:06.9732 ERROR: DBD::mysql::db commit failed: Commmit ineffective while AutoCommit is on at C:\6.5\server\CPAN/DBIx/
Class/Storage/DBI.pm line 706.

2006-09-05 20:25:06.9776 ERROR: Backtrace follows:

2006-09-05 20:25:06.9894 Backtrace:

   frame 0: Slim::Schema::throw_exception (C:\6.5\server\CPAN/DBIx/Class/Schema.pm line 606)
   frame 1: DBIx::Class::Schema::txn_do (C:/6.5/server/scanner.pl line 257)
   frame 2: (eval) (C:/6.5/server/scanner.pl line 249)
   frame 3: main::setIsScanning (C:/6.5/server/scanner.pl line 133)
   frame 4: main::main (C:/6.5/server/scanner.pl line 334)

2006-09-05 20:25:07.0077 About to look for files in D:\My Music
2006-09-05 20:25:07.0103 For files with extensions in: [(?i-xsm:\.(?:ape|wma|shn|wav|wave|mp3|mp2|flc|flac|m4a|mov|m4b|mp4|mp+|mpc|o
gg|aif|aiff|lnk|cue)$)]
Comment 1 KDF 2006-09-05 19:55:19 UTC
so, are you saying that with moodlogic disabled, there is no problem?
Comment 2 Greg Hamilton 2006-09-06 17:54:06 UTC
Correct,

No problems with moodlogic disabled in the prefs.
Comment 3 KDF 2006-09-06 18:11:55 UTC
try setting the moodlogic reload interval to 0 or something larger and see if the timing matches it?
Comment 4 Greg Hamilton 2006-09-07 03:23:28 UTC
With a reload interval=0 there is no problem and a forced scan generated no error or backtrace.
With a reload interval=7200 and a library change, there is a backtrace in scanner.pl  Currently waiting to see if it loops the scan. 
Comment 5 Chris Owens 2006-09-07 14:06:51 UTC
adding Dan to the cc list
Comment 6 Greg Hamilton 2006-09-07 19:19:28 UTC
Wanted to follow-up.  After running about 16 hours, the server is scanning and appears to have been looping all day.
Going to try to set the pref back to zero to see if things sort themselves out.  
Comment 7 Greg Hamilton 2006-09-07 19:42:26 UTC
Setting the prefs, to zero stopped the loop however the song, album, and artist counts appear to be wrong.
Rescanning now, with pref set to zero.

Perhaps the default pref should be zero.
Comment 8 Dan Sully 2006-09-08 08:39:14 UTC
*** Bug 4066 has been marked as a duplicate of this bug. ***
Comment 9 jeff 2006-09-08 08:50:06 UTC
I was the submitter of bug 4066, which was just marked as a dupe of this bug.

I wanted to make sure that it wasn't overlooked that it was MusicMagic, and not MoodLogic that was causing the issue in the bug I had submitted.

I see that these are similar issues with similar behavior, but I thought it important to point out that it isn't just MoodLogic triggering infinite scans.
Comment 10 KDF 2006-09-08 10:17:18 UTC
dan wrote the code, I'm sure he knows what he's doing.
Comment 11 Dan Sully 2006-09-09 21:00:58 UTC
Fixed in change 9560