INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: cascius on June 15, 2005, 12:46:57 am

Title: Deleting files from smartlist takes a lot of CPU
Post by: cascius on June 15, 2005, 12:46:57 am
I'm having a problem when deleting items from my duplicate smartlist, MC stops responding (using 50% CPU). The music and library are on a removable HDD if that matters at all.

- Cas

Code: [Select]
Media Center Registered 11.0.293 -- C:\Program Files\J River\Media Center 11\

Microsoft Windows XP 5.1 Service Pack 2 (Build 2600)
Intel Pentium 4 2989 MHz MMX / Memory: Total - 523 MB, Free - 256 MB

Internet Explorer: 6.0.2900.2180 / ComCtl32.dll: 5.82 (xpsp_sp2_rtm.040803-2158) / Shlwapi.dll: 6.00.2900.2627 (xpsp_sp2_gdr.050309-1648) / Shell32.dll: 6.00.2900.2620 (xpsp_sp2_gdr.050225-1820) / wnaspi32.dll: N/A
Ripping /   No CD drives found.
  Digital playback: Yes /  Use YADB: Yes /  Get cover art: No /  Calc replay gain: Yes /  Copy volume: 32767
  Eject after ripping: Yes /  Play sound after ripping: No 

Burning /  No burners found.
  Test mode: No /  Eject after writing: Yes /  Direct decoding: Yes /  Write CD-Text: Yes
  Use playback settings: No /  Normalization: None
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: Alex B on June 15, 2005, 02:06:14 pm
I'm having a problem when deleting items from my duplicate smartlist, MC stops responding (using 50% CPU). The music and library are on a removable HDD if that matters at all.

This happens also on my PC when deleting files from my Missing Files smartlist. Rule: [=IsMissing([Filename])]

The CPU usage would be ~100%, but because I have P4 HyperThreading enabled and MC uses only one of the two virtual processors it is only 50%.
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: Matt on June 15, 2005, 04:25:26 pm
This happens also on my PC when deleting files from my Missing Files smartlist. Rule: [=IsMissing([Filename])]

The CPU usage would be ~100%, but because I have P4 HyperThreading enabled and MC uses only one of the two virtual processors it is only 50%.

That expression is physically checking for every file.  It could be very slow depending on your environment.
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: Alex B on June 15, 2005, 04:43:11 pm
That expression is physically checking for every file. It could be very slow depending on your environment.

Yes, I know, but that is not what happens. In this case CPU usage maxes out and MC hangs totally. It will not recover. Only killing it in Task Manager helps.
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: Alex B on June 15, 2005, 05:12:39 pm
Effectively the problem crashes MC instantly when "delete from library" is accepted. I just mentioned the CPU usage because probably also cascius uses HyperThreading.
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: Matt on June 15, 2005, 05:29:55 pm
Can you reproduce on other smartlists?

Can you reproduce if you don't delete from disk?

Thanks for any more details.
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: Alex B on June 16, 2005, 06:13:49 am
This is interesting. I can't reproduce the problem anymore after booting the PC this morning. Executing the search takes a long time (as always) and a during the search CPU usage is only 3-7% (I didn't check that earlier). Once the smartlist is ready I have no problems deleting missing files from the library. The other smartlists work OK too. I can delete files from the library and from the disk.

Yesterday I could reproduce the problem after a reboot. I wonder what happened during the last night. Perhaps MC was just tired and needed some rest.  ?  ;D

cascius, can you tell anything more about your case?
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: SwellGuy on June 16, 2005, 10:04:49 am
The SmartList deleting problem fix will be in the next build.
Title: Re: Deleting files from smartlist takes a lot of CPU
Post by: escaflo on June 16, 2005, 12:54:41 pm
It also happens on my computer sometimes. It even crash MC once when I try to delete duplicate files.

Hopefully it will be fixed next build! =)