INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MC eating all of one CPU after hibernation  (Read 1755 times)

muchadhesion

  • Recent member
  • *
  • Posts: 44
MC eating all of one CPU after hibernation
« on: February 02, 2011, 03:36:32 pm »

Hello,

There is a problem I've been having with MCv14 for some time now which is driving me nuts.  I've found some information, which might resonate with the MC devs?

Sometimes after hibernation MC is using 100% of one of my 4 CPUs in my Laptop causing the fan to spin up to full noise.  It continues until I kill MC, and restart it.

In process explorer (procexp.exe) I can see the thread (3724) that is creating all the activity.


...and in Visual Studio I can see the 3724 thread Priority is set to "Lowest".  (It's the only thread with this priority.)

...and in the MC logs I found this:

0355589: 7024: Import: Finish: Updating view schemes
0355620: 7024: Import: Finish: Updating UI (bWorkPerformed = 0)
0355620: 7024: Import: Finish: Notify UI of finish
0355620: 7024: Import: Finish: Destroying
0355620: 7024: Import: CSynchronizeDatabase::UpdateWatchFolders: Start
0355620: 7024: Import: CSynchronizeDatabase::UpdateWatchFolders: Starting watch thread
0355620: 3724: Import: CWatchFoldersThread::Thread: Start
0355620: 4468: Import: CWatchFoldersThread::Thread: Finish (331128 ms)
0355620: 3724: Import: CWatchFoldersThread::Thread: Watching folder '\\ramesses\music\'
0355636: 7024: Import: CSynchronizeDatabase::UpdateWatchFolders: Finish (16 ms)
0361345: 7024: SDK: CMJCurPlaylistAutomation::CMJCurPlaylistAutomation: Global Count: 5
0361345: 7024: SDK: CMJPlaybackAutomation::CMJPlaybackAutomation: Global Count: 4


Is it possible that the CWatchFoldersThread is burning 100% CPU after hibernation/wake-up, if it is set to scan a UNC network drive?

I hope this makes sense to the MC devs, because I enjoy using MC enormously.

thanks,
m




Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71634
  • Where did I put my teeth?
Re: MC eating all of one CPU after hibernation
« Reply #1 on: February 02, 2011, 03:40:15 pm »

It's more likely to be a virus checker or some other "security" program.

Maybe the drive has spun down.

Please try the "Weird Problems" thread in my signature for ideas.
Logged

muchadhesion

  • Recent member
  • *
  • Posts: 44
Re: MC eating all of one CPU after hibernation
« Reply #2 on: February 02, 2011, 03:58:46 pm »

> Maybe the drive has spun down.

Almost certainly - it's a NAS, (not on my Laptop.)

Additionally, the network connection to my NAS will have been interrupted over hibernation.  MC probably wakes up before wi-fi kicks in.

> It's more likely to be a virus checker or some other "security" program

Hmmm... I'm not sure how I would diagnose/eliminate this.

The CPU cycles are going into the MC.exe process, to a specific thread.  (Which I can manually kill with no noticeable ill effects, other than a quiet fan.)

Is it likely that a virus checker would be "inside" MC.exe in this way, eating CPU cycles in an MC thread?

 
Thanks for any further thoughts...
Logged

muchadhesion

  • Recent member
  • *
  • Posts: 44
Re: MC eating all of one CPU after hibernation
« Reply #3 on: February 02, 2011, 04:13:00 pm »

Right....

I've just reproduced, and if I remove my "\\ramesses\music" NAS from
"Options | Auto-Import Folders"
then the 100% CPU thread disappears, (along with the fan noise.)

> 0333125: 4640: Import: CWatchFoldersThread::Thread: Finish (82712 ms)

That is a useful discovery.  I'll stick with manual drive scanning for now (for a quiet fan).

cheers,
m


Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71634
  • Where did I put my teeth?
Re: MC eating all of one CPU after hibernation
« Reply #4 on: February 02, 2011, 04:14:04 pm »

Did you check the thread I mentioned?  It has two pages.  Search for CPU.

You would be surprised how often virus checkers are at the root of this kind of problem.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42046
  • Shoes gone again!
Re: MC eating all of one CPU after hibernation
« Reply #5 on: February 02, 2011, 04:33:12 pm »

This is a known issue.  Monitoring folder changes on some network drives causes trouble after waking from sleep.

We haven't been able to reproduce it here.  For now, disable watching of network shares.

If you'd like to help test a possible fix, please send me a note at matt at jriver dot com.

Thanks.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up