You're in the middle of a ranked queue, the timer hits zero, and then—boom. A grey box pops up: "Unexpected Error." The client freezes, the game closes, and you're stuck staring at your desktop. This happens most often right when you click the big orange Play button on the home screen, or sometimes during the champ select transition. I've seen it on fresh Windows 11 installs and on older Windows 10 machines that haven't seen a driver update in years. It's not your internet—it's almost always a corrupted game file or a background process blocking Riot's anti-cheat.
What's really going on
Riot's client (the one that looks like a futuristic arcade) expects certain files to be exactly as they were when the game was last patched. If even one file gets out of sync—maybe a Windows update overwrote a DLL, or a crash left a half-written file—the client bails out with that generic "Unexpected Error" because it doesn't want to load a broken game. Also, Riot Vanguard (their kernel-level anti-cheat) is notoriously picky about other anti-cheat software or even some overclocking tools. If Vanguard can't load or gets blocked, you'll see this error before the game even tries to start.
Let's fix it step by step. Do these in order—skip the last ones if you're in a hurry, but this is the order that solves 90% of the cases I've run into.
The fix
- Fully close the client — Don't just hit X. Open Task Manager (Ctrl+Shift+Esc) and look for LeagueClient.exe, RiotClientServices.exe, and Vanguard. Right-click each one and select End task.
- Run the repair tool — Open the Riot Client (the little launcher you use to pick League, Valorant, etc.). Click your profile icon in the top right, then go to Settings → League of Legends → Repair. The client will scan and redownload any broken files. This takes 5-15 minutes depending on your hard drive. Don't close the window—it looks stuck sometimes, but it's working.
- Check Vanguard — If repair didn't fix it, Vanguard is your culprit. Right-click the Vanguard icon in the system tray (looks like a green shield), click Pause Vanguard or Exit. Then relaunch League. If it works, you know Vanguard was blocking something. You'll need to re-enable Vanguard after, but now you know what to look for.
- Delete the cache folders — Still stuck? Close the client again, then open File Explorer and go to
%ProgramData%\Riot GamesandC:\Users\. Delete everything inside those folders (don't worry, they're just cache and logs). Then relaunch the client. This forces it to rebuild all its temporary files from scratch.\AppData\Local\Riot Games
Still failing? Check these
If you've done all that and the error is still there, the problem might be outside the game folder itself.
- Windows updates — Go to Settings → Windows Update and install any pending updates. I had a client last month whose Windows 11 was stuck on a build from 2023, and every game that uses kernel anti-cheat just refused to launch until he updated.
- Graphics drivers — Outdated drivers don't usually cause this exact error, but they can cause a crash that corrupts the game files. Update your GPU driver from NVIDIA's or AMD's site directly—Windows Update's version is usually behind.
- Overclocking software — MSI Afterburner, ASUS GPU Tweak, and even some RAM overclocking profiles in BIOS can trigger Vanguard. Turn them off temporarily and see if the error goes away.
- Reinstall fully — If all else fails, uninstall League using the Riot Client's uninstall option, then delete the
C:\Riot Gamesfolder manually (or wherever you installed it). Then do a fresh install. It's a pain, but it's a guaranteed fix—unless your hard drive is failing, in which case you'd see other errors too.
One more thing—if you're on a corporate laptop or a school PC, the IT admins might be blocking Vanguard's backend connections. That'll cause this error every time, and no local fix will help. You'll need to talk to whoever controls the network.
That's it. Run the repair first—that solves most cases. If it doesn't, blame Vanguard. And if you're still stuck, do the full reinstall. You'll be back in the rift in under an hour.