Skip to content

VoiceConnection disconnects after roughly 1 minute every time on WSL2 #8482

Closed
@Beriu

Description

@Beriu

Which package is this bug report for?

voice

Issue description

I created a music bot while following the most recent guide and the voice connection dies out at around the same time. No errors are thrown.
After roughly one minute the voiceConnection changes state from connecting to signaling and freezes indefinitely until I restart, sometimes the bot doesn't even disconnect. Please ignore the ytdl package, I have tested this with a normal local file and it does the same thing.

I've logged the state changes because those are the only things that change, as I said no errors are thrown and voiceConnection decides to change from Ready to Connecting to Signalling and stays that way.

The project can be found at https://github.com/Beriu/boomtsy

--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.11.0
- prism-media: 1.3.4

Opus Libraries
- @discordjs/opus: 0.8.0
- opusscript: 0.0.8

Encryption Libraries
- sodium-native: 3.4.1
- sodium: 3.0.2
- libsodium-wrappers: 0.7.10
- tweetnacl: 1.0.3

FFmpeg
- version: 5.0.1-static https://johnvansickle.com/ffmpeg/
- libopus: yes
--------------------------------------------------

Code sample

Bot is running...
Trying to create new voice connection: 777883619157999646
[17:11:13][VoiceConnection][signalling->connecting]
[17:11:13][VoiceConnection][connecting->connecting]
[17:11:13][VoiceConnection][connecting->connecting]
[17:11:13][VoiceConnection][connecting->connecting]
[17:11:13][VoiceConnection][connecting->ready]
[17:11:13][VoiceConnection][ready->ready]
Add command Queue size: 0
Start command Queue size: 1
[17:11:15][AudioPlayer][idle->buffering]
[17:11:15][AudioPlayer][buffering->playing]
[17:12:13][VoiceConnection][ready->connecting]
[17:12:13][AudioPlayer][playing->idle]
[17:12:13][VoiceConnection][connecting->signalling]

Package version

14.2.1

Node.js version

v16.16.0 (Typescript 4.7.4)

Operating system

WSL 2 (Windows subsystem for Linux, Ubuntu)

Priority this issue should have

Low (slightly annoying)

Which partials do you have configured?

No Partials

Which gateway intents are you subscribing to?

Guilds, GuildVoiceStates

I have tested this issue on a development release

c97977a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions