Skip to content

Fix: Octatrack base 0.7.9 keeps a module effect across a power cycle after a project load - #1742

Closed
repeat98 wants to merge 3 commits into
mainfrom
fix/tape-echo-lost-1720
Closed

repeat98 wants to merge 3 commits into
mainfrom
fix/tape-echo-lost-1720

Conversation

@repeat98

Copy link
Copy Markdown
Owner

Related to #1720

  • What was wrong or hard: After a power cycle, the Octatrack base refused to load a kept module effect back (RUNTIME_FULL, NO ROOM FOR IT), and then refused every try to add it again. Shared diagnostics show this boot-restore refusal on four units since 14 November, always for a module tied to its effect id (Tape Echo 15, BBD Delay 14, Euclid 29). The chain:
    1. Loading a project replaces the base's effect map with that project's #MODWERK_FX= lines. An installed module the project didn't name stayed on its handle (rebind_tick leaves it) but was no longer named in the map.
    2. Once a track used it and the project was saved, modwerk_fxmap_write skipped that handle, because the map named nothing there.
    3. At the next start the project used the handle and the map named nothing there, so the admission (free_for) counted it as an unknown module's. A pinned module can take only that id, so it got RUNTIME_FULL. The MISSING page, which falls back to the catalogue (modwerk_fxmap_describe), still named the module, so the unit said "Tape Echo missing" and refused Tape Echo at the same time.
  • What this changes: Base 0.7.9.
    • rebind_tick now names every live module that stays on its handle after a load, so a save writes its line.
    • The admission's "who owns this handle" now uses the same map-else-catalogue lookup as the MISSING page (modwerk_fxmap_named, fxmap.c). Projects saved before the fix, which lack the line, give the handle back to the module the catalogue puts there. This is the rule docs/OCTATRACK_ELEKLOADER_MIGRATION.md already states ("a module neither its map nor the catalogue names"). A handle neither names still goes to no other module.
    • The resident port follows dsp.c (5 lines down) and the beta base is regenerated.
  • How I checked it:
    • A host test in test_dsp.c plays the report: install a pinned effect, load a project without its line, pick it on T1 FX2, save, reload, restore. Against the old dsp.c, 4 of its checks fail (the map loses it, the save drops the line, the pinned and the unpinned restore go wrong). With the fix, test_dsp, test_selftest, test_status, test_fxpage, test_journal_dsp and test_journal_board pass at 32 and 128 ids, and test_fxmap at 128.
    • npm run octatrack:base -- --beta --write.
    • npm run pr:ready: Ready to open as a draft. The base-bound packages keep their bytes; only their requiredBase moves to a186b54c. The base grows by 192 bytes (49,244 free).
  • Not tested on a unit: waiting for the owner's MKII run of release build base 0.7.9 a186b54c (the site's off and tracks-post variants are 45925dde and 931daa89): keep a set with Tape Echo, load another project and then this one, put Tape Echo on T1 FX2, save, power-cycle, and check that Tape Echo comes back.
  • What the guides lacked or got wrong, and where I fixed it: Nothing. The migration doc already gave the rule the admission missed.

🤖 Generated with Claude Code

repeat98 and others added 3 commits November 18, 2026 19:04
…after a project load (#1720)

A project load replaced the effect map with the project's lines, so an installed module the project did not
name stayed on its handle unnamed; once a track used it, the save wrote no line, and after the next power
cycle a pinned module (Tape Echo 15, BBD 14, Euclid 29) was refused RUNTIME_FULL by the restore and every
re-add. rebind_tick now names every live module that stays on its handle, and the admission reads a handle's
owner as MISSING does (map, else catalogue), so files saved before the fix heal. Host test in test_dsp.c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98

Copy link
Copy Markdown
Owner Author

Folded into #1745, the single Octatrack base 0.7.9 release that merges every open base change, so the base is rebuilt and tested once. This branch is merged into it unchanged. Closing in favour of #1745.

@repeat98 repeat98 closed this Nov 18, 2026
repeat98 added a commit that referenced this pull request Nov 18, 2026
Octatrack base 0.7.9: Part Edit menu, resting modules, kept effects after a power cycle, status word, CPU in the pick box (folds #1678 #1694 #1610 #1742 #1711)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant