Repository navigation
Conversation
…moved code (#2616) modwerk_fxpage_drop now overwrites the dropped page with the page an unlisted handle shows (MISSING, or NONE's before the first tick) and clears its wide formatters. test_fxpage.c sweeps the modelled memory and the base's tables for words left pointing into a removed image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ebuilt base Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What works: when an effect module is removed, the base now turns that effect's page record into the page any unlisted effect shows: MISSING, or NONE's before the first tick. Before, the record kept the addresses of the removed module's formatters, so a track still showing the page could call code that was no longer installed. The test that was missing now exists: a host test sweeps the modelled memory and the base's tables for any word left pointing into a removed effect's image.
What it means musically: this is the likely cause of beta finding 31, the stale E-Verb page after removal. The removed effect's page now reads MISSING, and turning a knob on it calls nothing from the removed module.
What is broken / not done: not tested on a unit. That stock actually keeps the page pointer and calls a formatter on a knob turn is still unconfirmed, as the issue says.
Who must act: the owner. This belongs on the cumulative Octatrack base draft (#2473), so merge it into
base/octatrack-nextwhen you choose, and test the exact build on a unit before the base ships.Next step: on a unit, install E-Verb, open its FX page on a track, remove E-Verb over USB, then turn a knob on that page. Expected: the page reads MISSING and nothing crashes.
Fixes #2616.
Details
sdk/machines/octatrack/elekloader/fxpage.cmodwerk_fxpage_drop: after the rows are re-pointed, it copies the page an unlisted handle shows (unlisted(): MISSING once built, else NONE's descriptor) overpages[id], and clears that id's wide-formatter entries. Those were already gated byserves, but the sweep counts them too.test_fxpage.c:into(low, bytes)counts big-endian words at every even address of the modelled memory outside the image, plus the four id tables, both chooser lists, the wide table and the per-id wide formatters. Id 26 is built from a second image at 0x3000 (with a wide formatter), and id 27 from the first. The test asserts the count is above 0 for both images before the drop, 0 for the dropped image after it withpages[26]equal to MISSING, and still above 0 for the image that stays. A new line also checks that a drop before the first tick gives NONE's page.base/octatrack-next(line 150) and passes with the fix, in all three buildstest_recipe.pyruns (plain,MODWERK_FX_IDS=128u,MODWERK_CACHED_MODULES).test_machine_registry.c: skipped. Its machine descriptors are host statics that sit outside the modelled segments, so a sweep there has nothing to find.npm run octatrack:base -- --stock … --beta --write(still the unreleased 0.8.7: identityd517f418…, package6c18d16a…).python3 -m unittest test_recipe(elekloader) passes excepttest_dev_audio_follows_the_vendor_interface_and_chains_the_tails. That one reads the generatedsdk/octabam/modulescopy, which this worktree does not have, so it is unrelated. After the rebuild,base-sizes.jsonis recorded and the base-bound packages are relinked (onlyrequiredBasechanged).npm run check -- --base origin/base/octatrack-next: everything passes except two vitest files outside this diff.src/community/backend-performance.test.ts(account schema check) fails locally with nothing undersrc/communityorserverchanged.src/engine/zoom/zoom-link.test.tsfailed under load and passes alone (34/34). CI will judge both.Edge cases
test_fxpage.ctest_fxpage.c(sweep finds 0 words)test_fxpage.c🤖 Generated with Claude Code