Skip to content

SDK: native scratch builds corrupt their dispatch tables since effect ids may pass 0x1f or be shared (#2368) #2533

Backlog

Description

@repeat98

What's broken: every module render gate that builds a native scratch image now fails before it renders. verify_vibrato.py on current main stops with no dispatch entry for fx id 0x0b. Shipped USB packages and the site are not affected. Only the developer-side native build (tools/build/build_bus.py) and the gates that use it are.

Cause: build_bus.py aliases the id of every registry module not in the remix to the fallback, after placement (lines 2024-2037 for ColdFire's FX2_IDS/ID2POS, 3292-3296 for the DSP dispatch at X:0x215/0x235). Since #2368, an effect may prefer an id past 0x1f or share one:

  • Ringbank (0x20) and Void (0x21) are written past stock's 32-entry tables. On the DSP side, xtab + (32 + 0x20) * 3 overwrites the header of the next payload record, so dsp_modmap can no longer parse the payload. On the ColdFire side it writes past FX2_IDS and ID2POS.
  • A shared preferred id (Air Chorus and Tuned Comb both prefer 0x1e) is aliased to the fallback after the selected module was placed on it, so the selected module's dispatch entry is overwritten.

Fix (one line, not made here): at line 2034, keep only ids a card image holds and that no selected module uses:

_held = {m.menu.fx2_id for m in remix_modules().values() if m.menu is not None and m.key in REMIX.modules}
_omitted = [m for m in _omitted if not m.menu.replaces and m.menu.fx2_id < 0x20 and m.menu.fx2_id not in _held]

It is filed rather than fixed because a change under sdk/octabam/tools moves every package's source fingerprint, which needs the package rebuild and import (docs/ADD_A_MODULE.md, step 4).

Workaround until then: run a gate on a private copy of sdk/octabam with Ringbank, Void, and any module sharing your module's preferred id left out of modules/.

How it was found: porting Tuned Comb (#2530). Its gate and Vibrato's both failed on main in the modwerk-source-tools image with the stock OS 1.40C (164f3122…). With Ringbank, Void and Air Chorus left out, the build parses again (98 and 91 records on payloads A and B).

Who must act: whoever next rebuilds the packages; nothing for players.

🤖 Generated with Claude Code

Activity

  1. repeat98 commented on Dec 5, 2026

    @repeat98
    OwnerAuthor

    @Jacobphono, your #2593 carries the fix for this one (omitted ids past 0x1f, and an omitted module sharing a selected module's id). When you split the build_bus.py part into its own pull request into base/octatrack-next, as I asked on #2593, please put "Fixes #2533" in its description so this closes with it. Until then the workaround above still works for anyone running a gate.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions