Skip to content

Tokio runtime stack overflow for big interface #841

Open
@LUK3ARK

Description

@LUK3ARK

This bug tripped me up for ages. the only way I was able to narrow it down is by removing all functions but one, and then adding each function back in.

I was getting the following error:

thread 'tokio-runtime-worker' has overflowed its stack fatal runtime error: stack overflow

To reproduce this:

  1. When i have 11 functions on an interface, it is fine and is served.
  2. When i have 12 functions on an interface, it breaks and has a stack overflow.

I am unsure if this is intrinsically because of the total amount of imports from multiple packages or directly because of the number of functions there are on an interface.

Either way, there is something that limits how big an interface can be and causes a tokio stack overflow.

For context, this occurs using NATS transport.

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