hi there rust peeps

does anyone have any clue why a tokio runtime would have a hard cap on the number of tasks at 32,768?

hitting this limit silently fails to spawn new tasks and existing tasks hit "device or resource busy" errors when they need to use IO

no ulimits have been hit as far as i can tell (83 open files, well under limit of 16,384, and all other limits are either unlimited or unrelated to this issue)

given the failure mode is completely silent i have no clue where to start debugging this

@niko that's 1 + signed 16 bit max right ? probably an internal buffer indexed with that type then
@SRAZKVT well that's the problem i have zero clue where to start looking for limits like this
@niko debugger ? cargo rebuilds everything anyway, surely you can ask cargo to add debug info to deps too right ?
@SRAZKVT my config includes debug info yes but that still doesn't help because this is like finding a needle in a haystack with how big my codebase is
@niko minimal reproc ?