# Troubleshoot Mirli

When something fails, Mirli shows a card where the result would have appeared. Its title says what happened, and
its buttons open the place to fix it:

![A failure card titled The GPU ran out of memory, with Retry, Pick a smaller model, the Details section open and Copy diagnostic](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/start/failure.webp)

## A model does not download

| Card title or message | What to do |
|---|---|
| "… runs on the audio.cpp binary, which isn't on this machine yet" | Mirli needs its engine, audio.cpp, before it can download a model, and the app cannot install it for you yet. Install it once as [How Mirli picks a build](https://mirli.app/docs/audiocpp/index.md#how-mirli-picks-a-build) describes, and then download again. |
| **Hugging Face refused the download** | The model is gated. Follow [Install a gated model](https://mirli.app/docs/models/index.md#install-a-gated-model). |
| **The server could not reach huggingface.co** | Check your internet connection, VPN or proxy, then click **Retry**. |
| **The download stopped receiving data** | Check your connection, then click **Retry**. The download continues from where it stopped. |
| **The download ended before the whole file arrived** | Click **Retry**. If it keeps happening, report it: the file may have changed upstream. |
| **There is not enough disk space** | Free space on the drive that holds the `.mirli` folder in your home folder, then download again. **Details** shows the sizes. |

## The GPU ran out of memory

The model needed more video memory than your graphics card had free. This is not your computer's system memory
(RAM).

1. Close other programs that use the graphics card, such as games and video editors.
2. In the **Create** panel, make the **Duration** shorter, or set fewer **Variations** or **Steps**.
3. Click **Retry** on the card.
4. If it fails again, click **Pick a smaller model** and install one that fits. On the **Models** page,
   **Fits my GPU** shows only those.

## A generation fails

| Card title | What to do |
|---|---|
| **The model's weights are not on this machine** | Download the model on the **Models** page. |
| **The machine ran out of system memory** | Close other programs, or use a smaller model. |
| **Windows could not map the model into memory** | Let Windows manage the paging file size in its virtual memory settings, then try again. |
| **The model file could not be read** | Open the model's details on the **Models** page, click **Delete weights**, then download it again. |
| **audio.cpp did not finish in time** | Make a shorter sound, use fewer steps, or use a lighter model. Without a graphics card, long sounds can take many minutes. |
| **audio.cpp ran but produced nothing** | Open **Details** on the card. Its last lines usually name the cause, such as a prompt the model cannot take. |
| **The audio.cpp runtime is missing or cannot start** | Install the engine as in [A model does not download](#a-model-does-not-download). |
| **The CUDA runtime cannot use this GPU driver** | Update your NVIDIA graphics driver, then restart Mirli. |
| **The queue is full** | Mirli makes one sound at a time. Wait for a sound to finish, then try again. |

## You hear nothing

If Mirli shows **Your audio output isn't playing**, the sound goes to a device that does not play it, most often a
wireless headset that is off or out of range.

1. Go to **Settings > Sound & files**.
2. Under **Playback device**, select another device in the **Output** list. If the list shows no device names,
   click **Show device names**.
3. Click **Play test tone**. You hear a one-second tone when the device works.

![The Playback device setting with the Output list and the Play test tone button](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/start/playback.webp)

If you hear the test tone but not your sounds, check the volume of your system and of the device.

## Mirli does not start

If starting fails, the splash screen says **Mirli could not start** and gives the reason. Find what you see for your
system.

**Windows:**

- If you see **Windows protected your PC**, click **More info**, and then click **Run anyway**.
- If the splash says Mirli did not start in time, quit Mirli and open it again. If it happens again,
  [report a bug](#report-a-bug) with the [logs](#find-the-logs).

**macOS:**

- If macOS says Soundbox is damaged and can't be opened, the download is still marked as quarantined. Open
  **Terminal**, enter this command, and then open the app again:

  ```bash
  xattr -dr com.apple.quarantine /Applications/Soundbox.app
  ```

**Linux:**

- If the window is blank, or Mirli stops with "Error 71", some NVIDIA drivers cause this. Follow
  [Linux: blank window or crash on NVIDIA](https://mirli.app/docs/desktop/index.md#linux-blank-window-or-crash-on-nvidia).
- If the AppImage does not open at all, install FUSE 2: the `libfuse2` package on Ubuntu 22.04, or `libfuse2t64` on
  Ubuntu 24.04.

If the window opens but stops responding, go to **Activity** in the sidebar and click **Restart backend**.

## Find the logs

Mirli keeps two logs. The app log records every download and generation; **Activity** in the sidebar shows it. The
start-up log records only what happens before the window opens.

| System | App log | Start-up log |
|---|---|---|
| Windows | `C:\Users\<YOU>\.mirli\soundbox-17494.log` | `C:\Users\<YOU>\AppData\Local\Temp\soundbox-desktop.log` |
| macOS | `~/.mirli/soundbox-17494.log` | `soundbox-desktop.log` in your user temporary folder |
| Linux | `~/.mirli/soundbox-17494.log` | `/tmp/soundbox-desktop.log` |

`<YOU>` is your user name. An install from before Mirli's rename uses a `.soundbox` folder instead of `.mirli`.

## Report a bug

Open an issue on [GitHub](https://github.com/HamSanders/soundbox/issues) and include:

- What you did, and what you expected to happen.
- The text from **Copy diagnostic** on the failure card, if there was one.
- Your system: Windows, macOS or Linux, and your graphics card.
- Your Mirli version, shown in **Settings > Updates & telemetry**.
- The last lines of the app log, or the start-up log if Mirli did not start.

Developers running Mirli from source have their own list in [Install: Troubleshooting](https://mirli.app/docs/install-troubleshooting/index.md).

## What's next

- [Install a model](https://mirli.app/docs/models/index.md)
- [System requirements](https://mirli.app/docs/requirements/index.md)
