Skip to content
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

NullReferenceException in VoiceServerUpdated #1338

Open
Foxite opened this issue Jul 7, 2022 · 0 comments
Open

NullReferenceException in VoiceServerUpdated #1338

Foxite opened this issue Jul 7, 2022 · 0 comments
Milestone

Comments

@Foxite
Copy link
Contributor

Foxite commented Jul 7, 2022

My music bot randomly logs this error:

[104 /EventHandler] [Error] Event handler exception for event VOICE_SERVER_UPDATED thrown from System.Threading.Tasks.Task Client_VoiceServerUpdate(DSharpPlus.DiscordClient, DSharpPlus.EventArgs.VoiceServerUpdateEventArgs) (defined in DSharpPlus.VoiceNext.VoiceNextExtension)
System.NullReferenceException: Object reference not set to an instance of an object.
  at DSharpPlus.VoiceNext.VoiceNextExtension.Client_VoiceServerUpdate(DiscordClient client, VoiceServerUpdateEventArgs e)
  at Emzi0767.Utilities.AsyncEvent`2.InvokeAsync(TSender sender, TArgs e, AsyncEventExceptionMode exceptionMode)

I have no custom event handlers for VoiceServerUpdated.

Not sure if it's actually causing any problems but it might be, given that I'm still experiencing #1294 and I'm starting to run out of explanations.

I've tried to figure out where in Client_VoiceServerUpdate this error originates, but I failed. I've configured my build process to include pdb files from DSharpPlus which gives me line numbers in the stack traces. If/when I see this happening again I'll get back here with the line numbers.

@akiraveliara akiraveliara added this to the Backlog milestone Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants