serenity-rs / songbird

An async Rust library for the Discord voice API
ISC License
394 stars 116 forks source link

Input creation takes "forever". #127

Closed Bloectasy closed 11 months ago

Bloectasy commented 2 years ago

Songbird version: Next

Rust version (rustc -V): rustc 1.62.0-nightly (77652b9ef 2022-05-06)

Serenity/Twilight version: Serenity version 0.11.1

Output of ffmpeg -version, youtube-dl --version (if relevant): Not relevant

Description: The creation of an Input takes forever. The thread is being locked cause of the asynchronous call and doesn't make the Input for a long time (I have waited over 20 minutes and nothing has happened not even an error). This only occurs sometimes its not 100% persistent and I'm not aware of what makes it trigger.

Steps to reproduce: There isn't really something to reproduce resolving the Future by awaiting it locks the thread.

songbird::input::ytdl(String).await
FelixMcFelix commented 11 months ago

We've significantly reworked how audio functions from v0.4.x onwards, so I'm not sure that this issue persists.