Troubleshooting guide
Purpose and scope
- Use this page when you're stuck developing, building or releasing PlayPets, or when a user reports a problem.
- It helps you tell which situation you're in and which procedure to follow.
- The linked procedures hold the detailed commands. This page holds the branching and the judgment calls.
- Not for feature requests or design discussion. Those go through the issue idea template.
Scenarios and triggers
| Scenario | How you find out |
|---|---|
| A local build or test fails | pnpm test, pnpm run lint or pnpm run test:e2e fails, or the app does not start |
| CI fails on only one environment | Only a specific runner (Windows, Linux arm64, and so on) in the build workflow is red |
| A Windows user reports a problem | A console window appears, SmartScreen warns, a folder does not open, or AI chat does not work |
| The release workflow fails or files are missing | A release or distribute run fails, or the draft is missing files |
| The installed app cannot find updates | "Check for updates" in the Settings tab shows an error or does not find the new version |
| A signing key is lost or leaked | The key file and backup are gone, or a secret exposure alert arrives |
| The app is slow or uses a lot of battery | User reports, fan noise, high CPU in the activity monitor |
Response strategy
A local build or test fails
- First check whether it fails without your change: check out main and run the same command.
- Fails on main too: an environment problem. Compare the prerequisites (Rust, Node, OS packages) against Getting started.
- Linux e2e stops partway, with no
FATALline and every later check failing:- Usually WebKitGTK ended the page's web process.
- Its DMA-BUF renderer does this without a usable GPU (under Xvfb, in Docker or in a VM).
- So the app sets
WEBKIT_DISABLE_DMABUF_RENDERER=1at start unless the variable is already set (window::choose_renderer). - If a run still stops this way, note the WebKitGTK version (
dpkg -l libwebkit2gtk-4.1-0) and tryWEBKIT_DISABLE_COMPOSITING_MODE=1. That variable also avoided the problem in the Linux build image.
- Fails only after your change: open the standard the failing test name points to.
i18ntests: the Multilingual strings standard.modulestests: the Page code structure standard.
CI fails on only one environment
- If code specific to that OS (
#[cfg(windows)],cfg(target_os = "macos")) changed recently, suspect that change first. - Windows-only code:
- Check that it compiles locally with
pnpm run dist:windows. - Run the installer in a Windows VM. UTM on Apple silicon runs Windows 11 ARM, where the x64 build runs under emulation.
- Check that it compiles locally with
- Caused by a runner image change (tool versions): fix it with a PR that pins the version in the workflow.
A Windows user reports a problem
- First ask for the version and the install method (GitHub installer or MSIX).
- The cause differs by method.
- Console window: a bug, since child processes start without a window. Ask what they were doing.
- SmartScreen warning: the installer is unsigned. That is a limit of the decision "GitHub releases are the source, auto-update, winget and a Homebrew tap point at those files, and code signing turns on with secrets", not a code problem.
- Opening folders:
- MSIX install: data is in the package virtualization path, so Explorer may not see it (a known limit).
- Otherwise, treat it as a bug.
- AI chat: ask whether Claude or Codex was installed through npm.
- The app finds them on
PATHor in%APPDATA%\npm.
- The app finds them on
- "Failed to kill PlayPets" from the installer or uninstaller on an ARM PC:
- They are using the x64 build.
- Windows' emulation cache service (XtaCache) also holds the x64 exe, so Restart Manager refuses to close the app (
RmShutdown350). - The arm64 installer does not have this problem.
- With x64, quit from the tray first.
The release workflow fails or files are missing
- Find the symptom in the troubleshooting table of Release a new version.
- Only one environment failed: fix it and rerun it by hand with the same tag. Do not create a new tag.
- A problem after the draft is published: fix it and ship the next version.
- Do not change published files: the checksums and the winget manifest already point at them.
The installed app cannot find updates
- First check whether that release has
latest.json.- No: the updater signing secret was missing. Add the secret and rebuild.
- Yes: check the user's install method. Linux deb and AppImage each need a file in their own format in
latest.json.
- The Settings tab shows "Couldn't check for updates": check the network, and check that the latest GitHub release is not a draft.
- Drafts and pre-releases never count as "latest".
A signing key is lost or leaked
- Open When the updater signing key is lost or leaked right away.
- If it leaked, stop all other work.
The app is slow or uses a lot of battery
- Ask which state it happens in (yard only, desktop only, both, hidden).
- macOS and Linux: measure with
pnpm run measureon the same machine, and compare with the latest values in the Performance standard. - High even with everything hidden: the hide signal is not getting through.
- Windows: get the CPU of
msedgewebview2andplaypetsfrom Task Manager.
Roles and responsibilities
| Role | What they do |
|---|---|
| Reporter (user, contributor) | Leaves the version, OS, install method and reproduction steps using the issue bug template |
| Contributor | Reproduces local and CI failures and opens PRs that fix them. Notes any OS they could not reproduce on in the PR description |
| Maintainer | Triage and priority, releases and manual runs, keys and secrets, security advisories |
Linked procedures
- Set up a development environment and run the app
- Release a new version
- When the updater signing key is lost or leaked
- Signing keys and secrets standard
- Testing standard, Performance standard
Decision criteria
- User data could be lost (a save failure) or a fake update could get through: handle it before anything else.
- Only one OS, and no machine to reproduce it on: do not fix it by guessing. Ask the reporter for a way to check (logs, Task Manager values).
- Do not change a published release; fix it in the next version.