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.

Powered by WordPress