Jump to content

Scan Failed: Collection was modified; enumeration operation may not execute


matty87a
 Share

Recommended Posts

Hi,

 

In the last few days I have been receiving the following error notification:

 


Scan media library failed.

7 minutes ago

Collection was modified; enumeration operation may not execute.

 

This doesn't happen on every scan and content still seems to be added without issue.

 

I initially thought it may be due to auto box sets so i completely removed all colelctions, removed the plugin and re-added but the issue persists.

 

log extract:


 

2016-02-26 09:56:52.8388 Error TaskManager: Error

        *** Error Report ***

        Version: 3.0.5871.0

        Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh

        Operating system: Unix 3.14.32.6

        Processor count: 4

        64-Bit OS: True

        64-Bit Process: True

        Program data path: /var/lib/emby-server

        Mono: 4.0.3 (Stable 4.0.3.20/d6946b4 Thu Aug 13 12:46:26 UTC 2015)

        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe

        Collection was modified; enumeration operation may not execute.

        System.InvalidOperationException

          at System.Collections.ArrayList+ArrayListEnumeratorSimple.MoveNext () [0x00000] in <filename unknown>:0

          at System.IO.InotifyWatcher.StopDispatching (System.IO.FileSystemWatcher fsw) [0x00000] in <filename unknown>:0

          at System.IO.FileSystemWatcher.Stop () [0x00000] in <filename unknown>:0

          at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean value) [0x00000] in <filename unknown>:0

          at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool)

          at MediaBrowser.Server.Implementations.IO.LibraryMonitor.Stop () [0x00000] in <filename unknown>:0

          at MediaBrowser.Server.Implementations.Library.LibraryManager+<ValidateMediaLibraryInternal>c__async2.MoveNext () [0x00000] in <filename unknown>:0

        --- End of stack trace from previous location where exception was thrown ---

          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0

          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0

          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0

          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0

          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <filename unknown>:0

          at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>c__async2.MoveNext () [0x00000] in <filename unknown>:0

 

 

 

Is anybody else seeing this?

 

 

Full log is attached but zipped as its large

 

server-63592075765.zip

Link to comment
Share on other sites

I got this at some point last night. But i am running it (Emby Server Version 3.0.5887.0) on Windows 10 not Ubuntu. Next time it happens i will attach the log file.

Link to comment
Share on other sites

Thanks. I will review for the next release. the workaround in the meantime is to disable the realtime monitor under library -> advanced

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...