Troubleshooting 9 min read

Clash Meta Crashes on Startup: How to Read Logs and Fix It

Troubleshoot Clash Meta startup crashes in order: check port conflicts, YAML syntax, missing mihomo files, and permissions, with fixes for each.

First, determine whether the client or the mihomo core exited

A disappearing window doesn’t always mean a crash. Check the hidden icons in the Windows notification area, the macOS menu bar, or the Linux system tray. If the window is still open but shows “Core not running” or can’t connect to the dashboard, the core probably failed to start. If both the window and tray icon are gone, check the client process’s exit record first. If the logs show that the core started listening, look next for errors from the interface or background service.

  1. Save a complete startup log. Note the time you launched the client, then copy the log from the first error through process exit. If the client still opens, look for “Logs” and an option to open the log folder. If the interface won’t open, check the data directory specified in the client’s documentation. Don’t clear the configuration or repeatedly try to launch the client before saving the log.
  2. Identify the process that failed. On Windows, press Win + R, run eventvwr.msc, then go to “Windows Logs” → “Application.” Find the entry for the time of the failure and check the faulting application name. On macOS, search Console’s crash reports by app name. A crash report may not exist if the app exited normally or a background service failed to start, so check the client’s own logs too.
  3. Note what changed and which versions you’re running. Distinguish a first-time install from a client update, core replacement, or subscription update. Record the client version, core version, and system architecture. If the interface won’t open, run the same core executable with the -v flag to check its version. If it can’t print the version, check the file path, architecture, and execute permissions first.

Port conflicts: Find the process using the reported address

If the log shows bind: address already in use, note the listening address, port, and protocol first. mixed-port and external-controller are separate endpoints. For example, if the reported address is 127.0.0.1:9090 and it belongs to the controller, changing mixed-port won’t help. A client may override port settings in the subscription file, so rely on the current startup log and effective configuration.

Windows: Find the process listening on a port

This example uses TCP port 7890. Run these commands in PowerShell. If the log reports a different port, replace the query value. The second command uses the PID returned by the first to display the process name.

$listeners = Get-NetTCPConnection -LocalPort 7890 -State Listen -ErrorAction SilentlyContinue
$listeners | Select-Object LocalAddress, LocalPort, OwningProcess
$listeners | ForEach-Object { Get-Process -Id $_.OwningProcess }

If the error explicitly mentions UDP, use Get-NetUDPEndpoint -LocalPort 7890 to check the relevant endpoints. No results from the TCP query only means no matching listener was found at the time of the query; it doesn’t rule out a process that has already exited, and a Windows permission error alone doesn’t prove a port conflict. If the log reports restricted socket access and no listener is found, check the IPv4 TCP excluded port ranges with netsh interface ipv4 show excludedportrange protocol=tcp. You don’t need to change the system’s reserved ranges just to start the client.

Exit the old instance before deciding whether to change the port

If the PID belongs to another proxy client, exit it from its tray menu, then check whether the port is free. If a service launched the process, don’t keep terminating it; identify the service first. If you need to run two instances at once, assign a confirmed free port to the conflicting listener—for example, change the mixed proxy port from 7890 to 17890. Afterward, check the system proxy settings managed by the client, browser proxy settings, and other tools for references to the old port. If you changed the controller port, update only the address used by the dashboard; don’t point the system proxy at the controller port.

YAML configuration: Check which file the core actually loads

The original subscription file, client override snippets, and final file passed to mihomo may all differ. When you see yaml: line 18, use the log to identify the file that failed, then inspect line 18 and the few lines above it. The parser may not spot bad indentation or an unclosed quote until it reads the next item. If the log points to a ruleset or proxy provider file, check that file rather than focusing only on the main configuration.

You can validate the configuration with the same mihomo version used by the client. This PowerShell example assumes the core is in the current directory and the configuration to check is C:\Clash\profile.yaml. For troubleshooting, use the configuration path from the log and the data directory the client passes to the core; the latter may affect how relative resource paths are resolved.

.\mihomo.exe -t -d "C:\Clash" -f "C:\Clash\profile.yaml"

A successful configuration check isn’t enough; start the client normally afterward. Validation doesn’t test port binding, TUN initialization, or an actual connection. If edits to the final file are overwritten on the next launch, fix the client’s local overrides or configuration source instead of repeatedly editing an autogenerated file.

Missing core: Tell a missing file from one that can’t run

If the log shows file not found or no such file or directory, first check what operation failed: did the client fail to launch the core, or did the core fail to read a configuration or rules file? Only the first case calls for checking the core installation. Verify the full executable path in the log, make sure the file still exists and its name hasn’t changed, and confirm the archive was fully extracted. Copying only the client app to another folder won’t fix a missing core.

If the client manages the core, use its built-in repair or reinstall option. Back up your configuration and local overrides before reinstalling. Don’t overwrite a new installation with an old directory or copy a core from another client into the existing folder. Confirm the current release starts successfully before importing your configuration again.

Permissions and TUN: Get the regular proxy working before troubleshooting the service

Interpret permission denied in the context of the operation that failed. If the client couldn’t write a log, cache, or rules file, check whether the account running the process can write to the client’s data directory. This can happen when a portable app is placed in a protected folder, or when files created by running as an administrator can’t be written by a standard user later. Fix permissions on the actual data directory or move it as described in the release notes. Don’t make the data directory accessible to everyone.

If the failure occurs while creating a TUN interface, adding a route, or starting a service, turn TUN off and test a regular local proxy first. Leave TUN disabled, check the client logs to confirm the core starts listening, then test a connection through the system proxy or an app’s manual proxy settings. If the regular proxy works and the problem only occurs with TUN enabled, focus on the service and permissions TUN requires—not the subscription nodes.

Retest after fixes: Re-enable one setting at a time

  1. Confirm the client starts reliably. Exit any old instances, leave TUN disabled, and load the configuration you checked. Make sure the window stays open, the core doesn’t keep restarting, and the logs show the expected listening address.
  2. Confirm traffic uses the right port. Select a known-working proxy group, then use an app configured to use the system proxy or a manual proxy to visit a domain covered by the test rule. Check the connection log for the destination domain, matched rule, and outbound name. A page loading successfully doesn’t prove it went through the proxy; it may have matched DIRECT.
  3. Restore settings one at a time. Re-enable TUN, startup on boot, and automatic subscription updates in sequence. Retest after each change. If the problem only returns after a system restart, check for multiple instances launching at startup or a required directory that isn’t available when the service starts.

If your browser loses network access after the client exits, first check whether the system proxy still points to an address that is no longer listening. On Windows, go to “Settings” → “Network & internet” → “Proxy” and see whether the manual proxy still points to the failed client. If the client left that setting behind, turn it off. If your device had an organization-managed proxy before, restore the original setting. Restoring network access and fixing the crash are separate issues; use the current startup log to continue troubleshooting.

Download Clash