MusicBot icon indicating copy to clipboard operation
MusicBot copied to clipboard

[Bug Report] Disconnecting from Voice Chat at the end of a song

Open philippbike opened this issue 3 years ago • 0 comments

Bug Description

I am not sure if this is just me, but I have noticed a few times a night, the bot will finish playing a song and instantly leave the voice channel. Some background on this that makes me seem less like a crazy person:

  1. We normally have the bot on repeat all or repeat single
  2. We normally have multiple songs in the queue
  3. We are all still in the voice channel with the bot

To me, having repeat on, and additional songs in the queue would make it seem as it would just keep playing, but it just disconnects and we have to queue our songs again. Kind of annoying when you are in the middle of a raid or something to have to tab out and start interacting with the bot. I would say it seems like a crash, but it always finishes the current song, as well as I have no logs that the actual jar file requires relaunching. It is still running when I take a look and respond's instantly to the next play command. It's almost like it thinks repeat is off and the queue is empty even though, neither of those states is true.

Steps to Reproduce

  1. Repeat single (happens on repeat all, but less often)
  2. Add multiple songs to the queue
  3. Let it play for an hour or two (usually takes a bit for it to occur, but once it does, it happens pretty frequently

Expected Result

I expected the song to repeat (when the repeat single is active) or for the next song in the queue to play (when the repeat all is active)

Debug Output

OS: Ubuntu 20.04.3 LTS
Cloud Provider: AWS t2.micro
Uptime: 1 Month, 6 days
JMusicBot version: 0.3.6


System Properties:
  java.version = 11.0.11
  java.vm.name = OpenJDK 64-Bit Server VM
  java.vm.specification.version = 11
  java.runtime.name = OpenJDK Runtime Environment
  java.runtime.version = 11.0.11+9-Ubuntu-0ubuntu2.20.04
  java.specification.version = 11
  os.arch = amd64
  os.name = Linux

JMusicBot Information:
  Version = 0.3.6
  Owner = {redacted}
  Prefix = @mention
  AltPrefix = !!
  MaxSeconds = 0
  NPImages = false
  SongInStatus = true
  StayInChannel = false
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 4.3.0_324
  JDA-Utilities Version = 3.0.5
  Lavaplayer Version = 1.3.78

Runtime Information:
  Total Memory = 35
  Used Memory = 22

Discord Information:
  ID = {redacted}
  Guilds = 1
  Users = 2


### Additional Info

_No response_

### Checklist

- [X] I have looked for information about this [within the documentation](https://jmusicbot.com/)
- [X] I have searched for similar issues [on the issues page](https://github.com/jagrosh/MusicBot/issues?q=is%3Aissue)
- [X] I am running the latest version of the bot: ![Release](https://img.shields.io/github/release/jagrosh/MusicBot.svg)

philippbike avatar Nov 11 '21 11:11 philippbike