Skip to content

bug: Cu-consolemon UI issues and inacuracities #1085

@elpiel

Description

@elpiel
  1. UI is buggy when switching tabs or general updates
  2. Invalid disk encoding values
Image Image Image Image

Steps to reproduce

  1. add cu-consolemon to cu_image_codec_demo
cu29 = { workspace = true, features = ["log-level-debug"] }
cu-consolemon = { path = "../../components/monitors/cu_consolemon", version = "1.0.0-rc1" }
  1. update copperconfig.ron, add:
    monitor: (
        type: "cu_consolemon::CuConsoleMon",
    ),
  1. Tweak main.rs to run forever:
application
            .start_all_tasks()
            .expect("Failed to start tasks");

        // Starting the Copper runtime
        if let Err(err) = application.run() {
            if !err.message().eq("Exiting...") {
                error!("{err:?}");
            }
        }

        println!("Log written to: {}", log_path.display());
        println!(
            "Inspect with: cargo run -p cu-image-codec-demo --features logreader --bin cu-image-codec-demo-logreader -- {} fsck",
            log_path.display()
        );
        application
            .stop_all_tasks()
            .expect("Failed to stop application.");
  1. Run application
    copper-rs/examples/cu_image_codec_demo$ cargo run --bin cu-image-codec-demo -F ffv1

Expected behavior

  1. UI should refresh correctly
  2. Statistical data should be calculated properly

Actual behavior

Logs / backtrace

(paste logs here)

Environment

  • Copper revision (commit SHA, tag, or branch): cef5787
  • Operating system (optional): Ubuntu 24.04
  • Rust toolchain (rustc -V or rustup show, optional):
$ rustc -V
rustc 1.95.0 (59807616e 2026-04-14)
$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/Xxxxx/.rustup

installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (active, default)
nightly-x86_64-unknown-linux-gnu
1.91-x86_64-unknown-linux-gnu

active toolchain
----------------
name: stable-x86_64-unknown-linux-gnu
active because: it's the default toolchain
installed targets:
  aarch64-unknown-linux-gnu
  aarch64-unknown-linux-musl
  x86_64-unknown-linux-gnu

Regression

  • Last known good Copper revision/tag (if regression): ??

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions