ffmpeg potential memory leak
Hello, so I'm here because I m searching what's causing these ffmpeg execution to be kept 2 hours in memory.
So as I know my bot's having memory leaks and in my search to find out why I'm here to ask you about this line :
So I know it's ffmpeg and it's used to convert the songs into a proper way so that discord api can send it in vocal. But I'm searching how to clear them properly.
5 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!username hidden cause of potential information leaks :[
In htop it's looking like that, as you can see there's one with over 2h48
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Yeah, but it's the process used by discord js to launch a song
and since my question isn't really related to ffmpeg in particular but more in how discord js use it
Ohh I see, so is there any alternative to it right now ?