# VoiceStudio — Install Troubleshooting The top 10 errors users have actually hit on `v0.2.x`, with their causes and fixes. Most have a deeplink anchor that the in-app error UI's "Open docs for this error" button targets directly. To see whether a problem is already known or fixed, check the [install issue tracker](issue-tracker.md). ## Start here: self-diagnosis Electron native-crash reports preserve the fatal-error header and the current thread's first frames, rather than letting a long extension-module list displace them. Include the selected engine and GPU/driver when reporting a native crash; the excerpt is bounded, so attach the full scrubbed log if more context is needed. Home-directory prefixes and credential patterns are scrubbed before the local crash journal is written, as well as before reports are displayed or exported. When the backend exits without a native fault, the report also carries its last 20 stderr lines (bounded, scrubbed), and a hard exit logs an `[exit-forensics]` line naming the code and the calling file. Before digging through the entries below, let the app diagnose itself: - **In the app:** **Settings → About → "Run self-check"** verifies your compute device (CUDA/MPS/CPU), ffmpeg, HuggingFace token, disk space, data-directory permissions, RAM, installed TTS engines, and hub reachability — each with a hint when something's off. - **Headless / terminal:** ```bash uv run python backend/main.py --diagnose # same checks, exits 1 on failure uv run python backend/main.py --diagnose --deep # also loads the active engine # and synthesizes a test utterance ``` `--deep` catches "installed but broken" engines. On a fresh install it may cold-load the model (minutes, plus a large download). - **Filing an issue?** **Settings → About → "Save diagnostic bundle"** produces a zip (self-check report, recent classified errors, scrubbed log tails) you can drag straight onto the GitHub issue. Home paths and anything token-shaped are redacted before they leave your machine. Slow renders: include `render_traces.json` from that bundle; it records local stage timings and counts without scripts or audio ([details](../performance.md#local-render-diagnostics)). The report's `engine_execution` rows distinguish declared compatibility from observed runtime state. `evidence_state: not_loaded` means no actual provider can yet be claimed. Run the deep self-check for TTS, or issue a representative ASR request for ASR evidence. Loaded rows include the execution provider/device, precision or quantization when the engine exposes it, GPU identity, CPU-fallback stage, relevant library versions, and whether parent-process memory counters cover the engine. Subprocess engines report memory visibility as false because their accelerator allocations belong to the child process. ## Install failure codes On Windows, the setup screen warns before the download if Smart App Control is on, and setup runs the pinned Python once before downloading packages, so a blocked machine finds out early. If you opt in to anonymous stats, which is off unless you say yes, setup sends the code and setup stage with the app version, platform and install channel. File names, antivirus names and logs are never part of it. Install and startup failures show a code on the failure screen and in the in-app report. Reports include the facts behind the code, and you review them on GitHub before submitting. Nothing is sent otherwise. A failure with no code means VoiceStudio has no evidence for a specific cause yet; the report still has the raw message. ### `WINDOWS_APP_CONTROL_BLOCKED` Windows Smart App Control, WDAC or AppLocker refused to run the engine or load one of its files. Antivirus exclusions cannot help. With Smart App Control, either turn it off (Windows Security → App & browser control → Smart App Control settings), connect VoiceStudio to an engine on another computer, or run the engine in WSL or [Docker](docker.md). On a work PC, ask IT to allow the runtime folder. ### `ANTIVIRUS_BLOCKED` Your antivirus quarantined or refused an engine file. Restore the file, add the runtime folder to its exclusions, then retry. ### `EXEC_REFUSED` The OS refused to run the engine and left no evidence of what refused it. Smart App Control in Evaluation mode only audits launches, so that setting alone leaves this failure under `EXEC_REFUSED`. Add the runtime folder to your security software's exclusions, make sure it is not in a cloud-synced folder, then retry. If it persists, send the in-app report: it records the program, its signature and any blocks Windows logged. ### `GATEKEEPER_QUARANTINE` macOS quarantined the engine. See [Gatekeeper quarantine](macos.md#gatekeeper-quarantine). ### `EXEC_NOEXEC_MOUNT` The runtime folder is on a drive mounted with `noexec`. Choose a folder on another drive, or remount without `noexec`. ### `RUNTIME_DOWNLOAD_STALLED` A runtime download received no data for a long time. Setup stops a download that gets no data for 2 minutes, and repeats the install up to twice by itself after a stall or a temporary server error (such as 504 Gateway Timeout) before it shows this. Retry keeps finished packages and resumes large multi-connection downloads, but other partial downloads start again. Try another network, turn off your VPN or choose another download region. Cancel and Restart on CPU interrupt the automatic retry countdown immediately; finished downloads remain cached. Runtime probes also drain verbose diagnostic output even when it is not being captured, so a full output pipe cannot block an otherwise successful check. Retry reuses completed, hash-verified prefetched wheels before budgeting space for new downloads. Already downloaded wheels are not counted a second time; new transfers still leave the required installation-space reserve available. Wheel-size probes also handle a connection reset or timeout after response headers arrive. Download consumers still receive stream errors, and an interrupted wheel is kept incomplete rather than published as a finished file. ### `RUNTIME_DOWNLOAD_INTERRUPTED` The connection dropped during a runtime download, as in `peer closed connection without sending TLS close_notify`. Retry keeps finished packages and resumes large multi-connection downloads, but other partial downloads start again. The same advice as `RUNTIME_DOWNLOAD_STALLED` applies if it repeats. ### `DISK_FULL` The drive holding the runtime is full. The setup screen shows the free and needed space beside the runtime folder and offers **Choose another folder** as its main action; or free space and press **Retry**. ### `RUNTIME_FOLDER_DENIED` VoiceStudio cannot write to the runtime folder. Choose another folder, or fix the folder's permissions. ### `RUNTIME_FILES_LOCKED` Another program has runtime files open, usually a second VoiceStudio or a security scan. Close it, wait for the scan to finish, then retry. ### `RUNTIME_IN_SYNCED_FOLDER` The runtime is inside OneDrive, Dropbox, iCloud Drive, Google Drive or Nextcloud, whose placeholders and locks break it. Move it to a plain local folder. ### `SYSTEM_LIBRARY_PROBLEM` A system library the engine needs is missing or too old. The setup screen names it; see the [Linux guide](linux.md). On Windows the usual one is the Microsoft Visual C++ Redistributable. `OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed ... torch\lib\c10.dll` while importing `faster_whisper`, `ctranslate2` or `torch` means the installed copy is too old or damaged (VoiceStudio reports its `msvcp140.dll` version when it can read it). Reinstalling the Python packages cannot fix it. Install the latest [Microsoft Visual C++ Redistributable (x64)](https://aka.ms/vs/17/release/vc_redist.x64.exe), restart Windows, then press Retry. ### `UNSUPPORTED_PLATFORM` This computer cannot run the local engine, or this is the wrong download for it. See the [macOS guide](macos.md), or connect to an engine on another computer. ### `SOURCE_ENV_INCOMPLETE` This source checkout's `.venv` is missing or incomplete. Run `bun run setup:api` in the checkout, let it finish, then press Retry. ### `BROKEN_VENV` The managed Python environment is damaged and automatic repair did not fix it. Use **Clean & Retry** under **More fixes** on the setup screen. ### `NATIVE_ACCESS_VIOLATION` The engine crashed below Python (`0xC0000005` or `SIGSEGV`). Update your GPU driver and try CPU mode. Send the in-app report if it persists. On Windows the report names the library that crashed (see [Native backend crashes in Electron](#native-backend-crashes-in-electron)); when it is the graphics driver, the screen says so. A crash inside the model weight loader (`transformers/core_model_loading.py` in the crashed thread, seen on some Windows machines) is avoided on Windows by default: the backend loads weights one at a time (`HF_DEACTIVATE_ASYNC_LOAD=1`), which only makes loading slower. Set `HF_DEACTIVATE_ASYNC_LOAD=0` to opt back in to threaded loading. On macOS and Linux the same setting is applied automatically, for later starts of the same version, after such a crash. ### `NATIVE_ILLEGAL_INSTRUCTION` The engine hit an instruction this computer could not run (`0xC000001D` or `SIGILL`). The processor may lack a feature its libraries need, or a driver stopped on purpose. Send the in-app report with your processor model. On Windows it names the library that stopped. ### `NATIVE_IN_PAGE_ERROR` Windows could not read part of a file the engine had mapped into memory (`0xC0000006 STATUS_IN_PAGE_ERROR`), usually a model file. The most common cause is a disk or paging-file read error; a failed write to a mapped file or memory pressure can also raise it, so the code alone does not rule out a defect. Keep VoiceStudio and its models on an internal drive (not a USB, network or sleeping external drive), check that drive for errors (`chkdsk`), and let Windows manage the paging file size. Then retry, and send the in-app report if it keeps happening on a healthy drive. ### `NATIVE_CRASH` The engine crashed below Python with another native fault, such as `0xC0000374 STATUS_HEAP_CORRUPTION` or `0xC0000409 STATUS_STACK_BUFFER_OVERRUN`. Send the in-app report: it carries the exit code and, on Windows, the library that crashed. ### `STARTUP_TIMEOUT_SILENT` The engine printed nothing before the startup budget ran out, usually a slow disk or a security scan of new files. Retry, exclude the runtime folder from real-time scanning, or raise `OMNIVOICE_STARTUP_BUDGET_S`. ### `STARTUP_TIMEOUT_OUTPUT` The engine was still loading when the startup budget ran out. Close memory-heavy apps and retry. Later starts are much faster. ### `BACKEND_STARTUP_FAILED` The engine stopped at a named startup step. The message says which; send the in-app report if it is not something you can change. ### `PORT_IN_USE` Another program holds the engine's port. See [Backend cannot bind its local port](#backend-cannot-bind-its-local-port). ### `ROCM_NOT_CONFIGURED` An AMD GPU needs ROCm, which is missing or incomplete. See [Windows ROCm](windows-rocm.md) or the [Linux guide](linux.md). ## Backend cannot bind its local port Windows can reserve port ranges even when no process is listening. If the OS denies binding the default port 3900, Electron's managed backend selects another loopback port before launching; its API proxy and health checks follow that port automatically. Candidates advance by 1000, up to 16 alternatives, so additional app windows discover and attach to the same backend. A fresh launch retries the default after a fallback backend stops. This recovery is available on all desktop platforms. Occupied fallback ports must carry VoiceStudio's backend response marker before attachment; unrelated listeners are skipped. This marker distinguishes services, not malicious processes running as the same local user. If an identified backend is still starting, Electron waits within its startup budget instead of launching another process on that occupied port. It does not override an explicit `OMNIVOICE_PORT`, a custom backend command, or an externally managed backend. For those configurations, choose an allowed port in your launch environment. An ordinary “address already in use” conflict still uses the existing backend-attachment/conflict flow; VoiceStudio does not stop unrelated processes or change firewall rules. If the backend log ends with `FATAL: the operating system refused to let VoiceStudio listen on port …` (`[Errno 13]` / WinError 10013), the OS denied the bind rather than reporting a taken port. On Windows a possible cause is a reserved range (Hyper-V, WSL, Docker and WinNAT reserve them); another process holding the port exclusively gives the same error. List the reserved ranges with `netsh interface ipv4 show excludedportrange protocol=tcp` and set `OMNIVOICE_PORT` to a port outside every range that no other app uses. On macOS and Linux, ports below 1024 need elevated rights. A default launch already skips reserved ports on its own; this message appears only when the port was chosen explicitly. ## Generation failure diagnosis OmniVoice's in-process and subprocess engines both reuse an installed speech recognizer when reference audio has no transcript, including short clips sent through batch or API callers. A supplied transcript is preserved for short references. Subprocess reference recognition runs inside the killable child, under its synthesis watchdog, releasing reference ASR weights before loading TTS. Sidecar stderr is scrubbed for home directories and secrets before logging. This does not download an ASR model automatically: if no installed recognizer can transcribe the clip and no local model fallback is available, provide the matching transcript or explicitly install a speech-to-text model. The Clone page offers an **Install** button for the model recommended for your hardware (it downloads only after you click it) and then retries the transcript. The transcript preview also uses any other installed speech-to-text model when the selected one is not on disk. Unknown or unverifiable ASR selections are skipped for automatic reference transcription. An explicitly selected OpenAI-compatible ASR provider retains its opt-in behavior; it does not need local model weights. Default ASR remains local. Streaming and HTTP generation failures can identify these causes. Electron and web clients show the recovery guidance in the selected language; API clients receive a stable `docs_topic` and a safe fallback message, never private exception text. In the desktop app every diagnosed topic (the full list is in `backend/core/failure.py`) shows a short message in the app language and, where the app can fix it, a button that does so: **Install speech-to-text model** and **Add transcript** for `REFERENCE_STT_MISSING`, **Free memory** for `GPU_OOM` and `HOST_MEMORY_EXHAUSTED`, **Open Storage** for a full or unwritable drive, **Choose device** for an unsupported GPU, **Open Audio tools** for a missing ffmpeg, **Add token** for Hugging Face access errors, and the matching Models page for missing or damaged models. **Open docs** and **Copy diagnostic** stay next to it, and the backend's English text stays under **Details**. | Topic | Recovery | | --- | --- | | `GPU_ARCH_UNSUPPORTED` | The installed PyTorch build cannot run kernels on this GPU. Select CPU in Settings → Performance & Device, or use a PyTorch build compatible with the GPU. | | `HOST_MEMORY_EXHAUSTED` | The machine ran out of system memory, so the engine could not finish. Close other memory-heavy apps, unload unused models with **Flush models**, render a shorter passage, or select a lighter TTS engine. On Windows, enlarging the page file also helps. A CPU-only machine has no GPU memory to free — this is RAM, not VRAM. Preparing a voice-clone reference on the CPU takes about 0.75 GB plus 0.07 GB per second of clip, so VoiceStudio refuses up front when free RAM plus swap cannot hold it: use a 3-10 second reference. Set `OMNIVOICE_SKIP_REF_MEMORY_CHECK=1` to skip that check. | | `DISK_FULL` | The drive holding VoiceStudio's data, model cache or temp folder is full (`[Errno 28] No space left on device`, `Disk quota exceeded`, or Windows `WinError 112`). Free space on that drive — Settings → Storage shows disk usage, clears temporary files and lists the largest models — then try again. Transcription, generation and dubbing all report this class instead of a generic internal error. | | `WINDOWS_APP_CONTROL_BLOCKED` | Windows application control blocked a required file. Ask the administrator to allow the trusted VoiceStudio runtime, then restart the app. | | `AUDIO_IO_FAILED` | Check the audio format, free disk space, and file permissions; review the folder in Settings → Storage. | | `ENGINE_DEPENDENCY_MISSING` | A Python package the engine imports is not installed. Open Model Catalogue, select the engine and use **Install / Repair**, then restart VoiceStudio. Terminal: retrying the same request fails the same way. | | `REFERENCE_STT_MISSING` | The voice has no transcript and no speech-to-text model is installed to write one. Type the reference clip's words into the transcript box (clips up to 20 seconds), or install and select a speech-to-text model in Model Catalogue. | | `HF_MIRROR_UNREACHABLE` | The configured Hugging Face mirror could not be reached while fetching the engine's weights. Restore the official endpoint in Settings → Models → Hugging Face mirror, then retry. | Every unclassified 500 also carries `error_type` (the Python exception class, never its message), and bug reports record it as "Backend error class" together with the "Backend failure topic". A reverse proxy that times out (`502`/`504` with its own HTML page) is reported as a proxy problem, not a VoiceStudio one: raise its read timeout (for nginx, `proxy_read_timeout`) for long generations. Streamed generations (`/generate` with `stream=true`) and long-form renders (Audiobook, Stories, resume) send a keepalive every 15 seconds of silence (a blank NDJSON line or an SSE comment) and ask proxies not to buffer, so an idle cutoff such as Cloudflare's `524` does not end them while a slow chunk or chapter renders. Choosing the best 15-second window of a long reference clip happens before the generate time budget starts, so a slow CPU speech-to-text model no longer causes `TTS generate exceeded 300s`. Unsupported GPU builds and application-control blocks are terminal for the current stream: the client does not automatically render the whole passage again. After correcting the cause, start a new generation. Host RAM exhaustion is *not* terminal — freeing memory genuinely repairs it, so a retry can succeed. Unknown failures retain generic guidance; a report with only `RuntimeError` does not establish which cause applies. An engine downloads its weights the first time it is used, so the first generation with a newly selected engine can fail on the download rather than on synthesis. Both outcomes are reported the same way: `/generate` and `/v1/audio/speech` answer **503** (`Retry-After`, `X-OmniVoice-Retryable`) naming the engine whose model could not be loaded, whether the download stalled past its budget or failed outright. A failed download is not a crash and is not reported as one; check the engine's **Weights** list in Model Catalogue, then retry. ## 1. `pkg_resources` missing (ModuleNotFoundError) **Symptom:** the setup screen shows `ModuleNotFoundError: No module named 'pkg_resources'` during WhisperX import, and the app never advances past the "Setting up models" step. **Cause:** WhisperX (and a couple of its transitive deps) still imports `pkg_resources`, which `setuptools >= 80` dropped. `pyproject.toml` pins `setuptools>=75,<80` so it stays present — but the venv can still lose it two other ways: **(a)** antivirus (commonly Windows Defender) quarantines `pkg_resources`' files, or **(b)** a partial/interrupted extract. In both cases setuptools' *metadata* remains, so `uv`/`pip` report it "already satisfied" and a plain install **no-ops** — the files are never restored. **Fix:** in the backend venv, **force a reinstall** (a plain install won't work for the reasons above): ``` uv pip install --reinstall 'setuptools>=75,<80' ``` then restart. If it recurs, your antivirus is removing the files again — add the backend **`.venv`** folder to its exclusions (Windows Security → Virus & threat protection → Exclusions). The app's auto-repair now uses `--reinstall` too, so a fresh install heals itself. **Linked issues:** [#58](https://github.com/debpalash/VoiceStudio/issues/58), [#248](https://github.com/debpalash/VoiceStudio/issues/248) ### 1a. Model load fails: `[Errno 2] No such file or directory: '…/transformers/…/modeling_*.py'` **Symptom:** the System Check / model load fails with e.g. `[Errno 2] No such file or directory: '…/site-packages/transformers/models/qwen3/modeling_qwen3.py'`. **Cause:** same class as §1 — a **corrupted/incomplete `transformers` install**. A model load lazily resolves a module file that's **missing from `site-packages`** (an interrupted `uv sync`, antivirus quarantine, or a partial update). The package's metadata is intact, so a plain install no-ops and never restores the file. Restarting does **not** help (the file is still gone). **Fix:** force-reinstall transformers in the backend venv, then restart: ``` uv pip install --reinstall transformers ``` Or, as a quick workaround, switch ASR to **faster-whisper** in **Model Catalogue** (ASR tab → **Use**). If it recurs, add the backend **`.venv`** to your antivirus exclusions (see §1). Newer builds classify this error and show the reinstall hint directly instead of a bare path + "try restarting". ### 1a-bis. Same wording, different cause: torch ↔ torchvision mismatch **Symptom:** identical `Could not import module 'AutoFeatureExtractor'` / `'GenerationMixin'` errors — but reinstalling transformers alone changes nothing. **Cause:** transformers' lazy importer wraps whatever really failed in that generic message. When the real failure is `RuntimeError: operator torchvision::nms does not exist`, the problem is a **torch/torchvision version mismatch** (one was upgraded without the other), and transformers itself is fine. **Fix:** reinstall the trio **together, at the pinned versions** — a plain unpinned reinstall can itself resolve a drifted pair ([#1357](https://github.com/debpalash/VoiceStudio/issues/1357)): ``` uv pip install --python .venv --reinstall torch==2.10.0 torchaudio==2.10.0 torchvision==0.25.0 transformers ``` run in the project folder. The versions mirror `deploy/torch-constraints.txt` (source checkouts can pass `--constraint deploy/torch-constraints.txt` instead; desktop installs don't ship that file, which is why the literal pins are shown). They carry no `+cu128`/`+rocm` suffix on purpose — vendor GPU builds match the pins rather than being replaced. **Linked issues:** [#1357](https://github.com/debpalash/VoiceStudio/issues/1357), [#1376](https://github.com/debpalash/VoiceStudio/issues/1376) ### 1b. Dubbing: `ASR backend initialization failed: No module named 'lightning_fabric'` **Symptom:** transcription/dubbing fails at the start with `ASR backend initialization failed: No module named 'lightning_fabric'`. **Cause:** same class as §1 — a **partial/broken install**. `lightning_fabric` ships *inside* the `pytorch-lightning` wheel (WhisperX needs it via pyannote-audio), and an interrupted install or antivirus quarantine can strip it while the package's metadata stays intact — so a plain install no-ops and never restores the files. **Fix:** force-reinstall pytorch-lightning in the backend venv, then restart: ```shell uv pip install --reinstall pytorch-lightning ``` If it recurs, add the backend **`.venv`** to your antivirus exclusions (see §1). Since this fix landed the app also degrades gracefully: WhisperX is marked unavailable (Model Catalogue shows why, with this repair command) and dubbing automatically falls through to **faster-whisper** instead of failing outright. **Linked issue:** [#1185](https://github.com/debpalash/VoiceStudio/issues/1185) ## 1c. Setup blocked: "System RAM … The app will OOM on first dub" **Symptom:** the setup wizard's System Check shows **System RAM** in red and "Resolve blockers to continue" stays disabled — often on an 8 GB machine that reports ~7.8 GB usable (firmware and integrated graphics reserve a slice of installed RAM). **Cause:** the preflight compares OS-reported RAM against the 8 GB minimum. Since [#1618](https://github.com/debpalash/VoiceStudio/issues/1618) the check tolerates that reserved-memory gap, so 8 GB-installed machines pass. **Fix:** update to the latest release. If your machine is genuinely below the minimum and you accept the out-of-memory risk (long dubs may crash), set `OMNIVOICE_RAM_PREFLIGHT=0` before launching — the hard block becomes a warning. On Windows run PowerShell `[Environment]::SetEnvironmentVariable('OMNIVOICE_RAM_PREFLIGHT','0','User')` and relaunch; on macOS/Linux export it in the shell that starts the app. (The in-app Settings panel can't help here — this blocker appears before setup completes.) **Linked issues:** [#1618](https://github.com/debpalash/VoiceStudio/issues/1618) ## 2. HF 401 / pyannote license not accepted **Symptom:** dubbing fails with `HfHubHTTPError: 401 Client Error: Unauthorized for url …pyannote/speaker-diarization-3.1…`, or diarization silently falls back to a single speaker. **Cause:** `pyannote/speaker-diarization-3.1` is a **gated** model — even with a valid HF token, you need to accept the model's license on its HuggingFace page before the token works for downloads. **Fix:** 1. Open **Settings → Credentials** in the app and paste a working HF token (or set `HF_TOKEN` in your env). See [docs/setup/huggingface-token.md](../setup/huggingface-token.md). 2. Visit https://huggingface.co/pyannote/speaker-diarization-3.1 while signed in with the same HF account → click **"Agree and access repository"**. 3. Retry the job. The token state in **Settings → Credentials** should now show the "App" row with a green check next to your username. If the token and license are already valid but an older build still reports 401 during installation, update VoiceStudio and retry. Settings tokens now reach both the fast download path and engine-weight installers; no token rotation is needed for that fixed client bug. **Linked issues:** [#35](https://github.com/debpalash/VoiceStudio/issues/35), [#2163](https://github.com/debpalash/VoiceStudio/issues/2163) ### PocketTTS gated weights **Symptom:** PocketTTS reports `POCKETTTS_GATED_WEIGHTS`, `gated repo`, or asks you to share your contact information instead of generating audio. **Cause:** the PocketTTS model files are public but gated. Hugging Face only serves them after your account accepts Kyutai's access conditions. A token by itself does not grant access. **Fix:** 1. Visit https://huggingface.co/kyutai/pocket-tts while signed in, review the license and prohibited-use conditions, share the requested contact details, and accept the conditions. 2. Open **Settings → Credentials** and save a read token from that same account. 3. Open **Model Catalogue**, review and accept the PocketTTS terms locally, then retry. VoiceStudio stores this acknowledgement only on your machine. ## 3. Gatekeeper quarantine on macOS **Symptom:** "VoiceStudio.app is damaged and can't be opened." **Cause:** Gatekeeper cannot verify the app's Apple Developer identity — the build is unsigned or ad-hoc signed (local `bun run dist` packages, or a release published without notarization; signing and notarization run in `electron-release.yml` when the Apple credentials are configured). **Fix:** see [macos.md#gatekeeper-quarantine](macos.md#gatekeeper-quarantine). ## 4. Linux: blank window or GPU errors **Symptom:** the Linux app window opens blank, or the terminal shows GPU process errors. **Cause:** the Electron app renders with Chromium; some GPU driver and compositor combinations fail to initialise hardware acceleration. (The `WEBKIT_*` variables from older versions of this entry applied only to the archived Tauri app, which rendered with WebKitGTK.) **Fix:** launch once with `--disable-gpu` (and on Wayland, optionally `--ozone-platform=x11`) — see [linux.md#appimage-white-screen-on-fedora-44--ubuntu-2404](linux.md#appimage-white-screen-on-fedora-44--ubuntu-2404). ## 5. Windows Triton / torch.compile OOM **Symptom:** the first synthesis call fails with `OutOfMemoryError: CUDA out of memory` or `RuntimeError: Triton compilation failed`, especially on <16 GB VRAM GPUs. **Cause:** the engine's `torch.compile` step compiles Triton kernels with a peak memory footprint that exceeds free VRAM. Windows-only quirk. **Fix:** see [windows.md#torch-compile-oom](windows.md#torch-compile-oom). **Linked issue:** [#65](https://github.com/debpalash/VoiceStudio/issues/65) ## GPU self-test failed On startup, VoiceStudio runs a small task on your GPU in a separate process. If that task fails or crashes, models load on the CPU so the app keeps working, more slowly, and a notice shows the error. 1. Update your GPU driver and restart the app. The test runs again on every start until it passes. 2. On Linux with an AMD card, see [AMD GPU (ROCm)](linux.md#amd-gpu-rocm). 3. To try the GPU anyway, set `OMNIVOICE_FORCE_CUDA=1` or choose a device in **Settings**. Either one skips the test. Sidecar engines, which run in their own environments, don't use this result. ## Older NVIDIA cards (GTX 900/1000 series) **Symptom:** a Maxwell or Pascal card (GTX 900 and 1000 series, compute capability below 7.0, such as a GTX 1060 or 1080 Ti) is found, but the app runs on the CPU. The GPU report in **Settings** says the PyTorch build no longer supports that GPU generation. **Cause:** the PyTorch build VoiceStudio ships (the cu128 build) includes kernels only for compute capability 7.0 and newer. A driver update does not add them. PyTorch's CUDA 12.6 build still does (compute capability 5.0 and up), and PyTorch 2.15 drops that build. **Fix (desktop app):** nothing to do. On Windows and Linux x64, runtime setup selects it when every NVIDIA card is compute capability 5.0 to 6.x (GTX 900/1000 series) and the driver is 525 or newer and installs `torch 2.10.0+cu126` from `download.pytorch.org/whl/cu126` instead of the cu128 build. An existing cu128 runtime is switched the next time setup runs, which re-downloads PyTorch (about 3 GB). Setup then checks that `torch.cuda.is_available()` is true and that the build has kernels for the card; if not, it keeps the CPU build, writes the reason to the setup log and `.runtime-torch-fallback` in the runtime folder, and the GPU report shows it as `torch_fallback`. Set `OMNIVOICE_TORCH_VARIANT=cuda` to keep the cu128 build or `cpu` to force the CPU build. Kepler (3.x) cards, hosts with any Volta or newer card next to an older one, older drivers, macOS and Linux ARM keep cu128 or CPU, and the repair advice then points to Vulkan engines or CPU instead. Docker images, source setups and sidecar engines are unchanged. **What else works:** PyTorch engines run on the CPU if the CUDA 12.6 build cannot drive the card. Engines with their own Vulkan runtime (audio.cpp, CosyVoice GGUF, OmniVoice GGUF) can use the GPU; **Settings → GPU acceleration** lists them. Install one under **Settings → Models**. See [audio.cpp](../engines/audio-cpp.md). ## 5a. Backend exits on the first `/generate` on an older NVIDIA GPU **Symptom:** the backend starts, `/health` identifies the GPU, and model preload succeeds, but the first generation ends with `RemoteDisconnected` or “remote end closed.” Later requests get `ConnectionRefused`, often without a Python traceback. Tesla T4 machines, including common Colab hosts, are a typical example. **Cause:** CUDA-graph capture in the graph-oriented compile mode can abort the process natively on pre-Ampere GPUs such as Turing sm_75 and Volta sm_70. **Fix:** update VoiceStudio. Compile mode is selected from the detected GPU, and devices below sm_80 keep compiled kernels without graph capture. If the crash remains, enable **Settings → Performance → Disable torch.compile**, or set `TORCH_COMPILE_DISABLE=1` before a CLI/source launch. Both in-process and sidecar engines honour this on every platform. For diagnosis, the backend arms Python's fatal-signal handler early and writes the dying thread stack to `backend_err.log`; attach that file to a report. Set `OMNIVOICE_DISABLE_FAULTHANDLER=1` to turn this diagnostic off. For additional containment, select **OmniVoice (subprocess-isolated)** under **Settings → Engines**, or launch with `OMNIVOICE_TTS_BACKEND=omnivoice-subprocess`. A native engine failure then becomes an HTTP error and the parent respawns the sidecar. See [#2135](https://github.com/debpalash/VoiceStudio/issues/2135). ## 5b. RTX 50-series (Blackwell, sm_120): backend crashes during `ml_imports` **Symptom:** on an RTX 5070 / 5070 Ti / 5080 / 5090, the backend never becomes ready. The desktop app sits on "starting backend", `/health` returns 503, and `/startup/progress` shows `ml_imports` active. From source you see `import torch` die with a native access violation rather than a Python traceback. **Cause:** the `torch 2.8.0+cu128` build that VoiceStudio 0.5.7 and earlier pinned. It advertises `sm_120` in `torch.cuda.get_arch_list()` and runs CUDA fine on some Blackwell cards, but the Windows machines in #1931 fault inside `import torch` itself, natively, before Python can raise. Torch 2.9 and later do not. **Fix:** update VoiceStudio. 0.5.8 and later pin torch 2.10.0, torchaudio 2.10.0 and torchvision 0.25.0, which also closes CVE-2026-24747. The cu128 build covers the same GPUs as before (`sm_70` through `sm_120`), so no older card loses kernels. On a source checkout, `git pull`, then: ```bash uv sync ``` Confirm the GPU is usable before relaunching: ```bash uv run python -c "import torch; print(torch.__version__, torch.cuda.is_available(), torch.cuda.get_device_capability())" ``` `2.10.0+cu128 True (12, 0)` means the kernels are there. If you had hand-edited the pins to 2.9.x, as earlier versions of this page suggested, drop that edit: the default is newer now. **Keep the trio together:** `torch`, `torchaudio` and `torchvision` move in one step. A partial bump fails with `RuntimeError: operator torchvision::nms does not exist` (covered in the next section). The pins live in two lists that must stay identical: `[tool.uv] constraint-dependencies` in `pyproject.toml` (for `uv sync`, `uv lock` and `uv run`) and `deploy/torch-constraints.txt` (for the `uv pip install` paths in Docker and the Colab notebook). `tests/test_torch_constraints_are_applied.py` fails if they drift. **Linked issue:** [#1931](https://github.com/debpalash/VoiceStudio/issues/1931) ## 5c. OmniVoice is not preloaded at startup Startup only preloads the native OmniVoice model when OmniVoice is the selected TTS engine (and the host uses its native backend). Selecting another engine, such as VoxCPM2, leaves OmniVoice unloaded at startup to preserve memory for that engine. `OMNIVOICE_TTS_BACKEND`, when set, takes precedence over the saved engine choice. Models still load on demand when requested. ## 6. `uv venv` Python download fails (restricted network) **Symptom:** during first launch, `uv` exits with a network error pulling `python-build-standalone` from GitHub. Common in China, intermittently in Russia, sometimes on corporate proxies. **Fix:** see [linux.md#restricted-networks-china--russia](linux.md#restricted-networks-china--russia) (same env vars work on macOS and Windows — `UV_PYTHON_INSTALL_MIRROR`, `UV_HTTP_TIMEOUT=900`, `UV_HTTP_RETRIES=5`, `UV_PYTHON_PREFERENCE=only-system`). **Linked issues:** [#57](https://github.com/debpalash/VoiceStudio/issues/57), [#60](https://github.com/debpalash/VoiceStudio/issues/60). ## 7. `.deb` ffprobe path conflict on upgrade **Symptom:** after upgrading from a pre-v0.3 .deb, `ffprobe -version` reports "VoiceStudio bundled ffprobe" instead of the system ffmpeg, breaking other apps that rely on `/usr/bin/ffprobe`. **Fix:** see [linux.md#deb-ffprobe-conflict](linux.md#deb-ffprobe-conflict). ## 7b. "Media engine unavailable" / FFmpeg questions FFmpeg, FFprobe, and yt-dlp are **not** things you install for VoiceStudio. The app resolves them itself, in order: a path provided by the desktop shell → the static build shipped with the Python environment → the app's own downloaded build → whatever is on your PATH. When nothing resolves at all (some source installs on a fresh machine), the Setup Wizard downloads a pinned, checksum-verified static build in the background — you'll see a one-line "Preparing media engine…" progress and, only if that download fails, a card with **Retry** and **Use a system copy**. If a running install ever reports "Media engine unavailable": 1. Open **Settings → Audio tools**. Each row shows the binary actually in use (version, path, and origin — Bundled / System / Custom). 2. Press **Restore bundled** to re-fetch the app's own build (needs network once), or **Use system copy** / **Choose file…** to point at an FFmpeg you already have. Installing via a package manager (`brew install ffmpeg`, `sudo apt install ffmpeg`, `winget install ffmpeg`) also works — press **Use system copy** afterwards. Transcription tells these apart from other failures. If a dub transcription reports that it needs ffmpeg, follow the steps above; VoiceStudio also exposes its resolved FFmpeg under the bare name `ffmpeg` to the engines it launches, so a library that runs plain `ffmpeg` no longer fails with `[Errno 2] No such file or directory: 'ffmpeg'`. A "lost its output pipe" (`[Errno 32] Broken pipe`) reply means the app that launched the backend closed or relaunched; restart VoiceStudio. The same panel updates **yt-dlp** (video imports): site support changes faster than app releases, so when video-URL imports start failing, press **Update** there — the new version survives app updates, and **Restore tested version** reverts to the build the app shipped with. ### YouTube asks you to sign in or confirm you are not a bot First update yt-dlp under **Settings → Audio tools**. If YouTube still requires your signed-in session, export its cookies in Netscape `cookies.txt` format, then open **Advanced** on the dubbing import card and choose that file under **YouTube sign-in** before importing. VoiceStudio uses the export for that import only and makes two best-effort attempts to delete its temporary copy. Cookie exports are login credentials. VoiceStudio never reads a browser's cookie database automatically, never saves the export in your project, and never uploads it anywhere except to your own VoiceStudio backend. Use an export limited to YouTube where your browser extension supports domain filtering. For a backend on another machine, the picker is enabled only over HTTPS; plain HTTP is accepted solely on the desktop app's loopback connection. Electron's main process supplies a desktop-origin transport marker for both packaged and development requests; renderer-supplied origins and markers are discarded. Remote backends must also use `OMNIVOICE_API_KEY` as the bearer key and remain restricted to a private tailnet; see [API authentication](../api-auth.md). ## 8. Docker LAN access — media preview 404 **Symptom:** VoiceStudio loads on `http://:3900` but the audio preview pane shows 404s for `/media/...`. **Cause:** pre-v0.3, the frontend hardcoded `localhost:3900` for media-preview URLs, which is wrong when the UI is reached from a different LAN host. **Fix:** the frontend derives its API/media base from the page's own origin. When running behind a reverse proxy where the UI and API are on different origins, set the runtime override `OMNIVOICE_PUBLIC_API_BASE` (works on the prebuilt image via `docker run -e`) and list the UI's origin in `OMNIVOICE_ALLOWED_ORIGINS` — see [docker.md#lan-access](docker.md#lan-access). ## 9. Apple Silicon `mlx-whisper` unavailable on Intel mac **Symptom:** on an Intel mac, VoiceStudio logs `mlx-whisper backend unavailable; falling back to faster-whisper`. **Cause:** `mlx-whisper` and `mlx-audio` only build for arm64 (Apple Silicon). **Fix:** none needed on Apple Silicon setups that log this transiently. Note that Intel Macs can no longer run the local backend at all — PyTorch dropped Intel-Mac wheels, so this entry only applies to historical installs (see [macos.md](macos.md) and [#889](https://github.com/debpalash/VoiceStudio/issues/889)). ## 10. Windows: `Could not locate cudnn_ops_infer64_8.dll` during transcription **Symptom:** on Windows + NVIDIA, transcription/dubbing fails and the backend log shows `Could not locate cudnn_ops_infer64_8.dll`. Model Catalogue (ASR tab) shows WhisperX or faster-whisper selected. On builds before this was fixed, the failure looked much worse than a failed transcribe: CTranslate2 aborts the **process** rather than raising, so the whole backend died with `exit code -1073740791` (`0xC0000409`) and no error, the app restarted it, and the next attempt killed it again ([#1371](https://github.com/debpalash/VoiceStudio/issues/1371)). VoiceStudio now checks whether cuDNN 8 will load *before* selecting a CTranslate2 engine and falls back to PyTorch Whisper instead, so a missing library costs you WhisperX's word-level alignment — not the backend. Direct or already-selected CTranslate2 adapters also check the CUDA libraries before loading and use their CPU path when cuDNN is missing. Hosts with working CUDA libraries keep GPU acceleration. The repair below is still worth doing to get WhisperX back. **Cause:** WhisperX and faster-whisper run on **CTranslate2**, which needs **cuDNN 8**, but PyTorch 2.8 ships cuDNN 9. VoiceStudio side-loads a cuDNN-8 copy from `.venv\Lib\site-packages\cudnn8_compat\` — but the step that installs that folder only ever lived in the dev-loop setup script, which isn't bundled into the packaged app. **Packaged installs never had these libraries at all**, so reinstalling never fixed it ([#827](https://github.com/debpalash/VoiceStudio/issues/827)). **Fix:** update to the latest build and relaunch — the app's bootstrap now detects a CUDA machine and installs the cuDNN-8 libraries into the backend venv automatically at launch ([#869](https://github.com/debpalash/VoiceStudio/pull/869)). (The check is skipped — and its negative result cached — on CPU/AMD/Apple machines, so non-NVIDIA launches stay instant.) If the automatic install can't run (offline / restricted network), install manually into the backend venv, then restart: ``` uv pip install --no-deps --python .venv\Scripts\python.exe --target .venv\Lib\site-packages\cudnn8_compat nvidia-cudnn-cu12==8.9.7.29 ``` (On Linux the target is `.venv/lib/pythonX.Y/site-packages/cudnn8_compat`.) Or sidestep cuDNN 8 entirely: switch the ASR backend to **PyTorch Whisper** in **Model Catalogue** (ASR tab → **Use**). It runs on PyTorch's own stack (cuDNN 9, bundled with torch) and needs no cuDNN-8 DLL — it loads its Whisper pipeline on demand (no extra env var). ## 11. IndexTTS / CosyVoice / ChatterboxTTS clash **Symptom:** installing one of these engines breaks the others — e.g. after installing CosyVoice, IndexTTS errors out with import conflicts. **Cause:** these engines pin incompatible transformer / torch versions inside their own engine venvs. Pre-v0.3 they shared a single venv. **Fix:** Phase 2 ships subprocess isolation per engine (each engine runs in its own venv). For v0.3, workaround: install only one of the conflicting engines per VoiceStudio copy. See [docs/engines/cosyvoice.md](../engines/cosyvoice.md) for the dedicated CosyVoice path. **Linked issue:** [#55](https://github.com/debpalash/VoiceStudio/issues/55) **Same class, ASR side:** the `nemo-parakeet` ASR engine has the identical problem and currently has **no safe install path** at all — `nemo_toolkit[asr]` hard-pins `transformers>=4.57,<4.58`, which is unsatisfiable alongside VoiceStudio's own `transformers>=5.3` requirement. Installing it into the shared venv breaks the backend outright. Do not `pip install nemo_toolkit` into VoiceStudio's environment; if you want to try it, use a separate Python environment. Isolated-venv support for this engine (matching CosyVoice/ dots-tts) is tracked in [#974](https://github.com/debpalash/VoiceStudio/issues/974). ## 12. CUDA PyTorch wheel download fails on first run **Symptom:** first-run setup stops at **Installing dependencies** with a failure that mentions `torch` and a `download.pytorch.org` (or `download-r2.pytorch.org`) URL — e.g. `Failed to download torch==2.10.0+cu128 …win_amd64.whl`. The app then won't launch. **Cause:** on Windows/Linux NVIDIA machines, VoiceStudio installs the CUDA PyTorch build (`torch` + `torchaudio`) from PyTorch's own index. That CUDA wheel is large (~2.5 GB), so a flaky or restricted network drops it partway. This is a download/network problem, **not** a bug in VoiceStudio. The install fetches the exact URLs pinned in `uv.lock`, so neither a PyPI mirror (`UV_DEFAULT_INDEX`) nor the **China** download region redirects it: PyTorch's index has no mirror. **Fix, in order:** 1. **Clean & Retry** (under **More fixes**). Large downloads frequently succeed on a second attempt — VoiceStudio already retries each request 5× with long timeouts, and a fresh attempt reuses every file that finished downloading. The CUDA `torch` wheel downloads over several connections and resumes from the parts it already has (see below). 2. **Use a VPN** if your network throttles or blocks the PyTorch CDN. 3. See [First-run setup is slow or stalls on a download](#first-run-setup-is-slow-or-stalls-on-a-download) for what the setup screen shows and what a retry keeps. If it keeps failing, or a download stays stuck for five minutes, click **Install the CPU version instead** on the setup screen. It's a much smaller download, and everything works, but voices generate more slowly. The choice is saved in `~/.config/omnivoice/env` (`%USERPROFILE%\.config\omnivoice\env` on Windows). To try the GPU build again, launch once with `OMNIVOICE_TORCH_VARIANT=cuda`. If you don't have an NVIDIA GPU, you don't need the CUDA build at all — a CPU / Apple-Silicon install skips this index entirely. Electron source and packaged setup select CPU wheels when no NVIDIA driver is detected. Set `OMNIVOICE_TORCH_VARIANT=cpu` before `bun run setup:api` or the packaged install action to choose them explicitly; see [CPU setup](../../electron/README.md#running-without-a-gpu). An unusable NVIDIA driver is a setup warning for CPU-capable engines; GPU-only engines still require supported hardware. **Linked issue:** [#569](https://github.com/debpalash/VoiceStudio/issues/569) ## 12b. My AMD Radeon GPU is not used (CPU is busy, GPU is idle) **Symptom:** generation or transcription is slow, Task Manager shows the CPU busy and the Radeon idle, and **Settings → About → Run self-check** says the compute device is `cpu`. **Cause:** the default install has the NVIDIA CUDA build of PyTorch (or the CPU-only build when no NVIDIA driver is present), and neither can drive AMD GPUs. This is not a driver problem on your side. ROCm is opt-in on Linux and Windows (macOS has no ROCm), so the installer never picks it on its own; the setup screen's GPU check names the installed build and the opt-in for your OS. Open **Settings → Performance → GPU acceleration**: it names your card, the installed PyTorch build and, for every engine, whether it uses the GPU. **Fix, by platform:** - **Windows:** supported Windows 11 Radeon cards, including the RX 9070 / 9070 XT (RDNA4), can opt into VoiceStudio's ROCm 7.2.1 setup — see the [Windows ROCm guide](windows-rocm.md). Otherwise PyTorch engines stay on the CPU; engines with their own GPU runtime — today audio.cpp (Vulkan) — still use a Radeon: install its runtime from **Settings → Models**. - **Linux:** set `OMNIVOICE_TORCH_VARIANT=rocm` and run setup again, or use the ROCm Docker image — [linux.md — AMD GPU (ROCm)](linux.md#amd-gpu-rocm). The ROCm build supports RX 9000 (RDNA4) cards natively; do not set `HSA_OVERRIDE_GFX_VERSION=11.0.0` for them. If the panel says PyTorch has ROCm but cannot open the device, check that the `amdgpu` driver is loaded and your user can open `/dev/kfd` (`render` and `video` groups). **Linked issue:** [#2468](https://github.com/debpalash/VoiceStudio/issues/2468) ## 12c. Intel Arc (XPU): model load fails, or every generation fails after one out-of-memory error **Symptom (load):** with a PyTorch `+xpu` build on Windows, every model load fails and the log shows `doesn't support querying the available free memory`. **Symptom (after OOM):** one generation fails with `UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY` or `XPU out of memory`. After that, every generation fails the same way until the app restarts. **Cause:** the Arc Windows driver does not implement the free-memory query that model loading calls. Separately, the failed request's memory used to stay held after an out-of-memory error. **Fix:** update VoiceStudio. Free memory is now estimated from total minus reserved, and the failed request's memory is released right after the error. If generations still run out of memory, use a smaller model or shorter text, or press **Flush** to unload models. Intel Arc support is experimental — see [windows.md — GPU support](windows.md#gpu-support). ## 13. Stuck on the download page / incomplete model cache ("only `refs/`") **Symptom:** the setup screen never finishes the model download and you can't reach the main app. Looking in the HF cache, a model folder (`models--k2-fsa--OmniVoice`, `models--Systran--faster-whisper-large-v3`) has `refs/` and maybe `config.json` but **no weight files** (`blobs/` empty or tiny). A partial cache can also have its weights but be missing `audio_tokenizer/preprocessor_config.json`. In that case synthesis reports "Can't load feature extractor" and names that file. VoiceStudio now routes this error through the existing cache repair and retries loading. With `HF_HUB_OFFLINE` or `TRANSFORMERS_OFFLINE` enabled, it leaves downloads disabled and reports that repair needs network access. If automatic repair fails, use the clean re-download steps below. **Cause:** the download started but the large weight shards never finished — almost always the connection **dropping, throttling, or being blocked** mid-pull (corporate/school proxy, VPN, antivirus quarantining the multi-GB file, or a region where `huggingface.co` is slow/blocked). The app retries and verifies weights, but a connection that *trickles* rather than dies can stall for a long time. **Fix — force a clean re-download:** 1. **Fully quit VoiceStudio.** Check Task Manager (Windows) / Activity Monitor (macOS) and end any leftover `omnivoice` / `python` process — a half-running one keeps the cache locked. 2. **Delete the incomplete model folder(s) entirely** from the HF cache (the whole `models--…` folder, not just `refs/`). Leave other models alone: - `models--k2-fsa--OmniVoice` - `models--Systran--faster-whisper-large-v3` 3. **Relaunch** — the download page re-pulls from scratch. **If it stalls again at the same spot**, the download is being blocked — try, in order: - **Antivirus/firewall** — temporarily disable it for the download (large model files are a common false-positive quarantine), then re-enable. - **Connection** — use a stable, direct connection; pause any VPN; avoid corporate/school networks. - **Region mirror** — if `huggingface.co` is slow/blocked where you are, VoiceStudio normally handles this automatically: with no endpoint explicitly configured (including with the China region selected) it probes both the official endpoint and the `hf-mirror.com` community mirror and downloads from whichever works (downloads are checksum-verified either way; see [downloading-models.md](../downloading-models.md)). To check or re-test the automatic pick, use **Settings → Models → Hugging Face mirror → Test again**. To pin a mirror yourself, pick one in the same panel (or the quick-pick the first-run system check offers when nothing is reachable), or set it as an env var before launching and relaunch: - macOS/Linux: `export HF_ENDPOINT=https://hf-mirror.com` - Windows (PowerShell): `[Environment]::SetEnvironmentVariable("HF_ENDPOINT","https://hf-mirror.com","User")` Automatic selection checks model-file metadata, so a mirror that only redirects to the official host without supplying download metadata is not selected. If you pinned a mirror explicitly and downloads fail with an invalid etag or missing metadata, restore automatic selection in the same panel or choose the official endpoint. Old automatic decisions are checked again during setup after this update. A segmented download refuses a response whose status or Content-Range does not match the requested bytes and file size. An invalid response is not published as the model file; retry through a server or mirror that supports correct byte ranges. Segmented download resume records are reused only with an existing partial file of the expected size and valid byte-range entries. If a partial file is missing, truncated, or oversized, or its sidecar is malformed, the download fetches those bytes again instead of treating preallocated zeros as completed data. Oversized partial files are resized before restarting so old trailing bytes cannot prevent verification of the new download. Stale checkpoints are removed before resizing or recreating partial files, so a failed fetch cannot make the next retry trust stale or zero-filled bytes. If that stale checkpoint cannot be removed, the restart stops before changing the partial file or destination. **Check space before installing.** The first-run runtime screen lists the folder the Python environment will be installed to together with the free space on that drive (highlighted when it is below the roughly 9 GB needed); use **Change** there to pick a roomier drive before pressing Install. **Disk filled up mid-install.** A model or engine install that runs out of space stops immediately (it is not retried with backoff) and reports how much space is free and where; free space or move the model cache to a larger volume, then retry. The download resumes from the part that already finished. During first-run setup, the one-time `uv` installer download is attempted up to three times (two retries) on connection resets, timeouts, and HTTP 5xx/429 before it reports failure. **Exports named after a video title.** Download and export names built from a video title replace characters Windows rejects (`< > : " / \ | ? *`, control characters, trailing dots/spaces, device names such as `CON`) with `_` on every OS, so `How to X: a guide?` exports as `How to X_ a guide_` instead of failing with `[Errno 22] Invalid argument`. **Manual fallback** (if downloads keep failing), pull the weights yourself into the same cache, then relaunch: ```bash pip install -U "huggingface_hub[cli]" huggingface-cli download k2-fsa/OmniVoice huggingface-cli download Systran/faster-whisper-large-v3 ``` (If VoiceStudio uses a custom models directory, set `HF_HOME` to it first so the files land where the app looks.) > Newer builds detect an incomplete cache and re-offer the download instead of > stranding you on this page — update once the fix is in your channel. **Linked issue:** [#622](https://github.com/debpalash/VoiceStudio/issues/622) ## 14. "Can't reach the local backend" *during* generation / transcription / dubbing **Symptom:** the app worked at startup (you reached the main menu and the model loaded), but the moment you **generate audio, dub a video, transcribe, or dictate**, it spins for a long time and then shows **"Can't reach the local backend."** The backend log ends right after a line like `whisperx transcribing …tmpXXXX.wav` (or a generate) with nothing after it — i.e. the backend is **alive**, the GPU *job* is what stalled. **Cause:** this is **not** a connection, download, or "network mirror" problem — the backend started fine. A GPU job (a **generate** on the TTS model, or an ASR transcribe with WhisperX/faster-whisper **large-v3**) is too heavy for the available compute and runs for minutes; because it wedges its GPU-pool worker, every *other* request — including the next generate and the health check — is starved, which the UI surfaces as an unreachable backend. The usual trigger is **VRAM starvation on NVIDIA**: models contend for memory on an 8 GB-class GPU (the log shows e.g. `GPU pool sized … 7.0 GB free`). CPU-only machines hit the same wall on long clips. This is the same root cause whether the last thing you did was `generate:start (audio)`, a dub, or a dictation. > There is **no "Network → Restricted/Global mirror" toggle** in Settings — that > control (the footer/Sharing **Network** button) is for **LAN sharing**, not > downloads. If someone pointed you there for this error, it was the wrong knob. **Fix — reduce ASR load (any one of these):** 1. **Pick a smaller ASR model / engine** in **Model Catalogue** (ASR tab: **Use** an engine, then a smaller model under the engine's **Weights**) — e.g. faster-whisper **medium** or **small**, instead of large-v3. Biggest win on low-VRAM GPUs. 2. **Free VRAM**: **Flush the TTS model** before dubbing so ASR isn't competing for memory (top toolbar → Flush → "Unload all + flush", or per-model from the engine's Weights list in Model Catalogue under the engine's family tab — see [Flush caches / Unload resident model](../performance.md#flush-caches--unload-resident-model) for exactly what it frees and the API equivalents for scripts), or 3. **Run ASR on CPU** (slower but reliable) if your GPU is small. 4. **Test with a 10-second clip** first — if that returns quickly, it confirms a compute/VRAM limit rather than a true hang. Newer builds **bound** every GPU job — whole-file transcription, **chunked dub transcription**, **and** TTS generation: instead of hanging forever and starving the backend, a wedged job fails after a timeout with this exact guidance. Tune the bounds with `OMNIVOICE_ASR_TRANSCRIBE_TIMEOUT_S` (whole-file transcription floor, default 300 seconds), `OMNIVOICE_GENERATE_TIMEOUT_S` (generation, default 300 seconds), and `OMNIVOICE_TRANSCRIBE_CHUNK_TIMEOUT_S` (per-chunk dubbing, default 120 seconds). Whole-file ASR allows the larger of its floor and twice the audio duration: a 25-minute recording gets 50 minutes. This covers file uploads, OpenAI-compatible transcription, batch dubbing, legacy dubbing and streams whose speaker engine requires the whole recording. Set `OMNIVOICE_ASR_TIMEOUT_REALTIME_FACTOR` to change the multiplier, or `0` to keep only the fixed floor. Invalid, negative or non-finite settings fall back to defaults. Duration comes from a local-only ffprobe check bounded to 10 seconds; unavailable duration uses the floor. Queueing, model loading and child inference share one deadline. Sidecars, including the Windows ROCm proxy, and whisper.cpp use its remaining time rather than a separate five- or ten-minute ceiling. Calls directly to an isolated engine without a route guard retain `OMNIVOICE_ASR_RECV_TIMEOUT_S` as their floor (default 600 seconds). Progress does not extend the deadline; timed-out in-process inference remains accounted for until its native worker exits. Saving a cloned voice without a transcript transcribes the reference with an installed speech-to-text model for at most 60 seconds (`OMNIVOICE_PROFILE_TRANSCRIBE_TIMEOUT_S`). After that the voice is saved without a transcript, and the first generation with it reuses the finished transcription. Installed models load from disk, so saving works offline. CPU-only hosts use a bounded 600-second generation floor because correct CPU synthesis can take longer than the accelerated five-minute budget. Override it with `OMNIVOICE_CPU_GENERATE_TIMEOUT_S` — an explicit value here always governs CPU-family generation, independent of `OMNIVOICE_GENERATE_TIMEOUT_S`. Setting *only* `OMNIVOICE_GENERATE_TIMEOUT_S` still governs CPU hosts too, the same as it always has (a quick way to lower the watchdog everywhere with one var); it only stops doing so once you also set an explicit `OMNIVOICE_CPU_GENERATE_TIMEOUT_S`, which then takes precedence for CPU jobs. Both budgets are also editable from **Settings → Performance & Device → Compute-time budget** — no env var or config file needed. A value saved there persists across restarts but only takes effect on the *next* backend restart (the running process already read the old value at startup), which the panel states — and if an external env var (shell profile, `.env`, Docker `-e`, systemd unit, …) is already providing the same key, the panel says so instead, since that external value keeps winning on every future restart too, not just this one. **While the backend is busy, the app now stays usable.** The desktop shell polls the backend's `/health` endpoint while you work, and a long GPU job can hold the Python event loop long enough to miss those probes. The shell knows the process is still alive (it checks for an exit before reacting), so it now shows a **recoverable busy state** instead of an error: the status-bar dot pulses amber, your workspace stays open, and requests wait for the current job to finish rather than failing with "Can't reach the local backend". Nothing to do — it clears itself as soon as the job releases the event loop. If the dot turns **red** and names an exit code, that is a real crash; use the sections above. The backend also never waits on its own log output: stdout/stderr go through a bounded buffer when the shell reads them through pipes, so a slow log reader (a model download's progress bar, a busy shell) can no longer freeze the event loop. The request log goes through the same buffer, so it cannot block the loop either. If the buffer overflows, the log shows one `[log] N output chunk(s) dropped` line. Set `OMNIVOICE_BLOCKING_STDIO=1` to restore plain blocking writes. When the loop does stall, the backend log names the blocking call (`OMNIVOICE_LOOP_STALL_S`, default 4 s, `0` disables). **Two things changed here** ([#1190](https://github.com/debpalash/VoiceStudio/issues/1190)): - **Waiting in line is no longer counted as compute.** The generate budget used to start the moment a job was *queued*, so on a 1-worker machine a request sitting behind a busy one burned its whole 300s without executing a single instruction and then blamed your hardware. The budget now starts when a worker actually picks the job up. Queue wait has its own, far more generous bound (`OMNIVOICE_GPU_QUEUE_TIMEOUT_S`, default 1800s); crossing *that* reports a saturated pool — an explicitly **retryable** condition, not a too-heavy job. - **The old message over-promised.** It said "Capacity was restored automatically". It wasn't: Python can't kill the abandoned worker thread, so it keeps running — and keeps its VRAM — until it finishes on its own. The pool reset only stops *new* work from queueing behind it. That is why an immediate retry often failed too, and why a long batch could die a few segments in. **Give the abandoned job time to drain (or restart the backend) before retrying.** The message now says so. The generation budget also **scales with the length of the text** (the floor is `OMNIVOICE_GENERATE_TIMEOUT_S`, plus 1 second per 40 characters past the first 1200), and every path uses it — the streaming preview the UI tries first, batch dubbing, `/v1/audio/speech`, and dub/archetype previews included. Long inputs should not need the env var at all. **Scripting the API?** `/v1/audio/speech` now tells you about pressure instead of going quiet: a **429** with a `Retry-After` header means the request was *refused before it started* because the worker pool is already backed up (safe to retry verbatim — nothing ran), and a **503** with `Retry-After` means the job was accepted but hit its bound. Both carry `X-VoiceStudio-Retryable: true`, and the streaming NDJSON error frame carries `"retryable": true` with `retry_after`. Back off on those rather than hammering — on a 1-worker machine, concurrent requests serialize by design. **If transcribe timeouts keep repeating back-to-back**, pool resets aren't recovering the underlying hang — the wedged thread keeps its VRAM until the app exits. The error message will then recommend switching the ASR engine to **Faster-Whisper (crash-isolated subprocess)** (`faster-whisper-isolated`) in **Model Catalogue**: it runs transcription in a separate process that can be force-killed to reclaim a hung transcribe *and* its VRAM, at a small per-call overhead. It reuses your existing faster-whisper install (nothing extra to download). VoiceStudio never switches engines automatically — this stays your call. > **Seeing "The backend crashed (exit code …)" instead?** That's the other > failure mode: the backend **process died** (native CUDA abort, out-of-memory > kill, DLL crash) rather than hanging. Newer desktop builds detect the death, > restart the backend automatically (giving up after 3 crashes in 10 minutes), > and show a crash notice with a **View crash details** button (exit code + > the last error output). Use **Report this bug** from that notice — the crash > evidence is attached to the prefilled GitHub issue automatically, with home > paths scrubbed. The raw markers live next to the backend logs in > `backend_crash_markers.json`. The report dialog asks for a one-line > description (required, so issues are never titled just "[Bug]") and lists > exactly what will be sent before the browser opens; nothing is posted from > the app. Markers are per-version: after you update the > app, notices recorded by the previous version are cleaned up rather than > resurfacing — the update may well have fixed that crash. > > Outside the desktop app (browser dev, Docker, LAN share) the same notice is > raised by the **backend itself** on its next start — see **section 14c**. ## 14b. "Can't reach the local VoiceStudio backend" flashing during startup or an automatic restart **Symptom (older builds):** while the backend was still starting — or while the desktop shell was auto-restarting a crashed backend — every click produced a **"Can't reach the local VoiceStudio backend"** toast, over and over, even though the backend came back on its own a few seconds later. **Cause:** a real backend start/restart takes **10–20+ seconds** (Python venv spawn plus the PyTorch import), but the UI's transport retry only bridged ~3 seconds before giving up — so every request landing inside that window dead-ended with the scary toast, which read as a recurring bug rather than a self-heal in progress. **Fixed:** newer desktop builds ask the shell whether a start/restart is actually in progress and simply **wait for it** (up to 2 minutes, matching the shell's own restart budget) instead of erroring, and show a single pinned **"backend is restarting — hang tight"** banner while it happens, followed by a "backend is back" confirmation. A backend that is *truly* dead (the shell gave up, or you're not running the desktop app) still errors promptly. If you see the error persistently on a current build, that's section **14** (a wedged GPU job), section **14d** (the backend never started), or the crash notice above — not this window. A startup timeout from an earlier attempt cannot replace the current startup state after **Retry** takes over. Desktop startup, **Retry**, storage reset, setup re-entry, in-app uninstall, app shutdown, and automatic crash recovery also share one backend lifecycle owner. Overlapping start attempts wait and attach to the healthy process, while reset/setup/uninstall keep exclusive ownership through teardown and disk changes, and shutdown joins any in-progress launch before stopping it. They no longer launch a second backend that fails on port 3900, leave a misleading crash notice, delete an environment from under a starting child, or orphan one on exit. Quitting also interrupts a first-run `uv` install instead of waiting for a long download to finish. Unix builds give backend lifespan cleanup a bounded SIGTERM grace period; Windows' hidden backend has no console, so its initial stop is best-effort and may proceed directly to the bounded forced tree cleanup. Surviving subprocess engines cannot retain ports or files (#1635). ## 14c. "Can't reach the backend" in a browser — `bun run dev`, Docker, or LAN share **Symptom:** you're using VoiceStudio **outside the desktop app** — the dev stack (`bun run dev`), a Docker deployment, or a shared/remote backend — and requests fail with a "can't reach the backend" error. These deployments have no desktop shell to supervise the backend. Newer builds make the backend **self-forensicate**, and the dev runner adds bounded recovery: - **The error tells you what it knows.** It now says whether the backend *was answering and stopped* ("it was answering 12 s ago … likely crashed or was killed mid-request") or *never answered this session* ("it may never have started" — a port conflict or failed setup), and points at the right logs for **your** deployment: the `bun run dev` terminal + `omnivoice.log` in dev, `docker logs ` / `journalctl` on a server. (If Docker serves the page itself, the page can go down together with the backend — check the container first.) - **Dev crash recovery and exit banner.** `bun run dev`'s backend runs through `scripts/dev-backend.mjs`, which owns Python-file reloads directly so a dead server cannot hide behind a still-running uvicorn reload parent. When the backend dies with a non-zero exit, a boxed banner prints the exit code/signal, the last 20 lines of `omnivoice.log`, and an OOM-check hint (`journalctl -k | grep -i oom` on Linux), then restarts it after one second. Three restarts are allowed in a rolling 60-second window; a fourth crash exits and lets `concurrently` tear down the broken stack. Ctrl+C and other deliberate shutdowns never restart it. - **Crash notice on the next start.** The backend keeps a **run sentinel** (`run_sentinel.json` in its data folder) while running and clears it on a clean shutdown. If a start finds a stale sentinel whose process is gone, the previous run died uncleanly: a record is written to `last_run_crash.json` (death window, last activity — e.g. "generate" or "transcribe" — and a scrubbed tail of `omnivoice.log`), the UI shows the same crash notice the desktop app shows (**View crash details** → the log tail; **Report this bug** → the evidence rides along in the prefilled GitHub issue), and `GET /system/last-run-crash` exposes it to scripts. Records are capped at the last 3, survive being dismissed (bug reports still need them), and are per-version like the desktop markers — after an update, notices from the previous version don't resurface. Where the forensics live: `omnivoice.log`, `run_sentinel.json`, and `last_run_crash.json` are all in the backend's data folder (`~/Library/Application Support/OmniVoice` on macOS, `%APPDATA%\OmniVoice` on Windows, `~/.omnivoice` on Linux, or `$OMNIVOICE_DATA_DIR` — the Docker image mounts it as the `omnivoice_data` volume). ### Google Colab: the UI loads but every action fails with 403 The [Colab notebook](../../notebooks/OmniVoice_Studio_Colab.ipynb) opens the UI through Colab's port proxy, on a per-session `https://-3900-colab.googleusercontent.com` address. The backend refuses browser API calls from host names and origins it does not know (DNS-rebinding and cross-site protection), so the notebook's launch cell (cell 5) asks Colab for that proxy address and starts the backend with exactly that origin in `OMNIVOICE_ALLOWED_ORIGINS` and that host in `OMNIVOICE_ALLOWED_HOSTS`. No other origin is trusted. If you see 403s, the backend was started some other way or by an older copy of the notebook: stop it (`!kill $(lsof -t -i:3900)`), then re-run cells 5 and 6 from the browser. Most API routes have no `/api` prefix (`/generate`, `/profiles`, …), so `curl …/api/generate` returning 404 is expected. ## 14d. "Can't reach the local VoiceStudio backend" when the backend never started **Symptom (older builds):** the app opened, but every action failed with **"Can't reach the local VoiceStudio backend — it may still be starting up, or it stopped."** Waiting and retrying never helped, and the message gave you nothing to act on or to put in a bug report. **Cause:** the message was wrong *and* evidence-free. The backend was not starting up and had not merely stopped — it had **failed to start**, and the desktop shell knew exactly why: it holds the exit code plus a ~30-line tail of the backend's stderr, or the specific reason setup refused (an Intel Mac, a failed `uv sync`, a network blocking GitHub). The UI could not read that diagnosis, so every distinct failure collapsed into the same generic sentence. **Fixed:** the app now surfaces the shell's own diagnosis. When a request fails because the backend could not start, you get: - **"The backend couldn't start"** instead of "it may still be starting up" — it names what happened rather than guessing. - **A "See why" notice** whose details dialog shows the exit code and the captured stderr tail verbatim, plus the same actionable hints the setup screen gives (broken venv, blocked GitHub, port in use, unsupported Intel Mac — where retrying can never help, no Retry is suggested). - **A "Report" button** that opens a prefilled GitHub issue with that output already attached, with your home directory path replaced by `~` and any credential-shaped strings redacted before anything leaves the machine. The reason is also **retained** across a Retry or an automatic respawn, so a later attempt can't erase the diagnosis of the first one. **From source (`bun run dev`)?** Run `bun run setup:api` first so the backend's Python environment exists. If the window never comes up, read the terminal output plus `omnivoice.log` and `backend_err.log` in your VoiceStudio data folder. If a packaging build (`bun run dist`) stops while compiling the Rust native helper with a missing `pkg-config` library, install the package block in the [Linux source-build guide](linux.md#building-from-source). **Still stuck?** Open the details, copy the output, and file it with **Report** — that output is the thing that makes the failure diagnosable. ## 15. Archived Tauri app: stuck at "preparing" after a crash (Windows) This entry covered a corrupted WebView2 profile in the archived Tauri app (`IPC custom protocol failed, Tauri will now use the postMessage interface instead`, issue #879). The Electron app does not use WebView2. Install Electron with the [migration guide](../electron-migration.md); if the Electron app hangs at startup, see [14d](#14d-cant-reach-the-local-voicestudio-backend-when-the-backend-never-started). ## 16. macOS: microphone permission never prompts, VoiceStudio never appears in System Settings **Symptom:** clicking record shows "Microphone access denied. macOS: open System Settings → Privacy & Security → Microphone and enable VoiceStudio" — but VoiceStudio never appears in that list, so there's nothing to enable. `NSMicrophoneUsageDescription` is present in the app's `Info.plist`, and resetting the permission (`tccutil reset Microphone com.voicestudio.desktop`) followed by a relaunch changes nothing — no system prompt ever appears. **Cause:** the app bundle was missing the Hardened Runtime *entitlement* for microphone access. Hardened Runtime blocks microphone hardware access unless `com.apple.security.device.audio-input` is present in the signed binary's entitlements — regardless of `Info.plist`'s `NSMicrophoneUsageDescription` (that only supplies the prompt *text*). Without the entitlement, macOS's TCC layer never registers a request, which is exactly why the app never appears in the System Settings list. (Diagnosed in the archived Tauri app by [@MahdiHedhli](https://github.com/MahdiHedhli).) **Fix:** fixed since the release after v0.3.12 ([#1016](https://github.com/debpalash/VoiceStudio/pull/1016)); the Electron app signs with the same entitlement (`electron/build/entitlements.mac.plist`). Update and live recording works, with a normal macOS permission prompt on first use. **Workaround on older builds (≤ v0.3.12):** record your voice sample in any other app (Voice Memos, QuickTime, etc.) and upload the resulting file in VoiceStudio instead of using live recording — upload-based cloning is unaffected and works normally. **Linked issue:** [#1013](https://github.com/debpalash/VoiceStudio/issues/1013) > **Tip:** current builds surface the live OS grant state in-app — **Settings → > Permissions** shows whether the microphone (and, on macOS, Accessibility) is > granted, denied, or not asked yet, with an **Open Settings** button that > deep-links the exact OS pane described above. The dictation blocker rechecks > Accessibility while it is visible and closes as soon as macOS reports the grant. ## 17. Windows: backend won't start with a non-English (CJK) username — `UnicodeDecodeError` in `site` **Symptom:** the app never gets past first-run setup / "starting_backend", and the backend log shows the interpreter dying before any VoiceStudio code runs: ``` Fatal Python error: init_import_site: Failed to import the site module File "", line 188, in addpackage UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 11: illegal multibyte sequence ``` **Cause:** Python 3.11's `site` module opens every `.pth` file in `site-packages` using the ANSI code page — even with `PYTHONUTF8=1` set. When the managed environment lives under a Windows user profile whose account name contains non-ASCII characters (most commonly CJK), or a source checkout sits in a non-ASCII folder (for example a Thai folder name on a `cp874` system), `uv sync`'s editable install `.pth` embeds that path in UTF-8, which is rarely a valid byte sequence in the active ANSI code page (`gbk`, `shift_jis`, `cp874`, etc.), and the interpreter can never start (#1783). In a source checkout, `bun run dev` and `bun run setup:api` fail with ``Querying Python at `…\.venv\Scripts\python.exe` failed``. **Fix:** VoiceStudio now rewrites those `.pth` entries to ASCII-only paths after each runtime install and before each launch, so existing environments recover on the next start. Source checkouts get the same repair: `bun run setup:api` heals `.venv` before every `uv` step, and `bun run dev` / `bun run dev:api` heal it before starting the backend, so a manual `uv sync` is covered too. If the backend still cannot start, keep the app environment on an ASCII-only path. On the first-run setup screen, press **Change…** beside **App environment** and pick a folder such as `C:\VoiceStudio` before setup starts. An environment that cannot start fails VoiceStudio's runtime check, so setup opens again: choose an ASCII-only App environment location there. The broken environment is left in place for manual removal. The archived Tauri app's automatic 8.3 short-path relocation and its `env_dir` / `portable.path` overrides do not apply to the Electron app. Re-enabling 8.3 short filenames (`fsutil 8dot3name`) is deliberately **not** recommended: the setting is per-volume and only affects directories created *after* it's changed, so it does nothing for a folder that already exists. **Linked issue:** [#1783](https://github.com/debpalash/VoiceStudio/issues/1783) (auto-captured from [#1771](https://github.com/debpalash/VoiceStudio/issues/1771)) ## Dub: "translation engine needs the optional … package" **Symptom:** in the Dub tab, translating fails with e.g. *"The 'google' translation engine needs the optional `deep_translator` Python package, which isn't installed in this backend."* **Cause:** the online translation engines (Google / DeepL / Microsoft / MyMemory via `deep_translator`, and the LLM provider via `openai`) are **optional** and not bundled. Only **Argos** and **NLLB** work out of the box. **Fix:** - **From-source / Docker install:** click the highlighted **Install** button next to the *Engine* label in the Dub tab (or run `uv pip install deep_translator` in the backend venv) and restart the backend. - **Packaged installer build:** in-app install is disabled (read-only signed environment). Click the highlighted button to open the popover and **Switch to Argos (bundled, offline)** — or copy the command to run it in a from-source checkout. Full guide: [dubbing/translation-engines.md](../dubbing/translation-engines.md#installing-optional-translation-engines-from-source-vs-packaged-build). ## First-run setup fails on a restricted network (GitHub/PyPI blocked) On networks that block, throttle or can't resolve **GitHub**, first-run setup may stall or fail while downloading the managed Python (the setup screen shows `cpython-3.11.… (download)`). With the download region on **Auto-detect**, setup retries a failed or stalled Python download once from the other source (GitHub ↔ the `gh-proxy.com` mirror) and notes the switch in the setup log; a region you picked, or your own `UV_PYTHON_INSTALL_MIRROR`, is kept as is. If both fail: 1. **Choose the Russia or Restricted download region** under **Options** on the setup screen and press Retry: both start from the mirror. 2. **Point at a reachable mirror** for the Python download: - `UV_PYTHON_INSTALL_MIRROR=https://gh-proxy.com/https://github.com/astral-sh/python-build-standalone/releases/download` 3. **In China, keep Auto-detect or pick the China download region** under **Options** on the setup screen. Auto-detect uses the Aliyun mirror when a quick speed check finds it faster; China always uses it. Packaged setup then downloads the PyPI wheels pinned in `uv.lock` from the Aliyun PyPI mirror (`mirrors.aliyun.com`). PyTorch wheels still come from `download-r2.pytorch.org`. 4. **Use a VPN or proxy for the dependency install.** The install downloads the exact wheel URLs pinned in `uv.lock`, so a PyPI mirror setting (`UV_DEFAULT_INDEX`, `UV_INDEX_URL`) does **not** redirect it. Packaged setup uses your system proxy, or `HTTPS_PROXY` when it is set. See [First-run setup is slow or stalls on a download](#first-run-setup-is-slow-or-stalls-on-a-download). 5. The bootstrap already raises the network budget for you (`UV_HTTP_TIMEOUT=900`, `UV_HTTP_CONNECT_TIMEOUT=30`, `UV_HTTP_RETRIES=5`); you can raise them further in the environment if a mirror is very slow. **Linked issues:** [#130](https://github.com/debpalash/VoiceStudio/issues/130), [#60](https://github.com/debpalash/VoiceStudio/issues/60), [#57](https://github.com/debpalash/VoiceStudio/issues/57) ## First-run setup is slow or stalls on a download **Symptom:** first-run setup sits on **Installing…** for a long time, shows a low speed (about 1 MB/s) on a fast connection, or shows **No data from `` for N s**. **What the screen shows:** while dependencies download, the setup screen names the host the current download comes from. When no data has arrived for 45 seconds, it says the download has stalled and names that host. The setup log (**Details** or **Download setup log**; see [Reading the first-run install log](#reading-the-first-run-install-log-after-setup-finishes)) records each source host, a progress line every 30 seconds, and when the download stalled or resumed. Attach those lines to a bug report. **Where the downloads come from:** the wheels pinned in `uv.lock`, nothing else: | Host | What | |---|---| | `files.pythonhosted.org` (PyPI) | Most packages, and on Linux the `nvidia-*` CUDA libraries (~3 GB) | | `download-r2.pytorch.org` (PyTorch) | `torch`, `torchaudio`, `torchvision` on Windows and Linux x64. On Windows the CUDA `torch` wheel is one file of about 3 GB | **Why it can be slow:** uv downloads each file over a single connection, and it cannot resume a file that stopped partway. A speed test opens many connections at once, so a network or CDN that limits each connection looks fast in a speed test and slow here. One large file (the Windows CUDA `torch` wheel) then decides the total time. **Large wheels use several connections:** before uv runs, setup asks uv which wheels it still has to download and fetches every one larger than 64 MB itself, in byte ranges over 8 connections, from the same URL in `uv.lock` (or the regional mirror). Each file is checked against the sha256 pinned in `uv.lock` before uv installs it from disk. The setup log shows `Fetching torch (3.2 GB) from download-r2.pytorch.org over 8 connections` and how long it took. If a server refuses byte ranges or the download fails, the log says so and uv downloads that file as before. The files wait in the runtime's `.wheel-prefetch` folder and are deleted once the dependency install succeeds, including the partial parts of any file that fell back to uv's own download. Set `OMNIVOICE_SETUP_CONNECTIONS` to change the number of connections (up to 16), or to `1` to turn this off. **What Cancel keeps:** every file that finished downloading stays in the runtime's `.uv-cache` folder, and the next attempt reuses it, including after **Clean & Retry**. A large wheel fetched over several connections keeps every finished 8 MB part in `.wheel-prefetch`, so a retry continues where it stopped. A file uv itself was still downloading starts again from zero. The next attempt deletes the unfinished parts a cancelled attempt left behind, so repeated retries do not fill the disk. **Resume after an interrupted setup** keeps the existing Python environment and installs only what is missing, from the same `.uv-cache`; it never evicts wheels that already finished downloading. A runtime whose setup finished is never shown as interrupted, even if an old setup marker was left behind in `runtime\project`: VoiceStudio sees that setup completed after it and opens normally. **What to do:** 1. **If the bytes are still moving, let it run.** A stall notice only appears after 45 seconds without data. 2. **If it stalls, cancel and retry.** Finished files are kept. 3. **Use a VPN or a proxy.** Setup uses your system proxy; to force one, set `HTTPS_PROXY` (macOS/Linux: `export HTTPS_PROXY=http://host:port`; Windows PowerShell: `[Environment]::SetEnvironmentVariable("HTTPS_PROXY","http://host:port","User")`), then restart VoiceStudio. 4. **No NVIDIA GPU, or you don't need it?** The CPU build skips the large CUDA downloads. Setup picks it when no NVIDIA driver is found; set `OMNIVOICE_TORCH_VARIANT=cpu` to choose it. The **download region** choice (under **Options** on the setup screen) changes where the Python interpreter downloads from. With **China** selected, setup also downloads the `files.pythonhosted.org` wheels from the Aliyun PyPI mirror (`mirrors.aliyun.com`), which serves the same files: each one is still checked against the hash pinned in `uv.lock`. The setup log names the mirror. With **Auto-detect**, setup runs a quick speed check first: it reads the first 256 KB of one locked wheel from `files.pythonhosted.org` and from the Aliyun mirror at the same time (one request each, 6-second limit, no retries) and uses the mirror only when it answers and is clearly faster. Any doubt keeps `files.pythonhosted.org`; the setup log line `PyPI speed check: ...` shows the result. **Global** never runs the check; **China** always uses the mirror. If the mirror fails, setup retries once from `files.pythonhosted.org` and keeps every file that finished. In **Auto-detect**, a later DNS, connection or temporary server failure for a pinned PyPI file also tries the Aliyun mirror once. This covers small source archives as well as wheels; their locked hashes are unchanged. The fallback only applies when the failed URL identifies PyPI, and does not change an explicit **Global** choice or retry authentication/integrity errors through another host. If both hosts fail, fix the network/DNS problem and press **Retry**. Failure reports name the URL's failed host instead of a previously active large download. The PyTorch wheels on `download-r2.pytorch.org` have no mirror and download from there in every region. PyPI mirror variables (`UV_DEFAULT_INDEX`, `UV_INDEX_URL`) do not redirect the locked wheels ([#3444](https://github.com/debpalash/VoiceStudio/issues/3444)). **Linked issue:** [#3411](https://github.com/debpalash/VoiceStudio/issues/3411) ## Workspace navigation crashes with `insertBefore` / `NotFoundError` This was a `v0.5.0` workspace-lifecycle bug exposed by rapid Launchpad ↔ Dub navigation while media renderers were cleaning up. Current builds isolate each workspace under its own DOM owner. Update VoiceStudio; no model or project data repair is required. **Linked issue:** [#1590](https://github.com/debpalash/VoiceStudio/issues/1590) ## Reading the first-run install log after setup finishes The Activity panel on the first-run screen shows the install as it happens, and that screen closes the moment setup succeeds — so it is not where you go afterwards to check what was installed, or to attach the log to a bug report. Electron retains a redacted, timestamped **`setup.log`** across retries and app restarts. **Download setup log** works during installation, after failure, and when resuming an interrupted installation, before the backend is available. It saves `voicestudio-setup.log` to a location you choose. Nothing is uploaded. Normal app shutdown waits for pending setup log writes before exiting. Default locations of the retained log (portable/profile configurations may differ): | Platform | Location | |---|---| | macOS | `~/Library/Application Support/VoiceStudio/setup.log` | | Windows | `%APPDATA%\VoiceStudio\setup.log` | | Linux | `~/.config/VoiceStudio/setup.log` | The log includes attempt times, phases, download hosts, effective uv timeouts, proxy presence (not proxy credentials), progress, connection-check results, and error chains. Export adds the app version, OS, architecture and current status. Credentials, signed URL query strings and home-directory usernames are redacted. The retained history is bounded: when full, it keeps the initial context and latest lines, marking omitted content. Review the file before attaching it. The setup screen keeps one help row: **Download setup log**, the install guide, troubleshooting, **Report a problem** and **Get help on Discord**. After **five minutes without download progress**, setup shows a stalled-download notice with **Check download connection**, and the report link becomes a prefilled **Report a bug**. After an installation failure the same report appears immediately and the connection check is under **More fixes**. The warning clears when progress resumes; it does not cancel the installation. GitHub opens a prefilled report for you to review and submit; attach the downloaded log manually. Discord opens the official server. No report or log is submitted automatically. **Check download connection** makes a user-requested, bounded sample download from the affected package's pinned URL, using setup's proxy settings. It requests only artifacts from the lockfile compiled into the app, so changing a local runtime lockfile cannot redirect the diagnostic request. The check requests 256 KiB and stops after at most 15 seconds, including connection setup. It can identify a blocked or failing package host; a successful sample does not prove that a multi-gigabyte download will finish. If no matching artifact is known, the check reports that it is unavailable instead of testing an unrelated host. The existing Auto region speed check only compares PyPI and its regional mirror; it does not choose a mirror for PyTorch's own servers. Setup defaults to `UV_HTTP_TIMEOUT=900` (15 minutes), `UV_HTTP_CONNECT_TIMEOUT=30`, and `UV_HTTP_RETRIES=5` for uv commands, including sync retries and fallbacks. Explicit environment overrides are preserved. The five-minute support prompt is independent of these timeouts. A large file may take longer than 15 minutes in total while continuing to make progress. If the error chain ends with `cannot decrypt peer's message`, the package connection failed while reading encrypted data. The preceding cache-write error does not by itself mean the disk is full. Resume to try again, and share the setup log if it repeats; completed downloads are retained. ## RTX 50-series (Blackwell, `sm_120`): backend never starts **Symptom.** The desktop app stays on "starting backend", `/health` returns 503, and the backend log ends inside the `ml_imports` phase — often with a native crash (exit code `0xffffffff` / `-1073741819`) rather than a Python traceback. **Cause.** Unknown so far. The pinned torch build does ship `sm_120` kernels, and some of these cards run CUDA on it. On the Windows machines in #1931, `import torch` crashes natively before VoiceStudio can inspect anything, so all the app can show is that the backend never started. Moving to torch 2.9.x fixed it for those users. **Fix.** Upgrade to torch 2.9.x. From a source checkout, run these steps in the project folder: 1. Edit `pyproject.toml` → `[tool.uv] constraint-dependencies` and raise the torch constraint to `torch==2.9.1+cu128` (matching `torchaudio` / `torchvision` for that release). 2. `uv lock` 3. `uv sync --all-extras` Then confirm the card is actually visible: ```bash uv run python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_capability())" ``` `True (12, 0)` means Blackwell is working. **Note.** torchaudio 2.9 removed `set_audio_backend()`. VoiceStudio's call is guarded, so the upgrade above no longer trades one startup crash for another — but if you are on a build older than that guard you will see `AttributeError: module 'torchaudio' has no attribute 'set_audio_backend'` in the same phase. Update VoiceStudio, or delete that line in `backend/main.py`. **Why the pin has not moved.** Raising it for everyone changes the CUDA build on every platform, in Docker, and in CI, so it is a deliberate decision rather than a patch. Track it in [#1931](https://github.com/debpalash/VoiceStudio/issues/1931). ## Windows Smart App Control blocks an engine DLL (`An Application Control policy has blocked this file`) On Windows 11, Smart App Control (or a WDAC/AppLocker policy on a work PC) can let the engine's `python.exe` start and then block a DLL it loads, for example `ImportError: DLL load failed while importing _sqlite3: An Application Control policy has blocked this file`. The engine runtime is made of thousands of DLLs built and published by other projects — the Python interpreter and packages such as PyTorch, NumPy and ONNX Runtime — and many of them are unsigned. Signing VoiceStudio's installer does not sign those files, so Smart App Control can block one even when the app itself is trusted (#3209, #1779). Smart App Control has no per-app exceptions. Your options: - **Turn Smart App Control off** in Windows Security → App & browser control → Smart App Control settings, then restart VoiceStudio. Current Windows updates can turn it back on from the same page; older Windows versions may need a reset to re-enable it. - **Keep it on and run the engine where it does not apply:** a WSL2 Linux distro or [Docker](docker.md) on the same PC (both run Linux binaries, which Smart App Control does not check), or another computer, then connect to it in Settings → Sharing → **Remote backend** ([remote-gpu.md](../remote-gpu.md)). A source checkout on Windows itself does not help: it downloads the same Python packages. - **Work PC:** ask IT to allow VoiceStudio's runtime folder in the application-control policy. ## Uninstalling / removing all of VoiceStudio's data VoiceStudio is fully local — no accounts, no services, nothing to deactivate. To reclaim disk space or fully remove it, run the uninstaller, which lists every VoiceStudio folder with its size (dry-run first) and deletes on `--yes`: ```bash scripts/uninstall.sh # macOS/Linux — dry-run scripts/uninstall.sh --yes # delete app data/env/config/logs scripts/uninstall.sh --yes --models # also delete the shared HF model cache ``` ```powershell powershell -ExecutionPolicy Bypass -File scripts\uninstall.ps1 -Yes # Windows ``` The two big folders are the **model cache** (Hugging Face weights, several GB) and the **managed Python env** (`project/.venv`, a few GB). The complete per-platform path list, env-var overrides, portable-mode note, and the steps to remove the app binary itself are in [docs/install/uninstall.md](uninstall.md). **Linked issue:** [#1089](https://github.com/debpalash/VoiceStudio/issues/1089) ### Pedalboard illegal-instruction crashes VoiceStudio pins pedalboard to `>=0.9.14,<0.9.21` while [upstream portable-wheel repair #466](https://github.com/spotify/pedalboard/pull/466) remains open. Re-sync the locked environment after updating from a build with newer affected wheels. This keeps the existing effects API floor while avoiding the reported Linux CPU import crash. ### TorchCodec unavailable When torchaudio requires an unavailable TorchCodec installation, VoiceStudio writes through soundfile and reads audio (reference clips, dub segments, cached-segment headers) through soundfile or its FFmpeg fallback, so dub assembly works on torchaudio 2.9 without TorchCodec. Reference amplitude is normalized using the decoded sample representation, including 8-, 24-, and 32-bit PCM. ### Isolated engine timeouts Generation has a separate deadline from health checks. Default sidecar deadlines scale with text length and the host execution budget; per-engine timeout overrides remain supported. The outer job guard includes time for sidecar termination and error reporting. A timeout identifies the deadline, while a closed pipe without a timeout indicates a crash. VoiceStudio 0.5.6 could report an installed one-click TTS engine such as VoxCPM2 or MOSS-TTS-Nano as unavailable when **Test engine** probed its in-process adapter instead of the installed isolated runtime. Update to a newer desktop build; reinstalling the engine or downloading its model again does not correct the health-check resolver in 0.5.6. Per-engine receive overrides include `OMNIVOICE_CONFUCIUS4_RECV_TIMEOUT_S`, `OMNIVOICE_DOTS_TTS_RECV_TIMEOUT_S`, `OMNIVOICE_MOSS_TTS_V15_RECV_TIMEOUT_S`, and `OMNIVOICE_SUPERTONIC3_RECV_TIMEOUT_S` (seconds). Invalid or non-finite values use the default; values below 30 seconds are raised to 30. ### FFprobe alongside FFmpeg When FFprobe is not on PATH, VoiceStudio also checks beside the selected FFmpeg binary. Parent folders named `ffmpeg` remain unchanged; only the executable name becomes `ffprobe` (or `ffprobe.exe` on Windows). ### Environment file encoding Project `.env` files may use UTF-8 or BOM-marked UTF-16 or UTF-32. If a file cannot be decoded, VoiceStudio skips it for that launch and logs a warning; save it as UTF-8 to restore its settings. The saved per-user environment file uses UTF-8 and is left untouched if it cannot be read. Check the log and correct the file before relying on its settings. ### Subtitle and manuscript encodings Electron and web imports accept UTF-8, UTF-16 with a byte-order mark, and Windows-1252 text. The same decoder rules apply to uploaded subtitles and audiobook manuscripts; legacy punctuation is preserved. ### Compile fallback after startup An architecture accepted by the torch.compile preflight may still encounter independent Dynamo, Inductor, Triton, or CUDA-graph runtime errors. VoiceStudio distinguishes those from GPU memory exhaustion and retries with eager execution; architecture support alone does not guarantee compilation succeeds. ### Native engine installation from a remote client Sidecar and audio.cpp runtime installation is restricted to requests from the backend computer's loopback interface. An API key does not bypass this restriction. The catalogue now shows local setup guidance instead of offering a remote install that will be rejected. Open the backend through `localhost` on that computer, or follow the engine's setup guide there. In Docker, bridge-network requests may not be loopback even when the browser runs on the host; use the documented container setup rather than weakening the native-install gate. ### Dubbing extraction fails Extraction errors show the FFmpeg exit code and the end of its diagnostics, with private paths scrubbed. Use the final error line to distinguish missing audio streams, unsupported inputs, permissions, or disk errors. A version banner alone does not identify the cause; include the final diagnostic and source format when reporting a failure. Explicit generation budgets remain authoritative. If an outer TTS/ASR guard times out or its caller disconnects, the active sidecar receive kills and reaps its captured child; it cannot terminate a later retry. In-process inference keeps its existing lifetime accounting until the native call returns. ### Voice conversion requires a cloning model In Electron, voice conversion stays disabled until the active text-to-speech model is ready and supports voice cloning. Use the Models link to choose one; the source recording and target voice are preserved when returning. Preset-only models such as MLX Kokoro cannot clone a target voice. This capability check does not download or load model weights. ### Native backend crashes in Electron Crash details and bug reports keep the raw exit code and name recognized Windows faults (for example, `3221225477 (0xC0000005 STATUS_ACCESS_VIOLATION)`). The signed Windows representation `-1073741819` identifies the same fault. SIGSEGV and SIGILL are also identified as native faults, as are `0xC0000006 STATUS_IN_PAGE_ERROR`, `0xC0000374 STATUS_HEAP_CORRUPTION` and the other fault statuses Windows uses for an unhandled native exception. These failures happen below Python, so a Python traceback may not exist; include the captured crash details and system/GPU information when reporting them. The name identifies the failure category, not its cause: it does not by itself prove a driver, model, or memory problem. Python's fault dump names the Python line that was running, not the library that crashed. On Windows, VoiceStudio therefore reads the Windows Error Reporting event for the crashed backend (Event Viewer → Windows Logs → Application, "Application Error", event 1000) and adds the faulting module, its version and the offset to the report's install-failure facts. This happens only after a crash, reads only the local event log, and leaves the machine only if you submit the report. When the module is a graphics driver or GPU library (for example `nvcuda64.dll`, `cublasLt64_12.dll`, `igc64.dll`, `amdhip64_6.dll`), the failure screen says so and offers **Restart on CPU**. Settings → Performance & Device needs a running engine, so this button stores the same CPU choice (`compute_device` in the data folder's `prefs.json`) and starts the engine again. Switch back to Auto in Settings → Performance & Device after updating the driver. An explicit CPU choice also keeps a DirectML-capable PC on the CPU, and the engine then does not probe any GPU runtime (CUDA, DirectML, XPU, MPS) at startup, so the faulting driver is not loaded again; Settings offers Auto and CPU until you choose Auto. A device override saved in Settings' environment variables (`env.OMNIVOICE_DEVICE` in `prefs.json`) is removed by this button, because it would win over the CPU choice. The button is not shown when `OMNIVOICE_DEVICE` is set, because that variable overrides the setting, or when `OMNIVOICE_BACKEND_CMD` starts a custom backend that may not read it. If the setting cannot be saved (an unwritable data folder or a full disk), the screen says so and Retry stays available. CPU libraries such as Intel MKL (`mkl_*.dll`) or OpenMP (`libiomp5md.dll`) do not count as driver faults. On macOS, stopping a timed-out engine or installer operation can race with its supervisor exiting. VoiceStudio briefly rechecks that exact owned supervisor before treating a process-group permission error as already-completed cleanup; permission failures for a live operation still surface as errors. ### Backend would not start (Windows: `spawn UNKNOWN`, "did not answer", "environment incomplete") Three different startup failures share the same screen. The app now names the program it tried to launch, quotes what the backend last printed (or says it printed nothing, or that nothing was spawned), and adds a localized hint under the message: If Windows refuses to launch the selected Python interpreter during the initial dependency check, the failure names that interpreter and uses the same launch guidance below, without automatically reinstalling it. With no custom runtime selected, VoiceStudio can still reuse another compatible runtime; a blocked, unused legacy runtime does not prevent setup of a missing default runtime. An explicitly selected runtime remains authoritative. Missing interpreters and import errors still use the normal setup or repair flow. When the app recognises the cause it also names it in one line and puts the matching action first: **Choose another folder** for a missing environment, a write-permission error or a cloud-synced folder (installed app only; a source checkout gets **Retry**, which re-checks its `.venv` after `bun run setup:api`), **Copy diagnostics** for a native crash such as exit code `3221225477`, and **Retry** otherwise. The failure screen shows a single status pill (Starting, Recovering or Failed) with the elapsed time; repeated identical failures count up on the pill instead of redrawing the screen, and the raw message and log tail sit under **Details**. While a running engine is only busy, a slim bar at the bottom says it is reconnecting automatically; the workspace stays usable. - **`Could not start : spawn UNKNOWN`** — Windows (or your security software) refused to run the Python runtime; `UNKNOWN` is how the OS reports a blocked executable. Add VoiceStudio's runtime folder to your antivirus exclusions (Windows Security → Virus & threat protection → Manage settings → Exclusions) and make sure it is not inside OneDrive, then retry. - **`Could not start : spawn ETIMEDOUT`** — the operating system gave up starting the program; on macOS this happens when its security check of the executable stalls. VoiceStudio retries twice on its own (after 2 s and 5 s). If it still fails, restart the computer and open VoiceStudio again. - **`… spawn UNKNOWN. Windows Smart App Control blocked it.`** — Smart App Control (Windows 11) blocks programs without a known reputation, including the runtime's `python.exe`; Event Viewer → Applications and Services Logs → Microsoft → Windows → CodeIntegrity → Operational shows event 3077 for it. Unlike antivirus it has **no per-app exceptions**, so an exclusion cannot help. Either turn it off (Windows Security → App & browser control → Smart App Control settings) or connect VoiceStudio to an engine running on another computer. The app says this only when it reads Smart App Control as on or in evaluation (`VerifiedAndReputablePolicyState` 1 or 2 under `HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy`); otherwise it shows the antivirus advice above (#3224). - **`Backend exited (exit code 1): Windows refused to load one of the engine's files.`** — the engine started, but Windows blocked one of its DLLs, e.g. `ImportError: DLL load failed while importing _sqlite3: An Application Control policy has blocked this file`. When Windows reports it in English, the message names who blocked it: **Smart App Control** (same options as above), **your antivirus** (add the runtime folder to its exclusions), or **a Windows application control policy** your organization set (ask your administrator to allow the runtime folder). On other Windows display languages only Smart App Control is recognized (from its registry setting); otherwise check those three in that order. The files themselves are intact, so VoiceStudio does not download the runtime again, which would be blocked the same way (#3209). - **`Backend did not answer on port 3900 within N s`** — the wait for the backend ran out. The budget (`OMNIVOICE_STARTUP_BUDGET_S`) now starts when the backend process is spawned, not when the launch began, defaults to 300 s (600 s on a machine with four or fewer cores or 8 GB of RAM or less, where a PC without a dedicated GPU is usually found), and is extended while the backend is still printing, up to three times the budget. The runtime health probe that runs before the launch also gets 180 s instead of 30 s, and a probe that merely ran out of time is treated as inconclusive instead of sending an intact runtime back to the setup screen. The first start after an install is the slowest because antivirus scans every new file; later starts are much faster. - **Installed app, Python environment deleted** (antivirus, disk cleanup, interrupted update): VoiceStudio rebuilds it by itself on the next launch with the normal setup progress screen, once per launch. If that repair fails the setup screen says so; check the engine log and press Retry. Your voices and projects are never touched. - **`The Python environment in is missing`** or **`… is incomplete: `** (running from a source checkout, e.g. `bun run dev`; an installed app never shows this message and repairs its own runtime from the setup screen) — run `bun run setup:api` in the repository, let it finish, then press **Retry** (the message names the folder to open the terminal in; it is never taken from the terminal's working directory, so running from `C:\Windows\System32` does not matter). A folder without `pyproject.toml` is not a source checkout: install from the release installer instead. *Missing* means no `.venv` exists yet. *Incomplete* quotes the import that failed, e.g. `ModuleNotFoundError: No module named 'sentencepiece'` (setup did not finish: rerun it) or `ImportError: DLL load failed` (Windows: rerun setup, which installs the Visual C++ runtime). If the folder is inside OneDrive, Dropbox, iCloud Drive or Google Drive, move the checkout to a plain local folder first: online-only placeholders and file locking break the Python environment. The same applies to `error loading dynamically imported module: http://localhost:3902/@fs/…/node_modules/.vite/deps/…` from a dev server running inside OneDrive (installed builds never load from a dev server). - **`EPERM: operation not permitted, rename …\.previous-backend`** or **`… rename …\.incoming-backend -> …\backend`** — a scanner, OneDrive or a VoiceStudio backend still running held the runtime folder while VoiceStudio refreshed it. The app retries each rename, copy and cleanup step for about 10 s, then updates the files in place. If a file stays locked through all of that, setup says **Another program is using VoiceStudio's files**: pause OneDrive (or other sync apps), exclude the runtime folder from antivirus, quit any VoiceStudio left in Task Manager, then press Retry. A native crash (`3221225477`, `-1073741819`) right after pressing Generate shortly after launch was caused by the startup preload and the first generation loading the TTS model at the same time. Cold loads are now serialized across both paths; if a load ever wedges past its deadline, retries fail immediately with a "restart the backend" message instead of queueing behind it. If a native crash persists, attach the full faulthandler dump (the `Windows fatal exception` block including every `Thread` section) from Settings → Logs → Backend. Bug reports already carry a condensed copy: the crash message names the faulting frame, and the report keeps the faulting thread's VoiceStudio frames (which model or job was loading) plus the frame each other thread was running. ### ASR initialization errors A PyTorch Whisper initialization failure can come from an import, checkpoint, network or memory problem. The error preserves the original exception and the backend log contains its traceback. “PyTorch should be installed” alone does not prove that torch and torchvision versions are mismatched. Save the diagnostic bundle and check package versions in the environment running the backend before reinstalling anything. Faster Whisper is an alternative when only transcription is affected; it does not diagnose or repair the original environment. ## Concurrent migration backups Concurrent pre-migration database snapshots reserve distinct backup counters before copying. Reservation files are not recovery backups. A reservation left by an interrupted writer is skipped by subsequent snapshots rather than reused. ## "This model can't be used until you accept its licence" VoiceStudio does not own or license the models it runs. Models whose licence is not plainly commercial (non-commercial, conditional or unidentified terms, such as the default OmniVoice model) are blocked until you accept their licence once. Accept it in the dialog that appears, or in **Model Manager → the model's Licence icon**. Nothing is re-downloaded. Headless and API users can accept with `POST /models/licenses/accept`; see [Licence acceptance before use](../licensing/model-review-workflow.md#licence-acceptance-before-use). ### Setup stops at `VOICESTUDIO_CUDNN8_PROBE` on a CPU-only computer If an older installer exits with code `3221225477` at this probe, install the updated desktop build and retry **Install local runtime**. CPU and ROCm setup now skip the native CUDA compatibility probe; runtime imports are still verified before setup finishes. If verification also fails, include the new setup log in your report rather than deleting saved voices or projects. The probe is also advisory now: if it still crashes natively, setup continues and the import verification decides whether the runtime works. The import verification now prints `VOICESTUDIO_IMPORT=` before loading each runtime module, and a crash names the module in the error (`the import check stopped while importing ""`). Include that line from the setup log in your report: the last `VOICESTUDIO_IMPORT=` line is the module that crashed. If that module is `sentencepiece` (or another C++ library) and the system's Visual C++ runtime is older than 14.40, setup now says so: **This Windows system's Microsoft Visual C++ Redistributable (x64) is too old**, with the `MSVCP140.dll` path and version it found. Newer wheels such as sentencepiece 0.2.2 are built with Visual Studio 2022 17.10 or later and crash with `3221225477` against an older `MSVCP140.dll`. Install the latest [Microsoft Visual C++ Redistributable (x64)](https://aka.ms/vs/17/release/vc_redist.x64.exe) and press Retry; reinstalling the Python packages cannot update a system library. ### "Backend exited unexpectedly (exit code 3221225477)" while loading a model A cut-off model download makes Windows kill the backend with an access violation (`0xC0000005`) when the weights are read. VoiceStudio now checks each `.safetensors` file's header against its size before loading and re-downloads a truncated file automatically. If you point `OMNIVOICE_CHECKPOINT` at your own folder, it names the incomplete file instead; delete it and download it again. ### "Backend is running but busy / not responding on port 3900" If the log shows `Event loop has not run for N s`, the stack dump right below it names the call that blocked the backend; include it in your report. Set `OMNIVOICE_LOOP_STALL_S` to change the 4 s threshold (`0` turns it off). ### Backend exits with code 3 and "[Errno 13] error while attempting to bind" Windows or another program refused access to the port, often a reserved range (Hyper-V, WSL, Docker). Check with `netsh interface ipv4 show excludedportrange protocol=tcp`, then set `OMNIVOICE_PORT` to a different free port. ## Settings → Updates says "This build cannot update itself" Self-update needs the `app-update.yml` file that release installers ship in the app's resources folder. A custom, repackaged or locally built app without it used to fail with `ENOENT … app-update.yml` when you pressed Download; it now says so and offers no download. Install a release build from the [Releases page](https://github.com/debpalash/VoiceStudio/releases/latest) (or a beta from the same page) to get updates. ## Backend exits with an illegal instruction on an older CPU The effects library `pedalboard` can crash on CPUs without AVX2. VoiceStudio now loads it once in a separate process first; if that fails, effects stages that depend on it (filters, compressor, reverb, gate, EQ) are skipped and the audio is left unmodified, while the leveler and limiter keep working. ## Browser crashes with "Cannot read properties of undefined (reading 'filter')" If the stack names `useModelInstallCompletionRefresh`, the model-install status response is incomplete. VoiceStudio now rejects malformed status responses while keeping the last valid download state, so the listener and other model-install screens remain mounted. A failed response does not mark a download complete. For a custom browser deployment, check that its API points to the VoiceStudio Python backend from the same release. `/models/install/status` returns an object with a `jobs` array; a placeholder API or mismatched backend can return a different body. Include the endpoint's response shape (without private data) when reporting a persistent mismatch.