Debug a Windows problem
Most Windows problems show up during setup or the first start. Work through these steps in order. They take you from a report to a fix you've proved on a Windows runner.
This page uses the words defined in Windows desktop: profile, background service, private computer, and runtime pack.
flowchart TD
report[Startup log and bug report]:::accent --> step[Find the step and the code]
step --> known{{Known cause?}}
known -- yes --> fix[Fix the cause]
known -- no --> repro[Reproduce it on a runner]
repro --> fix
fix --> prove[Prove it on a runner]:::go
Find and fix the cause
Section titled “Find and fix the cause”-
Get the startup log and the bug report.
When setup fails, the error screen offers Show startup log and Report bug. Ask the user for both. The log is
%APPDATA%\utming\profiles\local\logs\startup.log. The bug report carries the failed step, the error code, the exit code, and the WSL code, but not the log itself.In the log, these lines show how far Utming got:
Line Means Database opened.orDatabase failed.The database opened, or why it didn't Background service step: <step>The background service reached that step Local runtime prepared.orLocal runtime failed.The private computer is ready, or why it isn't -
Find the step that failed.
The bug report names the step. The log shows the background service's steps by name. For the private computer, it shows the last progress message instead.
Step Progress message in the log What Utming was doing None Database failed.with aUTMING_DATABASE_codeOpening the database, before every other step wslNone Checking WSL and finding the private computer profileNone Locking the profile folder assetsNone Checking the runtime pack and free space downloadDownloading your private computer… Downloading the runtime pack extract,import,updateInstalling your private computer… Installing or updating the private computer startStarting your private computer… Starting the private computer storage,workspace,browserA Preparingmessage, such as Preparing your workspace…Starting Docker and the containers loadingtolisteningBackground service step: <step>Starting the background service -
Match the code to a known cause.
You see Likely cause What to check UTMING_WSL_REQUIRED, and the screen offers Install WSLWSL is missing, turned off, or out of date, or wsl.exefailed.The end of the message, which holds the Windows error. Whether the user can approve an administrator request. Exit code 4294967295with a WSL code, such asE_ACCESSDENIEDWSL works but refused this action, so Utming doesn't offer Install WSL. The WSL code. It comes from the Wsl/…/<code>text thatwsl.exeprinted.A small exit code, such as 1A command inside the private computer, Docker, or a PowerShell step failed. The end of the message. It holds the last 300 characters the command printed. UTMING_COMPUTER_STORAGE_FULLThe drive doesn't have room for the private computer during first setup. Later, a full drive shows the same message without the code. Free space on the drive that holds the profile, or the folder the user chose. UTMING_DATABASE_SETUP_FAILEDwith exit code3221225781initdb.execouldn't find a DLL from the Visual C++ runtime. Utming 0.10.3 and earlier don't include it.Whether the PC has the Visual C++ runtime. On later versions, whether the app's resources\engine\postgres\binhasvcruntime140.dll.Utming’s background service did not respond. The service didn't reach its next step in time. It gets 10 minutes for loading, then two minutes for each later step. Defender scanning slows the first start after an install or update.Last startup step:in the log, and whether Try again works.Utming’s background service stopped before it was ready, with a code The service crashed while it started. The log lines just before Engine exited with code.Windows exit codes are shown as unsigned numbers. To look one up, convert it to hexadecimal:
3221225781is0xC0000135, a missing DLL. -
Reproduce it on a runner.
If the cause isn't clear, reproduce it on a
windows-2025runner:- Install the version the user had. Select an existing
utming-v<version>tag from the Utming repository. - Recreate what's different about their PC. Runners run every process elevated and don't scan files, so rule those two out first.
- Keep the startup log.
See Try something on a probe branch and Make the runner behave like a real computer.
- Install the version the user had. Select an existing
-
Fix the cause, then prove it.
Fix the cause in the one place every case passes through, not one report at a time. Then start CI on your branch. The Windows first setup, update and next start job installs the latest release, updates it to your build, and starts it again. See Run CI on your branch.
CI runs elevated. If your fix depends on something CI doesn't recreate, such as a user without elevation, prove it in a probe too. In the pull request, report what you saw as counts, such as "setup finished in three of three runs", not "fixed".
Lessons from earlier Windows bugs
Section titled “Lessons from earlier Windows bugs”- Runners run everything elevated. Real PCs don't. On a real PC, Utming runs without elevation, even for administrators. Locking the profile once failed on every launch after the first, because it needed a privilege only elevated processes have. CI missed it until the check dropped those privileges.
- Runners don't scan files. With Defender scanning on, an idle runner took 56 to 85 seconds to load the background service, instead of 11. A fixed two-minute wait failed on slower PCs, so Utming now waits up to 10 minutes for loading.
- PostgreSQL refuses some settings on Windows. It rejects
client_connection_check_interval, so every chat turn failed in Utming 0.10.1 and 0.10.2. The Windows check now runs the same kind of stoppable transaction a chat turn uses, not only setup. - A detached PowerShell started by Utming exits before it runs. Start PowerShell without
detached: true, and let it callStart-Process. Until this was fixed, Windows updates never installed.