Skip to content

Fix X4 Full refresh crashes and persistent boot retries - #183

Open
Fledgewing wants to merge 3 commits into
mainfrom
fix/x4-crashloop
Open

Fledgewing wants to merge 3 commits into
mainfrom
fix/x4-crashloop

Conversation

@Fledgewing

Copy link
Copy Markdown
Owner

Full refresh's worker put its stack in PSRAM, but the catalog transport can synchronously write Tailnet peer state to NVS. Flash/cache-disabled operations require an internal task stack. The durable mirror.request then retried the same work at every boot. There is no device log, so this identifies a proven unsafe call path consistent with the report, rather than claiming the exact panic instruction.

Use an internal worker stack while retaining PSRAM catalog allocations. Durable guards stop a third unfinished worker attempt and stop early-boot restoration after two incomplete setups, preserving books/settings and published generation bytes. Explicit Full refresh retries. The simulator now models the missing flash-stack constraint and tests large catalogs and crash recovery across separate processes.

Recovery for the installed firmware: remove only /.crosspoint/orbify/mirror.request from the SD card, reinsert and restart; avoid Full refresh until a tested fix is installed. OTA is usable after recovery for a later published fix. Test artifacts need SD firmware update or maintainer-operated USB sideload. Down + Power alone does not cancel the old worker. Full evidence and recovery details: docs/design/full-refresh-crash-recovery.md.

Validation: host tests and fresh overlay application passed. Baseline 3,000-book simulator catalog completed; restoring the external stack fails the modeled flash constraint. Fixed 10,300-book run completed with 394,152 bytes peak catalog PSRAM. CI includes all Xteink firmware builds and the full emulated release suite. No device access, release or tag.

Fledgewing and others added 3 commits November 26, 2026 18:34
Use an internal task stack for synchronous resolver NVS writes. Bound unfinished worker and early-boot retries with durable SD markers, preserving books, settings and catalog generations. Exercise the missing flash-stack constraint, large catalogs and cold-boot recovery in the simulator, and document recovery for installed firmware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
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