MediaSmartServer.net
http://www.mediasmartserver.net/forums/

Media Collector Service - High CPU Usage - RESOLUTION
http://www.mediasmartserver.net/forums/viewtopic.php?f=5&t=6631
Page 1 of 1

Author:  Lump [ Sat Jan 02, 2010 1:23 pm ]
Post subject:  Media Collector Service - High CPU Usage - RESOLUTION

After setting up my new EX490, I noticed very high CPU usage by MediaCollectorClient.exe on one of my PCs. It was constantly pegged at over 50% CPU in task manager (it's a Core 2 Duo system, so this may have been 100% for one core, I'm not sure). I did a bunch of googling and couldn't find a resolution so I'm posting what I found here.

In the Application Event log, I noticed the following error for MediaCollectionLibrary, "Couldn't parse file as MP4 tagged for C:\Users\MYUSERNAME\Music\01_I_ll_Play_The_Blues_For_You__Parts_1_And_2_.m4a: System.Threading.ThreadAbortException: Thread was being aborted." (the full event log message is below). So I stopped the MediaCollectorService service in control panel and renamed/removed the offending file. Then I restarted the service and, viola, CPU usage is now at a reasonable level.

Hopefully this helps somebody else.


Log Name: Application
Source: MediaCollectionLibrary
Date: 1/2/2010 1:46:47 PM
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: MYPCNAME
Description:
Couldn't parse file as MP4 tagged for C:\Users\MYUSERNAME\Music\01_I_ll_Play_The_Blues_For_You__Parts_1_And_2_.m4a: System.Threading.ThreadAbortException: Thread was being aborted.
at Microsoft.Win32.Win32Native.ReadFile(SafeFileHandle handle, Byte* bytes, Int32 numBytesToRead, Int32& numBytesRead, IntPtr mustBeZero)
at System.IO.FileStream.ReadFileNative(SafeFileHandle handle, Byte[] bytes, Int32 offset, Int32 count, NativeOverlapped* overlapped, Int32& hr)
at System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
at MediaCollectionLibrary.M4aReader.ReadInt()
at MediaCollectionLibrary.M4aReader.ReadHeader()
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs()
at MediaCollectionLibrary.MediaInfo.ReadM4A(String mediaFilePath)
Exception:System.Threading.ThreadAbortException
Message:Thread was being aborted.
Source:mscorlib
StackTrace:
at Microsoft.Win32.Win32Native.ReadFile(SafeFileHandle handle, Byte* bytes, Int32 numBytesToRead, Int32& numBytesRead, IntPtr mustBeZero)
at System.IO.FileStream.ReadFileNative(SafeFileHandle handle, Byte[] bytes, Int32 offset, Int32 count, NativeOverlapped* overlapped, Int32& hr)
at System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
at MediaCollectionLibrary.M4aReader.ReadInt()
at MediaCollectionLibrary.M4aReader.ReadHeader()
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs(Int32 curPathElem, Int64 length)
at MediaCollectionLibrary.M4aReader.ReadMdataRecs()
at MediaCollectionLibrary.MediaInfo.ReadM4A(String mediaFilePath)

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/