github prestonbrown/helixscreen v0.99.55

latest releases: v1.1.0-rc.6, v1.1.0-rc.5, v1.0.11...
6 months ago

v0.99.54 shipped a regression and a returning crash signature; v0.99.55 closes both. The bigger story is the Klipper error UX overhaul — gcode errors used to surface as raw debug text like "retrude error, retrude but not trigger buffer empty limit"; now they map through a friendly-message table with a one-tap recovery path that tries the K2's deeper helix_recover shell_command before falling back to firmware_restart. Pairs with a busybox /sbin/reboot fallback that finally lets the shutdown widget actually work on K2/AD5M/CC1/K1C/SonicPad. Plus a pre-print phase tracker that turns the K2's generic 5-minute "starting print" spinner into BED_MESH / HEATING / FILAMENT_LOAD / PURGE phase progress, and a long-overdue installer fix that ships the KIAUH extension in the tarball (silently broken since v0.99.34).

Added

  • Friendly Klipper error toasts with one-tap recovery — Klipper emits errors as JSON like {"code":"key851","msg":"retrude error..."} where msg is raw debug log text. The pipeline now extracts the code, looks up a friendly message+hint via CfsErrorDecoder::lookup_message(), and routes recovery through PrinterRecoveryService — which tries the K2's helix_recover [shell_command] (bouncing the klipper_mcu daemon) before falling back to printer.firmware_restart. C++ stays platform-blind: each platform installs its own snippet via scripts/lib/installer/recovery.sh. key851 now displays as "Retract didn't reach buffer empty limit" instead of the raw debug string.
  • CFS error toasts include unit/slot locator — JSON values arrays (e.g. [1,"B"] for a key849 retract failure) are stringified into a human locator and appended, so users see which CFS slot failed.
  • Pre-print phase tracker (K2/CFS) — PrintPhaseTracker exposes coarse pre-print phases (BED_MESH, HEATING, FILAMENT_LOAD, PURGE) as LVGL subjects, replacing the generic "starting print" spinner that left K2 users staring through ~5 min of bed-mesh + heating. Inputs: print_stats.state plus the notify_gcode_response tag stream (// [PRTOUCH_MOVE], // [PROBE_STEP_INFO], // [G29_TIME], // [box]). Per-firmware-family matchers — adding Bambu/RatOS/K1 variants is a sibling matcher, no parser surgery. Mirrored into the legacy print_start_phase / print_start_message / print_start_progress subjects so the existing preparing_overlay UI shows the progression with no panel rewire.
  • Shutdown/reboot widget works on busybox/procd hosts — SystemPower::reboot_local() and shutdown_local() now fall through from logind/systemctl to /sbin/reboot and /sbin/poweroff. K2/AD5M/CC1/K1C/SonicPad shutdown buttons now actually do something (procd's sysinit hook handles graceful service teardown on those calls).

Fixed

  • Crash loop on v0.99.54 startup (#931) — Application::main_loop() now wraps each iteration in try/catch. When a callback throws, the type and what() are logged, the recent breadcrumb ring is dumped to stderr (so the next user log captures the throw site), telemetry records the event, and the loop continues with a user-facing error toast. A runaway counter (5 catches in 30s) breaks out cleanly to avoid a tight throw-catch loop. Removes the watchdog's "HelixScreen Keeps Crashing" path for any callback throw that previously exited 134.
  • MoonrakerRequestTracker error-callback path — symmetrized exception handling: route_response() already absorbed throws from success callbacks, but error callbacks were unwrapped. A throwing error_cb now logs and continues (matching the success path).
  • Render-thread UAF in argb8888_image_blend (#929, cluster:pstat-async-delete Mechanism B) — GCodeLayerRenderer::destroy_cache() / destroy_ghost_cache() / destroy_ssao_cache() and GCodeGLESRenderer::~GCodeGLESRenderer() (plus the resize-time recreate path) all now call lv_draw_wait_for_finish() before lv_draw_buf_destroy(). The parallel render thread reads dsc.src after lv_draw_image() returns; freeing the buffer while a draw task was still in flight unmapped the source page and segfaulted in argb8888_image_blend. The wait drains pending tasks before the buffer goes away. Single-threaded builds (LV_USE_OS == 0) are unaffected — lv_draw_wait_for_finish is a no-op there.
  • CFS load no longer transitions to IDLE prematurely — AmsBackendCfs was flipping action=IDLE the moment the toolhead extruder filament_switch_sensor triggered, but the K2 load script has 5 steps (CR_BOX_PRE_OPT → EXTRUDE → WASTE → FLUSH → END_OPT) and the sensor trips at the END of step 2. The remaining WASTE + FLUSH (~109 mm at 240 °C, ~3 min) ran while the UI told the user the load was idle. IDLE now defers to script completion, and the toolhead is parked during load.
  • No more execute_gcode spam while Klipper is halted — with klippy_state=ERROR after a key298 rpi-MCU shutdown, wiggling the fan slider previously fired ~30 M106 commands per tick that Klipper rejected on each attempt. Now refuses early when state is SHUTDOWN or ERROR; recovery RPCs (firmware_restart, emergency_stop, shell_command) are unaffected.
  • Phase tracker forward-only ordering — K2 [PROBE_STEP_INFO] (mesh probing) and [WHY_DEBUG]target_temp (heating) interleave during early mesh because bed heat ramps in parallel; the tracker no longer flips back from HEATING → BED_MESH on the late probe lines.
  • Phase tracker maps PRINTING → IDLE for legacy overlay — the legacy preparing_overlay panel observer treats any non-IDLE PrintStartPhase as "still preparing"; mapping PRINTING → COMPLETE was leaving the overlay stuck up for the rest of the print.
  • Print-start no longer enters BED_MESH from QGL/Z_TILT probe lines — Voron 2.4 PRINT_START runs QGL before BED_MESH_CALIBRATE. QGL probes 4 corner pads with samples=3 = 12 "probe at X,Y" lines, which tripped the collector's MESH_PROBE_ENTRY_THRESHOLD=3 and mis-promoted the phase to BED_MESH (off-by-12 probe count, QGL phase invisible). Collector now ignores probe lines until BED_MESH is announced.
  • Installer KIAUH extension actually ships in the tarball — silently broken since v0.99.34: release tarballs (built by mk/cross.mk) never copied scripts/kiauh/ into the package, so install_kiauh_extension() always hit "source files not found" and bailed. Now copied into all 10 platform release targets. Also closes a PII leak — release tarballs were shipping any telemetry_.json, tool_spools.json, crash_report.txt present in the dev tree (only settings.json/helixconfig.json were stripped). And collapsed the longstanding drift between install-dev.sh and the bundler's MAIN heredoc into scripts/lib/installer/main.sh (sourced by both, install-dev.sh shrinks 295→48 lines).
  • Documentation gallery images render on github.com (#928) — GALLERY.md lives at docs/devel/ but images live at docs/images/; the bare images/ refs resolved to a non-existent docs/devel/images/. Reported by @TMTYD.

Changed

  • PrintPhaseTracker unified into PrintStartCollector — internal refactor consolidating the two pre-print tracking surfaces into a single owner.
  • Keyboard per-release event log demoted to trace — was cluttering -vv debug output during normal typing.

Don't miss a new helixscreen release

NewReleases is sending notifications on new releases.