-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player disposes #57
Comments
Hello @SKProCH, Thanks for your issue report! I was not able to reproduce your issue, I set up a bot and left it running for several hours with changing the voice server multiple times and joining and leaving users to add additional stress. I also tried to close the WebSocket to the voice server forcefully (e.g. kill TCP handle) or to disconnect the bot from the voice channel. But Lavalink(4NET) manages to reconnect successfully. My player only gets disposed if I manually disconnect the bot from the voice channel (where Lavalink4NET does not try to reconnect). Are you using the latest Lavalink version? Were there any interesting entries in the log, often the Lavalink server logs when a connection was closed? The Lavalink server emits a WebSocket close payload which tells the Lavalink node to dispose the player. This may occur if your bot gets disconnected by discord, your bot gets disconnected from a voice channel (e.g. kicked, banned, disconnected, ...) or if the voice server crashes, ... Your Lavalink server logs should contain something like the following:
Many thanks, |
After a few days of debugging, I noticed that this only happens on certain nodes.
This error did not really apply to Lavalink4Net, I apologize for wasting your time. |
Describe the bug
Sometimes the player is simply destroyed for no apparent reason.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The player should work fine
C# side player dispose stacktrace:
Note:
AdvancedLavalinkPlayer.Dispose()
this is an override of LavalinkPlayerDispose()
Perhaps the problem is not with Lavalink4Net, but to be honest, I was already desperate to find its source or stable workaround.
If it helps, then here are my sources: https://gitlab.com/skprochlab/nJMaLBot
The text was updated successfully, but these errors were encountered: