Trancefussion Tell me this is real. Are you …?

July 6, 2010

Windows Media Player 12 – wmplayer.exe or wmpnetwk.exe 100% CPU – FIX

Filed under: Technology — liam @ 8:40 am

I seem to keep running into this problem with every installation of Windows I have, but until recently I figured out exactly what was really happening. First, I’ll give you some background of the issue.

If you’re in an urgency, scroll down to “OMG a Fix!”.

Background

Apparently, WMP12 (and possibly 11, too) is an incredibly stubborn piece of software that *insists* on keeping a Library of all your media, be it pictures, movies, music, anything that it can possibly read. This usually wouldn’t be a problem, as it can keep things organized and centralized in a very annoying and awful nice place, but all that sweet concept ends when it finds media that it cannot recognize, such as corrupted music files, or avi movies encoded by some experimental and very advanced program that only its creator can understand; when this happens, WMP simply goes into brainless mode and stubbornly locks itself trying to read the media, consuming all your CPU for as long as the process is active. Normally, you’d think reading a massive library would take quite some time to do it, except WMP will never succeed, ever (trust me, I’ve left the computer alone for hours to see if it eventually manages to do it).

The best solution for this, would be to check your media files and be sure they’re not corrupted, to be standard compliant, not broken, virus free and other stuff like that, but this is not so simple when you have tons of stuff lying around, specially if you’re someone that works constantly and simultaneously with lots of media.

OMG a FIX!

So, the solution? There seems to be quite a few suggestions. Take this URL for instance, it’s from the Microsoft forums. The tech guys in there suggest disabling a lot of things, or even tell you that your installation is simply badly done so you should reinstall everything. Hell, some even tell you to not have your media on places like Music, Videos and Pictures, but why would we want to do that as a workaround in the first place? Those suggestions are terrible.

My solution, though a workaround still, is a bit less “user friendly”, but it’s a permanent one for as long as your installation stays the same. It involves tweaking a file that seems to be holding the Library data. When this file is locked to not receive data (read-only), WMP stops trying to fill it, and therefor stops to try to index your media. The file in question is called “CurrentDatabase_372.wmdb“, which might be named differently on your system, and is allocated at “C:\Users\[Your Username]\AppData\Local\Microsoft\Media Player” for users on Windows 7 and Windows Vista.

All you gotta do is find it via Windows Explorer, then right click on the file, then choose Properties, and then change the attribute “Read-Only” by marking the checkbox, followed by Apply or OK. I recommend that you either backup the file or delete it and then replace it with a dummy with 0 bytes on it (such as an empty text file by creating a new one in the same directory). Obviously, you should do this when both wmplayer.exe and wmpnetwk.exe are closed. To do this, just goto the Windows Task Manager, then Processes and kill both of them.

The inconvenience? Well, by doing this you’re completely disabling the Media Library for Windows Media Player, and while this may seem like a bad trade-off, for those of us that really do not have a use for it, it’s a completely harmless sacrifice. The Library won’t be able to receive any changes unless you go to that directory and revert the changes so the file is no longer Read-Only.

Also, if this seems like a bad solution for you cause you want to keep your Media Library, you should check the state of your files. The lockout suffered by either of these processes reflects an issue with your media, which doesn’t necessarily mean you’re doing anything explicitly wrong, it’s just that WMP is very tricky when it finds something it doesn’t like. This often happens when you hold mp3s in your Music directory, that were encoded by some of the newest (or perhaps strangest) encoders of late, which again it doesn’t mean they’re bad, it’s just that they may be using instructions that WMP doesn’t recognize.

Anyway, hope you find this solution useful. If you got any questions, feel free to drop a comment.

8 Comments »

  1. Awesome! Thanks for these great solution, it was really frustrating me, I disabled the wmpnetwork but that wasn’t really a good solution cause I still need my Xbox to work as an extender. Now my xbox still works and cpu is down to zero, thanks!

    Comment by GieJay — August 25, 2011 @ 5:58 am

  2. my file you said to tweak was allready read only so I went into the file media player and just right clicked all the blue configuration files and put them to read only. Hopefully will have the same effect but I wouldn’t really know

    Comment by Lee — September 13, 2011 @ 12:37 pm

  3. Hi:

    On the face of it this sounded good to me but in practice WMP simply recreated the CurrentDatabase file every time I played something in WMP! So I still have 100% CPU and no solution.

    Comment by Geoff Leonard — November 26, 2011 @ 9:56 am

  4. Woa, I know its been months, but just in case anyone else happens to run here, let me address what Geoff was having issues with.

    The problem you’re experiencing is because you did not delete the wmdb file, or rather, you didn’t place a dummy with 0 bytes. It is important that you try to make it 0.

    To do this, you’d goto the folder in question, create an empty file (with Notepad for instance, by Right Clicking in an empty space, selecting New, then Text Document), and then rename this new file to your wmdb file, which should usually be CurrentDatabase_372.wmdb.

    For that to work, you’d have to either rename the wmdb file that’s already in place or delete it. If windows tells you that the file cannot be changed cause its in use, it means your Windows Media Player is open, or at least its process is still active. To solve that, you have to goto the Task Manager, and kill the process belonging to Windows Media Player.

    Comment by liam — January 17, 2012 @ 12:05 am

  5. One thing I’d like to say is always that before acquiring more computer memory, check out the machine directly into which it would be installed. In case the machine is usually running Windows XP, for instance, the actual memory limit is 3.25GB. Applying more than this would easily constitute just a waste. Make certain that one’s motherboard can handle this upgrade quantity, as well. Good blog post.

    Comment by Michale Foshee — May 20, 2012 @ 8:12 pm

  6. I looked in the directory you said in windows 7 cant find that file.

    Comment by joseph ferrante — November 29, 2012 @ 2:00 pm

  7. Grandioso, gran soluciĆ³n, me funciono muy bien y a si ya solo lo activare cuando yo quiera…

    Comment by AAS — December 2, 2012 @ 5:19 am

  8. Hello, I enjoy reading through your post. I wanted to write a little comment to support
    you.

    Comment by Aileen — May 2, 2013 @ 10:52 pm

RSS feed for comments on this post.

Leave a comment

Powered by WordPress