Skip to content

Thousands of tokio::task <cargo>/tokio-1.15.0/src/task/local.rs:302:22 lost their waker #237

Open
@Antiarchitect

Description

@Antiarchitect

I don't actually know how to report this. But my app uses lapin and mqtt-proxy crates which are run on tokio runtimes. After integrating with tokio-console I see multiple (thousands in couple of minutes) tasks which points here: https://github.com/tokio-rs/tokio/blob/tokio-1.15.0/tokio/src/task/local.rs#L302 After some time I disconnect MQTT client and the app fails:

thread 'ntex-rt:worker:1' has overflowed its stack
fatal runtime error: stack overflow

This happens only when console-subscriber is initialized (or maybe I wait not long enough). If you have any ideas in order how to diagnose it further - let me know.

P.S. The tool is awesome BTW - this exact tool I missed during my async apps development. Hope it will get better and feature-rich!

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