Discord Keeps Closing and Opening: Fix Crash Loop
In this article
Discord keeps closing and opening because of corrupted local cache files, outdated software versions, or conflicting background applications that force the app to restart repeatedly. To resolve this issue immediately, you need to clear the application's cache data, update the client to the latest version, and disable hardware acceleration settings that may be causing rendering conflicts on your specific graphics card.
What You'll Need
- A Windows PC, Mac, or Linux machine with Discord installed (or mobile device for iOS/Android steps)
- Administrator privileges on your computer to modify system files or permissions
- The official Discord website URL for downloading fresh installers if necessary
- A stable internet connection to verify updates and re-download assets
Step-by-Step
- Force Close Discord Completely: Simply clicking the X button often leaves the app running in the background. On Windows, press Ctrl+Shift+Esc to open Task Manager, find "Discord" in the processes list, right-click it, and select End Task. On Mac, use Cmd+Option+Esc to force quit the application. This ensures no residual processes interfere with the fix.
- Clear the Local Cache: Corrupted cache files are the most common cause of infinite restart loops. On Windows, press Win+R, type %appdata%\Discord, and press Enter. Delete all folders inside this directory except the "modules" folder. On Mac, navigate to ~/Library/Application Support/Discord and delete the contents similarly. This forces Discord to rebuild its cache from scratch upon next launch.
- Disable Hardware Acceleration: Graphics driver conflicts often cause the app to crash immediately after opening. Open Discord (if possible) or access the settings via a secondary method. Go to User Settings > Advanced > Disable Hardware Acceleration. If the app crashes before you can access settings, you may need to rename the config file in the AppData folder to reset these preferences entirely.
- Update Discord: An outdated version may conflict with recent OS updates. Check for updates manually within the app by going to User Settings > About > Check for Updates. If the app won't open, visit the official Discord website on a browser, download the latest installer, and run it over your existing installation to repair broken files.
- Reinstall the Application: If clearing the cache did not work, perform a clean reinstall. Uninstall Discord via your operating system's standard uninstaller. Then, manually delete the remaining Discord folders in AppData (Windows) or Library/Application Support (Mac) as described in step 2. Finally, download a fresh copy from the official site and install it.
Common Mistakes
Users often try to fix the crash loop by simply restarting their computer without actually clearing the Discord cache files. This is ineffective because the corrupted data persists on the hard drive even after a reboot. Another common error is ignoring administrator permissions; attempting to delete cache folders without proper rights will fail silently, leaving the problem unresolved. Additionally, some users attempt to edit system registry keys or use third-party "cleaner" tools which can introduce new instability rather than fixing the core application files.
Tips
Always back up your login cookies or ensure you know your password before deleting the AppData folder, as this action logs you out of all accounts. If you frequently experience crashes, consider installing the "Canary" or "PTB" (Public Test Build) versions of Discord temporarily to see if the issue is isolated to the main stable release. Keep your graphics drivers updated, as GPU conflicts are a frequent culprit for rendering-related crashes. Use the official Discord status page to check if the issue is widespread server-side downtime rather than a local configuration error.
Troubleshooting
If Discord still crashes after following the steps above, the issue may lie deeper within your system configuration. First, check your antivirus software; sometimes security programs flag Discord's auto-update mechanism as suspicious and block execution. Add Discord to your antivirus exclusion list and retry. Second, run a system file check by opening Command Prompt as Administrator and typing sfc /scannow to repair any corrupted Windows system files that might affect app stability. Third, create a new user profile on your computer and log into Discord there; if it works, your primary user profile is corrupted. If none of these methods work, the issue may be related to specific voice chat modules, in which case disabling voice chat in settings might allow the app to remain open long enough to diagnose further.
Frequently Asked Questions
Will clearing the cache delete my messages?
No. Clearing the local cache only removes temporary files like images, icons, and cached web content. Your message history, friend lists, and server data are stored on Discord's servers and will sync back automatically when you log in again.
Why does Discord crash only when I join a voice channel?
This usually indicates a conflict with your audio drivers or the hardware acceleration feature. Try updating your sound card drivers, switching your input/output devices in Discord settings, or disabling hardware acceleration as mentioned in the steps above.
Is it safe to delete the Discord folder in AppData?
Yes, it is safe provided you have your login credentials ready. Deleting this folder resets the app to its default state. It does not delete your account or server data, but it will log you out and remove custom settings.
How do I force close Discord on a Mac?
Press Command + Option + Esc to open the Force Quit Applications window. Select Discord from the list and click "Force Quit." Alternatively, you can right-click the Discord icon in the Dock and select Quit, though Force Quit is more reliable if the app is frozen.
Can a bad internet connection cause Discord to crash?
Generally, no. A poor connection will cause lag, disconnects, or failure to load channels, but it rarely causes the application itself to close and reopen repeatedly. Crash loops are almost always caused by local software corruption or hardware conflicts.