Skip to content

Console reporting excessive polling, that isn't there #378

Closed
@k0nserv

Description

@k0nserv

What crate(s) in this repo are involved in the problem?

tokio-console, console-subscriber

What is the issue?

I've observed that tokio-console reports excessive polling, to the tune of around 1000 polls per second, for a simple spawned task that is not being woken.

This is the task spawning

https://github.com/webrtc-rs/webrtc/blob/5d05b88de6d3a3eff3cd4e9b57219a25e01d3edc/webrtc/src/peer_connection/operation/mod.rs#L54-L56

and the task itself

https://github.com/webrtc-rs/webrtc/blob/b43e05b574be52b65b648bc367467bb6f14c5e11/webrtc/src/peer_connection/operation/mod.rs#L114-L129

I've observed the task being polled over 1M times over a 24 minute period without having been woken.

How can the bug be reproduced?

I've documented the details and made a small reproducible example in webrtc-rs/webrtc#284

In that PR I've added a printing wrapper around the futures in question as well as introduced more logging. On my machine the excessive polling that tokio-console reports does not line up with the amount of times the futures are actually polled.

Logs, error output, etc

No response

Versions

├── console-subscriber v0.1.7
│   ├── console-api v0.4.0

Possible solution

No response

Additional context

No response

Would you like to work on fixing this bug?

maybe

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-bugSeverity: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions