FIX: hl2.exe has stopped working

The game crashes to the desktop right after you click “Play,” sometimes before the main menu or while loading a map. The error “hl2.exe has stopped working” means the game’s main program had a serious problem and had to close.

This usually happens because of broken or outdated files, like shaderapidx9.dll, or leftover files from old mods like cheat.dll. Other reasons could be old graphics drivers, missing DirectX files, damaged game files, or custom maps that weren’t made correctly.

1. Check Your System Requirements

Some Source engine-based games require certain system specifications, like a minimum amount of RAM, enough storage space, a DirectX-compatible system, and a supported graphics card (VGA card). It’s very important to make sure your computer meets these requirements before trying to run the game. You can usually find the minimum system requirements on the game’s order page or retail box.

  1. Hold the Windows Key and Press R. In the Run dialog box, type dxdiag and click OK.2015-12-02_081616
  2. You will see four tabs at the top that show information about your system, which you can compare with the game’s requirements.2015-12-02_081920

2. Temporarily Disable Your Antivirus/Firewall

Security programs sometimes block the game or add software that doesn’t work well with it. Turning off your antivirus or firewall for a short time can help you see if they are causing problems, like making hl2.exe crash when starting the game or trying to go online.

  1. Click the Start Button and choose Control Panel. Under the System and Security tab, select Review your computer status. Click the down arrow button to expand the section.2015-12-02_082304
  2. Your antivirus software will appear under Virus protection if it is detected. You can usually disable your antivirus by right-clicking its icon in the system tray (bottom right corner of your screen) and choosing the option to disable it.

If disabling your antivirus or anti-spyware doesn’t solve the problem, you might need to completely uninstall these programs until an update comes from the software developers. If disabling your antivirus lets the game launch, you may want to reset or reinstall your antivirus software afterwards.

3. Adjust Data Execution Prevention (DEP) Settings

Windows can sometimes stop hl2.exe if it thinks the game is acting suspiciously with memory. To fix this, you can add hl2.exe to a list of exceptions, so Windows lets it run without shutting it down by mistake.

  1. Go to Start > Control Panel > System > Advanced System Settings > Performance Settings > Data Execution Prevention.
  2. Select “Turn on DEP for all programs and services except those I select:”
  3. Click “Add” and go to your Steam installation folder (usually C:\Program Files\Steam), then add Steam.exe to the list of exceptions. You may also need to add the game’s executable file, such as hl2.exe, to the exception list. These files are typically found in Steam\steamapps\common\<Game Title> or Steam\steamapps\<Your Steam Account Name>\<Game Title>\.2015-12-02_083206

4. Disable Background Applications

Source engine-based games can use a lot of your computer’s resources. If you have many background programs running while playing, the game might crash if it can’t get enough resources.

  1. Hold the Windows Key and Press R. Type msconfig and click OK. In the Startup tab, select “Disable all,” then click Apply/OK. Restart your computer and test the game.2015-12-02_082818
  2. In Windows 8/8.1 and 10, the Startup section opens in Task Manager. You can right-click any program listed under the Startup tab and select Disable.
  3. If this doesn’t help, open msconfig again and go to the Services tab. Check Hide All Microsoft Services and then click Disable All. Click Apply/OK. Reboot your computer and test the game again.

2015-12-02_083004

5. Uninstall and Reinstall the Game

Download the Revo Uninstaller trial from www.revouninstall.com, find the game in the list, and uninstall it. While still in the Revo Uninstaller window, you’ll be prompted to choose how to remove leftover files and registry traces—select “Advanced” and delete any leftovers. After that, reinstall or re-download the game and see if it works properly.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.