Skip to content

FormWav 2.30.0: on Windows the engine ends with the app, a failed start says why, and no console windows - #23

Merged
nodemode-ai merged 3 commits into
mainfrom
feat/sprint-open-2.30.0
Nov 20, 2026
Merged

nodemode-ai merged 3 commits into
mainfrom
feat/sprint-open-2.30.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

FormWav 2.30.0: on Windows the engine ends with the app, a failed start says why, and no console windows

This release follows 2.29.0 (branch feat/sprint-finish-2.29.0, not merged yet): merge that one first; this branch starts at its release commit.

What a person now gets

  • On Windows the engine ends with the app, however the app ends. The app puts its engine in a job object, so a crash, a forced end in Task Manager or an ordinary quit leaves no engine and nothing the engine started behind. An ordinary quit still lets the engine leave on its own first (up to five seconds), so the engine still removes its unpacked files from the temporary folder.
  • A start that fails says why. Instead of "The formwav engine failed to start. Please relaunch formwav.", the dialog says what happened (the engine program is missing, could not be started, stopped with its exit code, or did not give its address within 90 seconds or its key within 10), shows the engine's last lines and gives the path of the engine's log. It is shown before the loading window closes, so the app never disappears without a word. A window that cannot be built now takes the same path; before, the loading window closed and nothing was shown.
  • A second copy of FormWav says so. Its engine meets the first one's record of the data folder and stops; the dialog says that another copy of its engine holds its data folder, with the engine's own line under it: "formwav is already running on [folder] (engine process N)."
  • No console windows on Windows. Every program the engine starts (ffmpeg, ffprobe, the plug-in, Nyquist, Vamp and LV2 helpers and the others) is started with no console window, and the Windows engine is now built with no console of its own. FORMWAV_ENGINE_WINDOWED=0 builds it with a console again. macOS and Linux are unchanged.
  • The Windows build now waits for the engine's self check after building it and stops when it fails.

Merge with a merge commit. Do not squash and do not rebase-merge.

How it was checked

Job / step Result here
engine, Linux: python -m compileall ..., ruff 0.16.8 --select E9,F63,F7,F82 --target-version py312 exit 0, clean
engine, Linux: python -m pytest tests -q -rs (with the Chromium interface tests), on the last commit before the version 630 passed, 62 skipped, 0 failed (the skips are model tests and the systems' own skips)
engine: the audio core built from the tree (maturin build --release --locked, Python feature, no debug information) built at 2.29.0 and at 2.30.0; with it the version test that failed in 2.29.0 passes
version tests after the bump, with the core at 2.30.0 6 passed (-k version over the suite); test_engine.py with test_no_window.py 10 passed
interface: npm ci, npm audit --audit-level=low, npm run build passed, 0 vulnerabilities
browser window check (window_rehearsal.sh, frontend/tests/window) 2 passed
shell, Windows-only code: a scratch crate holding win_job.rs and engine_start.rs cargo check --target x86_64-pc-windows-msvc and -gnu: no error, no warning; cargo test: 4 passed
shell, Cargo.lock the hand-added windows-sys 0.61.2 line equals what cargo update --workspace writes in a scratch copy
engine, no console windows: tests/test_no_window.py 7 passed: a walk of the engine's source finds 105 program starts, all through subprocess.Popen, and only four known exceptions (the POSIX terminal's exec after fork, the Windows terminal's pseudoconsole)
engine on macOS and Windows not runnable here; the new tests were read for what those systems lack or add (below)

Read for macOS and Windows: test_no_window.py reads files as UTF-8 and compares paths in POSIX form; it never passes creationflags to a real start (the Windows case uses a recorder in place of Popen's start), and on Windows asyncio's Popen is a subclass of subprocess.Popen, so its test holds there too. No /proc, POSIX shell, HOME, password store, Command key or path separator in it.

Not verified

  • The desktop shell was not compiled on this machine; its first compile is the release build. main.rs was read line by line against FormVis's, whose shell starts its engine the same way.
  • Nothing was run on Windows or macOS: not the job object, the failure dialog, the order of dialog and last window, the five-second leave on quit, the no-console starts, or the PowerShell build script (there is no PowerShell here; it was read).
  • Whether an engine built with no console still writes its address to the pipe the app gives it has not been seen on Windows (FormWeb's engine is built that way).
  • The real Claude Code, Codex, Cursor and Antigravity were not run (stand-ins only).
  • The Firefox interface job, the shell's own cargo check and clippy, and the core's Rust tests were not run here.

Held

  • The clip chip that moved once under load when a late instrument re-render changed a clip's length: not reproduced or changed in this release.
  • An engine of 2.28.0 or older holds no record of its data folder, so the first start after updating from it does not see one left running.

…art says why

The engine is held in a job object (win_job.rs, taken by its process id as
FormVis does, since the engine starts through tauri-plugin-shell), so it ends
with the app however the app ends. A quit still closes the engine's stdin
first and waits up to five seconds for it to leave, so its unpack folder is
removed. A failed start shows the sentence, the engine's last lines, its exit
code and the log's path before the last window closes (engine_start.rs, with
FormWav's data folder rule); a second copy shows the engine's own "already
running" line. windows-sys 0.61 for Windows only; the lock line proved by a
scratch cargo update. Scratch crate: Windows check clean, 4 tests passed.
…ndow, and the engine is built with none

Every program the engine starts goes through subprocess.Popen; on Windows the
entry now makes each such start carry CREATE_NO_WINDOW (app/core/no_window.py),
unless it asked for a console of its own. macOS and Linux are untouched. A walk
of the engine's source finds 105 starts, all through Popen, and four known
exceptions (the POSIX terminal's exec after fork, the Windows terminal's
ConPTY). With that whole, build_windows_app.ps1 freezes the engine with
--noconsole unless FORMWAV_ENGINE_WINDOWED=0, and waits for its self check
with Start-Process, since a window program is not waited for by &.
Moves every version site from 2.29.0 to 2.30.0, the same 18 files as 2.29.0:
frontend package.json and both fields of package-lock.json, native/formwav-dsp and
src-tauri Cargo.toml, the formwav-dsp and formwav-desktop entries in the four
Cargo.lock files that carry them (edited by hand), tauri.conf.json, backend
core/version.py and formwav_mcp/server.py, the README badge, and the Current build
version header of the backend, frontend, native, demo, demos/produce and
demos/repair HASHOUT_LOG.md.

The release follows 2.29.0 and holds the Windows shell side: the engine in a job
object so it ends with the app however the app ends (a quit still lets it leave
first), and a failed start shown with the sentence, the engine's last lines, its
exit code and the log's path before the last window closes; and on Windows no
program the engine starts opens a console window, with the engine built with no
console unless FORMWAV_ENGINE_WINDOWED=0.

Run before the bump, on 4d6d22cf: compileall and ruff 0.16.8 clean; pytest tests,
the whole backend suite with the interface tests, 630 passed, 62 skipped, 0
failed; npm ci, npm audit and npm run build passed; the window check 2 passed;
the scratch crate's Windows check clean and 4 tests passed. After the bump, with
the audio core rebuilt at 2.30.0: the version tests 6 passed and test_engine.py
with test_no_window.py 10 passed; git grep finds no 2.29.0 outside the logs'
history and the shared panel folder. Not run: the shell was not compiled, nothing
ran on Windows or macOS, no real agent program was started.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 20, 2026 17:28
@nodemode-ai
nodemode-ai merged commit b5cab24 into main Nov 20, 2026
9 checks passed
@nodemode-ai
nodemode-ai deleted the feat/sprint-open-2.30.0 branch November 20, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant