jagrosh / MusicBot

🎶 A Discord music bot that's easy to set up and run yourself!
https://jmusicbot.com
Apache License 2.0
5.29k stars 2.54k forks source link

[Bug Report] Bot stops playing #1188

Open bjarkeh14 opened 2 years ago

bjarkeh14 commented 2 years ago

Bug Description

When I use the command play command It play's the song I tell it to play, but when that song is done. It plays one song from my auto playlist, and then stops. When this happens, I can't use the play command anymore, as the bot "stops responding" and I have to restart the bot to get it to work again.

Look's like it auto skips all the numbers in the auto playlist, until it runs out of songs to play

Steps to Reproduce

  1. Request a song
  2. Let it start playing from auto playlist
  3. Stops responding when the first auto play song is done

Next part

  1. Close the bot on my server
  2. Request a song
  3. The bot joins the voice channel
  4. The bot types that its playing the song i requested, but nothing is happening
  5. I use the command !np too see what is playing, and the bot say that nothing is

Expected Result

Keep playing songs from auto playlist

Debug Output

System Properties:
  java.version = 18.0.1.1
  java.vm.name = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.version = 18
  java.runtime.name = Java(TM) SE Runtime Environment
  java.runtime.version = 18.0.1.1+2-6
  java.specification.version = 18
  os.arch = amd64
  os.name = Windows Server 2019

JMusicBot Information:
  Version = 0.3.8
  Owner = 18623811609126XXXX
  Prefix = .
  AltPrefix = @mention
  MaxSeconds = 0
  NPImages = false
  SongInStatus = false
  StayInChannel = true
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 4.4.0_352
  JDA-Utilities Version = 3.0.5
  Lavaplayer Version = 1.3.78

Runtime Information:
  Total Memory = 94
  Used Memory = 63

Discord Information:
  ID = 299677827064922113
  Guilds = 1
  Users = 2

Additional Info

No response

Checklist

jagrosh commented 2 years ago

My best guess is that this is a consequence of using too new of a java version; the bot is built around java 8, and it appears that you are using java 18.

That being said, it is impossible to debug this without more information from you. Please provide the full console output of the bot, as well as the autoplaylist playlist file.

bjarkeh14 commented 2 years ago

I have downgrades the java version to 8 update 333, so now im getting more information in my console.

[09:31:42] [WARN] [WebSocketClient]: Hit the WebSocket RateLimit! This can be caused by too many presence or voice status updates (connect/disconnect/mute/deaf). Regular: 1 Voice: 0 Chunking: 0

This is the error I get in the console, when the bot starts to skip through the song in the auto playlist. Hope you can help

bjarkeh14 commented 2 years ago

Have added more details to my first post, where you can see the steps