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

Random ArrayIndexOutOfBoundsException #2056

Open
IndexOutOfMJ opened this issue Mar 17, 2022 · 4 comments
Open

Random ArrayIndexOutOfBoundsException #2056

IndexOutOfMJ opened this issue Mar 17, 2022 · 4 comments

Comments

@IndexOutOfMJ
Copy link

IndexOutOfMJ commented Mar 17, 2022

General Troubleshooting

  • [ x ] I have checked for similar issues.
  • [ x ] I have updated to the latest JDA version.
  • [ x ] I have checked the branches or the maintainers' PRs for upcoming bug fixes.

Bug Report

Console error appears randomly

Expected Behavior

That should not happen

Exception or Error

Mar 17, 2022 2:57:26 AM net.dv8tion.jda.internal.audio.AudioConnection lambda$setupReceiveThread$3
SEVERE: There was some random exception while waiting for udp packets
java.lang.ArrayIndexOutOfBoundsException: Index -91292 out of bounds for length 281
at net.dv8tion.jda.internal.audio.AudioPacket.getPayloadOffset(AudioPacket.java:120)
at net.dv8tion.jda.internal.audio.AudioPacket.(AudioPacket.java:93)
at net.dv8tion.jda.internal.audio.AudioPacket.(AudioPacket.java:70)
at net.dv8tion.jda.internal.audio.AudioPacket.decryptAudioPacket(AudioPacket.java:195)
at net.dv8tion.jda.internal.audio.AudioConnection.lambda$setupReceiveThread$3(AudioConnection.java:374)
at java.base/java.lang.Thread.run(Thread.java:831)

@Andre601
Copy link
Contributor

Please fill out the complete issue template, including:

  • Current issue
  • Expected behaviour
  • Code Example or reproduction steps (Missing)
  • Code for for JDABuilder or DefaultShardManagerBuilder (Missing)
  • Exception or Error

You are missing two of the more important parts of the issue, so please provide them or we can't help you.

@AdixePL
Copy link

AdixePL commented Dec 10, 2022

Just wanted to report the same bug. I tried to fix it in many ways, but I couldn't. This occurs randomly when listening on a voice channel.

@thiagochirana
Copy link

thiagochirana commented Oct 22, 2023

please give to us more details about this error, I'll try to help

@IndexOutOfMJ
Copy link
Author

please give to us more details about this error, I'll try to help

I can't, like @AdixePL said, it appears randomly if you listen to a voice channel. There is no more information in the exception, that's the problem.

amitsapte added a commit to amitsapte/JDA that referenced this issue Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants