Repository navigation
FormWav 2.30.0: on Windows the engine ends with the app, a failed start says why, and no console windows - #23
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
FORMWAV_ENGINE_WINDOWED=0builds it with a console again. macOS and Linux are unchanged.Merge with a merge commit. Do not squash and do not rebase-merge.
How it was checked
python -m compileall ..., ruff 0.16.8--select E9,F63,F7,F82 --target-version py312python -m pytest tests -q -rs(with the Chromium interface tests), on the last commit before the versionmaturin build --release --locked, Python feature, no debug information)-k versionover the suite);test_engine.pywithtest_no_window.py10 passednpm ci,npm audit --audit-level=low,npm run buildwindow_rehearsal.sh,frontend/tests/window)win_job.rsandengine_start.rscargo check --target x86_64-pc-windows-msvcand-gnu: no error, no warning;cargo test: 4 passedCargo.lockwindows-sys 0.61.2line equals whatcargo update --workspacewrites in a scratch copytests/test_no_window.pysubprocess.Popen, and only four known exceptions (the POSIX terminal's exec after fork, the Windows terminal's pseudoconsole)Read for macOS and Windows:
test_no_window.pyreads 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 ofsubprocess.Popen, so its test holds there too. No/proc, POSIX shell,HOME, password store, Command key or path separator in it.Not verified
main.rswas read line by line against FormVis's, whose shell starts its engine the same way.Held