Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

[Bug] can't use indicatif inside progress callback #114

@thewh1teagle

Description

@thewh1teagle

When using indicatif in progress callback it crashes

use std::thread;
use std::time::Duration;

use indicatif::ProgressBar;

fn main() {
    let pb = ProgressBar::new(100);
    // setup whisper-rs model
    // tried with move or without
    // register progress callback
    params.set_progress_callback_safe(move |progress| {
        pb.set_position(progress);
    });
    pb.finish_with_message("done");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions