Skip to content

drv_leia_android: per-frame U_LOG_W on weave residual (de-dupe keys on a jittery value) rolls logcat in ~2.5 min #261

Description

@dfattal

src/drv_leia_android/leia_cnsdk.cpp:2817-2830 (82adec6, 2026-09-02) emits a U_LOG_W de-duped on residual_ns/1e6 — a jittery measured latency. Consecutive frames print 35/40/41/45/50 ms, so the de-dupe never holds and the comment "never per frame" is false.

Measured on a K68 today: ~40 lines/s. It rolled the logcat main buffer in ~2.5 minutes and destroyed the startup evidence (HW3D_DBG / HW_DBG_CNSDK mode lines) a live investigation needed — the runtime convention (docs/reference/debug-logging.md) is that U_LOG_W is for one-off init/error/lifecycle events and per-frame WARN is never acceptable.

Fix: a hysteresis band (log only when the value leaves ±N ms of the last logged value) or a rate cap, or demote to U_LOG_I per the convention.

Activity

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