If Windows Media Player keeps crashing, the fix is usually a corrupted library file, a broken codec, or a graphics driver issue. Start by clearing the media library and resetting the player, then update your graphics driver and disable unwanted codec packs. Below are the step-by-step fixes that resolve most crashes.
Why Windows Media Player Crashes
Windows Media Player (WMP) is a built-in component of Windows, so it rarely crashes on its own. Most crashes trace back to one of these causes:
- Corrupted media library database – WMP stores metadata and thumbnails in a database that can become corrupted after a crash or improper shutdown.
- Incompatible or broken codecs – Third-party codec packs (like K-Lite or CCCP) can conflict with WMP’s built-in codecs, especially after a Windows update.
- Outdated or faulty graphics drivers – Video rendering relies on your GPU; a buggy driver can cause WMP to crash when playing certain video formats.
- Conflicting shell extensions – Some programs add context-menu handlers that interfere with WMP’s file handling.
- DRM or license issues – Protected files with expired or corrupted licenses can trigger crashes.
- Windows updates that broke compatibility – A recent update may have introduced a bug affecting WMP.
Fix 1: Clear the Media Library
The most common cause of crashes is a corrupted media library. Resetting it forces WMP to rebuild its database from scratch.
- Close Windows Media Player completely.
- Press Win + R, type
regedit, and press Enter. - Navigate to
HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player. - Delete the MediaPlayer key (right-click → Delete). This resets all WMP settings and the library.
- Restart WMP. It will prompt you to set up the player again; choose your settings and let it re-scan your music/video folders.
Alternatively, you can delete the library database file directly:
- Open File Explorer and go to
%LOCALAPPDATA%\Microsoft\Media Player. - Delete all files in that folder (they will be rebuilt automatically).
- Restart WMP.
Fix 2: Run the Built-in Troubleshooter
Windows includes a dedicated troubleshooter for Media Player. It can detect and fix common issues like corrupted settings or missing files.
- Open Settings (Win + I) → Update & Security → Troubleshoot → Additional troubleshooters.
- Select Windows Media Player and click Run the troubleshooter.
- Follow the on-screen instructions. It may ask you to restart your PC.
Fix 3: Update or Roll Back Graphics Drivers
Video playback in WMP uses hardware acceleration. If your graphics driver is outdated or buggy, WMP can crash when rendering video.
- Press Win + X and select Device Manager.
- Expand Display adapters, right-click your GPU, and choose Update driver.
- Select Search automatically for drivers. If Windows finds nothing, visit your GPU manufacturer’s website (NVIDIA, AMD, Intel) and download the latest driver.
- If the crash started after a recent driver update, try Roll Back Driver instead.
You can also disable hardware acceleration in WMP to see if that stops the crash:
- In WMP, go to Tools → Options → Performance tab.
- Under Video acceleration, drag the slider to None.
- Click Apply and restart WMP.
Fix 4: Remove or Repair Codec Packs
Codec packs are a frequent culprit. They often install outdated or conflicting codecs that override WMP’s built-in ones.
- Go to Settings → Apps → Apps & features.
- Look for any codec pack (e.g., K-Lite Codec Pack, Combined Community Codec Pack, or similar).
- Uninstall it. Then restart your PC and test WMP.
- If the crash disappears, you have the option to reinstall a newer version of the codec pack, but many users find WMP works fine without them for common formats (MP4, AVI, WMV).
If you need codecs for less common formats, consider using a different player like VLC, which bundles its own codecs and avoids the conflict entirely.
Fix 5: Re-register WMP Components
If WMP’s DLLs are unregistered or corrupted, re-registering them can fix crashes.
- Open Command Prompt as administrator (right-click Start → Command Prompt (Admin) or Windows Terminal (Admin)).
- Type the following commands, pressing Enter after each:
regsvr32 wmp.dll regsvr32 wmploc.dll regsvr32 wmpdxm.dll
- Restart your PC.
If you get an error like “module not found,” you may need to run sfc /scannow to repair system files.
Fix 6: Reinstall Windows Media Player
As a last resort, you can reinstall WMP using Windows Features.
- Open Control Panel → Programs → Turn Windows features on or off.
- Uncheck Media Features (which includes Windows Media Player). Click OK and restart.
- Go back to the same dialog, re-check Media Features, and restart again.
This reinstalls WMP with default settings and files.
Alternative: Switch to a Different Player
If WMP continues to crash despite all fixes, consider using a different media player. VLC Media Player is a popular free option that handles almost any format and rarely crashes. Other good alternatives include MPC-HC (Media Player Classic Home Cinema) and PotPlayer. These players don’t rely on Windows codecs, so they avoid most compatibility issues.
Frequently Asked Questions
Why does Windows Media Player crash only when I play certain files?
That points to a codec problem. The file uses a codec that WMP doesn’t have or that conflicts with an installed codec pack. Try playing the file in VLC to see if it works; if it does, the issue is WMP’s codec handling. You can also try converting the file to a more common format like MP4 using a free converter.
Will uninstalling codec packs fix the crash?
Yes, in many cases. Codec packs can override WMP’s built-in codecs and cause instability. Uninstall them and test WMP. If you need specific codecs, install a fresh, updated version of the pack, but be aware that conflicts can still occur.
Does Windows Media Player still work on Windows 11?
Windows 11 includes Windows Media Player, but it’s a separate app called “Media Player” that you can install from the Microsoft Store. The classic Windows Media Player is also available as a feature. If the new Media Player crashes, try the classic one, or vice versa.
Can a corrupted media library cause the crash?
Yes, a corrupted library database is one of the most common causes. Resetting the library (as described in Fix 1) often resolves crashes immediately. Your media files themselves are not affected; only the database that stores metadata and thumbnails is rebuilt.
Is it safe to delete the registry key for Windows Media Player?
Yes, but only the key mentioned in Fix 1: HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player. This resets WMP’s settings and library. Deleting other MediaPlayer keys could cause issues, so stick to the exact path. Always back up your registry before editing it, just in case.
Why does WMP crash when I minimize or maximize the window?
This often relates to graphics driver issues or hardware acceleration. Try disabling video acceleration in WMP’s Performance settings. If that doesn’t help, update your graphics driver. In some cases, third-party overlay software (like Discord or game overlays) can also interfere.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Unfortunately App Has Stopped: Step-by-Step
- Restart a Frozen Samsung Galaxy A12
- HomePod Stereo Pair with AirPlay 2 from iPhone
- Fix 0x8e5e0247 Error on Windows
- Pixel & Pixel XL No Sound: Solved?
- How to Edit Playlists on iPhone