Skip to content

indicatif crashes with assertion failed: self.orphan_lines_count <= self.lines.len() if number of terminal columns is less than 135 #612

@bes

Description

@bes

Hello!

The fix for #582 introduced a crash in my code, and I can't figure out why.

My application crashes with this message:

thread 'main' panicked at /Users/bes/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indicatif-0.17.7/src/draw_target.rs:501:9:
assertion failed: self.orphan_lines_count <= self.lines.len()

If my terminal has enough "width" - 135 columns, it works without crashing
If my terminal has below 135 columns, it crashes!

The number of rows seems to be irrelevant, I've tried everything from 9 to 74 lines.

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