Skip to content

Fix correctness findings from the technical review - #53

Merged
stephanterning merged 2 commits into
mainfrom
codex/technical-review-bugs
Oct 18, 2026
Merged

stephanterning merged 2 commits into
mainfrom
codex/technical-review-bugs

Conversation

@stephanterning

@stephanterning stephanterning commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Fix the 17 code bugs B1, B2 and B4–B18 from the technical review merged in #52. Repeated plugin preparation now detaches the analysis thread before replacing its stream, Sync produces allocation-free bar impulses across rounded block boundaries, and malformed or incomplete host/project state is handled safely.

Auto gain preserves its current level when peak history is lost (for example while the plugin editor is closed), clears the incomplete history and requires a fresh ten-second hold before increasing. Current peaks can still lower gain immediately. Regression tests cover gain preservation, the restarted hold and immediate reduction. The scheduler API also drops its unused stream-position argument.

The remaining fixes cover small-block ring capacity, time-signature changes, auto-gain history after UI stalls, deferred settings writes, stopped-device recovery, per-instance diagnostics, host keyboard shortcuts, atomic Sync status, repeated view selection, stereo statistics and the flaky spectrum stress test. Shared core helpers and optional offline checks of the actual JUCE plugin processors provide regression coverage.

B3 keeps the documented Raspberry Pi OS Trixie baseline for published binaries. Adding Bookworm compatibility is separate work; this PR does not change the release build environment. Broader refactors, performance work and release/CI findings remain in the report.

Validation:

  • Full macOS Release build: standalone app and both plugins in VST3, AU and CLAP formats, with plugin copying disabled.
  • macOS CTest: 278/278 passed, including the optional effect and Sync processor checks (VISONA_BUILD_PLUGIN_CHECKS=ON). Both processBlock checks counted zero allocations.
  • ASan/UBSan core suite: 276/276 passed; TSan core suite: 276/276 passed before the review follow-up. After the follow-up, the affected ASan/UBSan tests passed again (19/19).
  • Offline analysis UI checks passed, including view selection, physical scale and interval maxima.
  • Python deployment tests: 4 passed; offline website build passed.
  • Changed C++ files pass clang-format; git diff --check passes.

The manual, changelog, plugin documentation and technical-review follow-up are updated. The website presentation was reviewed; these are correctness fixes and introduce no feature requiring a presentation-page addition.

Physical audio-device failure/reconnection and DAW integration still need smoke testing. No Pi deployment or Windows/Linux plugin build was performed. The concurrent Sync status check runs in the macOS processor harness; the TSan suite covers the core library.

@stephanterning
stephanterning marked this pull request as ready for review October 18, 2026 08:52
@stephanterning
stephanterning merged commit 0c2f397 into main Oct 18, 2026
4 checks passed
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