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

[Bug Report] Bot sometimes enter the channel and then exit immediately #1339

Closed
3 tasks done
MrZoyo opened this issue Mar 27, 2023 · 1 comment
Closed
3 tasks done

Comments

@MrZoyo
Copy link

MrZoyo commented Mar 27, 2023

Bug Description

In some servers, bots sometimes enter the channel and then exit immediately. Text channels have normal response.

What is known so far:

  1. It seems to be related to the song, and part of the song is very prone to this. For me, I'm a Chinese language user. This often occurs when having it play a song with a Chinese name. When problems arise, it is possible to order the robot to play other English music.
  2. [Uncertain] Since I use my bot on 3-4 channels at the same time. It seems to be more likely to have this problem if it is running on multiple channels at the same time.
  3. Restarting the server and rerunning the .jar fixes the problem temporarily (for the same song). But it will reappear shortly afterwards. Only rerunning the .jar will not work.
  4. [Uncertain] Kicking out running bots from all other channels when this problem occurs may temporarily solve the problem.

Steps to Reproduce

I can't reproduce the problem 100% accurately. But based on the above instructions there is a relatively high probability that the problem will occur.

Expected Result

Bot go into the channel then immediately exit the channel.

Debug Output

[23:09:31] [ERROR] [LocalAudioTrackExecutor]: Error in playback of ykYEtwE16D4
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:116)
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
lavaplayer.version: 1.3.78
os.arch: amd64
os.name: Linux
os.version: 5.4.0-47-generic
java.vendor: Ubuntu
java.version: 11.0.16
java.runtime.version: 11.0.16+8-post-Ubuntu-0ubuntu120.04
java.vm.version: 11.0.16+8-post-Ubuntu-0ubuntu120.04
Caused by: java.lang.RuntimeException: Not success status code: 403
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:87)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:116)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:105)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:150)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:166)
at java.base/java.io.DataInputStream.readByte(DataInputStream.java:270)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:45)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:78)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:51)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:34)
at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:57)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:49)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104)
... 4 common frames omitted

Additional Info

The server is located in Frankfurt, Germany, and the server for the channel using the bot is also located in Germany.

Checklist

@MichailiK
Copy link
Collaborator

Duplicate of #885

@MichailiK MichailiK marked this as a duplicate of #885 Mar 27, 2023
@MichailiK MichailiK closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
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

2 participants