Skip to content

thread 'tokio-runtime-worker' panicked at 'assertion failed: now >= lock.elapsed' #3619

Closed
@abdelmonem17

Description

@abdelmonem17

hello everyone I am using project called toshi from crate.io and it uses tokio which works well under windows 10 but when I compiled and run it under VM 'Ubuntu 20.04.2 LTS' always after few seconds the program stop responses and gives me a panic like the following

thread 'tokio-runtime-worker' panicked at 'assertion failed: now >= lock.elapsed', /home/my-user/.cargo/registry/src/6github.com-1ecc6299db9ec823/tokio-1.2.0/src/time/driver/mod.rs:260:9

this error also exist in the old version that uses old version of tokio and the output of the panic is:

thread 'tokio-runtime-worker' panicked at 'elapsed=71666; when=71665', /home/my-user/.cargo/registry/src/6github.com-1ecc6299db9ec823/tokio-0.2.25/src/time/wheel/mod.rs:223:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-bugCategory: This is a bug.M-timeModule: tokio/time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions