Skip to content

Analysis engine: adaptive step scanner might create a bad duration #703

@ChristopherRabotin

Description

@ChristopherRabotin

Bug report

Hifitime 4.3.0 introduced additional checks when creating epochs and when creating durations from time units.

Describe the bug

The analysis engine might encounter this runtime assertion:

        assert!(
            q.is_finite(),
            "Attempted to create a Duration from a non-finite number"
        );
thread 'main' (461898) panicked at /home/chris/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hifitime-4.3.0/src/timeunits.rs:305:9:
Attempted to create a Duration from a non-finite number
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: hifitime::timeunits::Unit::const_multiply
   3: anise::analysis::utils::adaptive_step_scanner
   4: anise::analysis::search::<impl anise::almanac::Almanac>::report_event_arcs
(...)

To Reproduce

Unsure yet... Note that this bug happens without changing any code that was not panicking with hifitime 4.2.6.

Expected behavior

Durations should all be finite!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions