github prestonbrown/helixscreen v0.99.56

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

The headline is the structural fix for the cluster:pstat-async-delete crash family — v0.99.55 already closed the render-thread half (#929), and v0.99.56 closes the other: an array-backed event stack that replaces LVGL's linked-list event_head with a global array, eliminating the wild-pointer dereference path that's been the dominant production crash signature for weeks (#793/#840/#871/#878/#880/#906). Plus a defensive NULL-guard layer on lv_obj_event.c for the new VHTR49QJ signature, and a suppress-the-dialog fix for truncated crash files that were generating useless bundle submissions. Round it out with a K2 phase-tracker fix that stops mis-flagging BED_MESH on profile-load echoes, a theme-init DPI fix for BTT CB1 / sun4i framebuffers reporting bogus width_mm, and a label-printer font-fit fix for longer vendor strings on continuous tape.

  • Array-backed LVGL event stack (#907 — cluster:pstat-async-delete structural fix) — lv_event_mark_deleted previously walked a linked list of stack-allocated lv_event_t via e->prev pointers chained through event_head. Any frame returning without popping (exception unwind, control-flow bug) stranded a stack pointer that the next walk would dereference, often after heap reuse had written ASCII bytes over it — the dominant crash signature in #793/#840/#871/#878/#880/#906. The chain is now a fixed lv_event_t * event_stack[256] in _lv_global_t; mark_deleted iterates the array and never dereferences e->prev. Per-slot stack-bounds + alignment validation (inherited from the v0.99.54 dispatch-depth-guard work) catches any remaining stomp into the array. Also consolidates the file-static event_dispatch_depth into _lv_global_t::event_depth so post-mortem heap snapshots can read it.
  • NULL-guards on lv_obj_event.c accessors (VHTR49QJ defense) — lv_obj_get_event_count, lv_obj_get_event_dsc, lv_obj_remove_event, lv_obj_remove_event_dsc, lv_obj_remove_event_cb, and lv_obj_remove_event_cb_with_user_data all had release-mode LV_ASSERT_NULL (a no-op) on the obj argument. Bundle VHTR49QJ (v0.99.53/ad5x, 2026-05-04) crashed with fault_addr=0x0 reaching the field load via a deferred async callback that didn't validate widget lifetime. Replace the ASSERT with a runtime check that bails to a sane return value and surfaces telemetry — matches the established lvgl_observer_null_guards pattern.
  • Suppress crash dialog for unparseable crash files (CHUQCNAE) — bundle CHUQCNAE shipped a crash.txt containing only signal:\n after the signal handler was killed mid-write (OOM / watchdog / power loss). Application::run was still showing the crash report dialog and letting the user submit a useless empty bundle. Now consumes the file and skips the dialog when read_crash_file returns null. Regression test pins the contract.
  • K2 phase tracker no longer false-fires BED_MESH on profile load — K2 PRINT_START emits BED_MESH_PROFILE LOAD="default" early in pre-print to reuse the saved mesh (no calibration). The profile's BED_MESH regex matched these echoes and falsely transitioned to BED_MESH for several seconds before HEATING_BED took over. Reduces the alternation to BED_MESH_CALIBRATE (still covers BED_MESH_CALIBRATE_START_PRINT). Also drops three dead profile entries that logged warnings on every load (signal_format with pattern instead of prefix; HEATING_CHAMBER and LOADING_FILAMENT response patterns referencing phases not in the PrintStartPhase enum).
  • TempGraphWidget null-config crash on legacy home-panel layouts — set_config was reading config.value("follow_overlay", false) without guarding against JSON null. Layouts saved before v0.99.54 omit "config" and parse_widget_array hands a default-constructed (= JSON null) config to widgets, throwing json::type_error::306 from HomePanel::finalize_setup. The throw escaped run() before v0.99.55's main_loop catch could absorb it, exiting 134. Reported by d0u8l3m, who originally requested the follow-overlay feature.
  • Theme DPI defaults to LV_DPI_DEF on bogus width_mm reports — on BTT CB1 (sun4i-drmdrmfb) the kernel reports the 800×480 panel as 890mm × 500mm (off by ~6×), making LVGL compute DPI=23. With sub-160 DPI, LV_DPX_CALC clamps PAD_SMALL to 1px, collapsing dropdown/input padding. Now forces lv_display_set_dpi(disp, args.dpi > 0 ? args.dpi : LV_DPI_DEF) before theme init so widget padding survives garbage display metadata. The existing if(width > 0) guard in lv_linux_fbdev.c only catches drivers that admit ignorance, not drivers that lie.
  • Continuous-tape label fonts shrink to fit longer vendor strings — vendor names like PRUSAMENT / POLYMAKER were truncating on 62mm tape. Drops phantom avail_h from 300 to 260 (STANDARD scale becomes lg=5 / md=4 / sm=3, was 6/5/4), tightens the horizontal-fit floor from 4 to 8 chars, and applies the narrow-tape margin/QR shrink to 29mm and 38mm continuous (was die-cut only).

Don't miss a new helixscreen release

NewReleases is sending notifications on new releases.