MusicBot icon indicating copy to clipboard operation
MusicBot copied to clipboard

[Bug Report] Doesn't seem to play anything

Open SevenSQS opened this issue 10 months ago • 37 comments

Bug Description

The bot doesn't seem to play anything. When I call the bot in discord, it would reply "Added (song title) to begin playing". But there are no audio and if I check nowplaying, it would say there must be music playing to use that. Checked the console and this is all it shows: [16:23:25] [INFO] [JMusicBot]: Loaded config from D:\musicbot\config.txt [16:23:25] [INFO] [JDA]: Login Successful! [16:23:25] [INFO] [WebSocketClient]: Connected to WebSocket [16:23:25] [INFO] [JDA]: Finished Loading! [16:23:33] [INFO] [YoutubeAccessTokenTracker]: Updating YouTube visitor id (current is null). [16:23:33] [INFO] [YoutubeAccessTokenTracker]: Updating YouTube visitor id succeeded, new one is CgtqSjY4aVdscmx1RSjF0rGwBjIKCgJVUxIEGgAgUToKIPi3le_RqJqGZg%3D%3D, next update will be after 600 seconds.

Steps to Reproduce

  1. Launch the bot
  2. Use the play command in discord
  3. No audio despite the bot responding

Expected Result

The bot is "half alive" it will look like it works but it won't do anything(no audio)

Debug Output

System Properties:
  java.version = 11.0.21
  java.vm.name = Java HotSpot(TM) 64-Bit Server VM
  java.vm.specification.version = 11
  java.runtime.name = Java(TM) SE Runtime Environment
  java.runtime.version = 11.0.21+9-LTS-193
  java.specification.version = 11
  os.arch = amd64
  os.name = Windows 10

JMusicBot Information:
  Version = 0.4.0
  Owner = ( Removed by me, but it shows my discord ID)
  Prefix = ?
  AltPrefix = null
  MaxSeconds = 0
  NPImages = false
  SongInStatus = true
  StayInChannel = true
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 4.4.1_353
  JDA-Utilities Version = 3.0.5
  Lavaplayer Version = 727959e9f621fc457b3a5adafcfffb55fdeaa538-SNAPSHOT

Runtime Information:
  Total Memory = 254
  Used Memory = 143

Discord Information:
  ID = 901305000062484520
  Guilds = 3
  Users = 3

Additional Info

No response

Checklist

SevenSQS avatar Apr 02 '24 20:04 SevenSQS

Can also confirm.

This happens with the latest version 0.4.0.

However you can bypass the issue by using the previous version JMusicBot-0.3.9

FSKiller avatar Apr 02 '24 23:04 FSKiller

Can confirm aswell

elijahtaylorr avatar Apr 03 '24 05:04 elijahtaylorr

same

SrLicht avatar Apr 03 '24 09:04 SrLicht

Same situation here, after downgrading to version 0.3.9 everything works fine.

Same URL:

on 0.4.0 - 🚫 Error loading: Video returned by YouTube isn't what was requested on 0.3.9 - works perfectly fine

Tosiek99 avatar Apr 03 '24 12:04 Tosiek99

Same here. Downgrading to 0.3.9 works.

MCH170 avatar Apr 04 '24 08:04 MCH170

can confirm, issue is with 0.4.0, downgrade worked

wolfeservices avatar Apr 04 '24 19:04 wolfeservices

Same issue here. Waiting for a fix before updating.

DylanSpeiser avatar Apr 05 '24 02:04 DylanSpeiser

same issue using 0.4.0 downgrading to 0.3.9 works well

ArrickGit avatar Apr 05 '24 15:04 ArrickGit

Also experiencing this. java 17.0.6 2023-01-17 LTS

rjDipcord avatar Apr 06 '24 04:04 rjDipcord

Downgrading fixed for me as well. Downgrading.

albatross1 avatar Apr 06 '24 04:04 albatross1

Been getting a lot of "Error loading: Video returned by YouTube isn't what was requested " as of late. Nothing in the logs indicates what the real error is, let alone what the output was.

Is there a way to drop it into debug logging to see those outputs?

IngwiePhoenix avatar Apr 06 '24 16:04 IngwiePhoenix

I am also having this issue, although I have found that it isn't a global won't play anything issue but only with youtube. I tested both Soundcloud and twitch stream audios and those worked just fine.

ethan91 avatar Apr 07 '24 06:04 ethan91

Same and I can't downgrade on my server because its running as service and I can't be there to skip the "new update" everytime it starts. Hope it gets fixed soon

sblmbb avatar Apr 07 '24 15:04 sblmbb

Youtube will not playback on 0.4.0 with macOS 14.4.1, Soundcloud still works with 0.4.0. I wonder if it is related to this warning from the terminal when running the jar file (MacOS 14.4.1 Sonoma latest release):

WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.

Likely not as that warning is still present on 0.3.9.

I can confirm that 0.3.9 still works and can playback YouTube music, so I think this is likely something to do with the latest MacOS release and 0.4.0 only.

smakus avatar Apr 07 '24 17:04 smakus

Can confirm same issue, downgrading to 0.3.9 fixes the issue

donnybeelo avatar Apr 07 '24 22:04 donnybeelo

Downgraded and now the bot sends me a discord PM frequently telling me about a new version

siggijarl avatar Apr 07 '24 23:04 siggijarl

Downgraded and now the bot sends me a discord PM frequently telling me about a new version

Yo can change that in the config file, just read the manual.

Preycon avatar Apr 07 '24 23:04 Preycon

Downgraded and now the bot sends me a discord PM frequently telling me about a new version

add updatealerts=false to your config.txt file :)

donnybeelo avatar Apr 07 '24 23:04 donnybeelo

Will this be resolved in 4.1.0?

DaanSelen avatar Apr 08 '24 19:04 DaanSelen

I can confirm, for me doesn't work on Ubuntu (haven't tested on Windows)

MichjuX avatar Apr 08 '24 20:04 MichjuX

It seems to be an issue with how version 0.4.0 handles ingest from YouTube, as other ingest sources still work. Id imagine version 0.4.1 would include a rollback/fix to YouTube as the previous version of 0.3.9 works well.

wolfeservices avatar Apr 08 '24 20:04 wolfeservices

It seems to be an issue with how version 0.4.0 handles ingest from YouTube, as other ingest sources still work. Id imagine version 0.4.1 would include a rollback/fix to YouTube as the previous version of 0.3.9 works well.

A rollback will lead to the 403 issues that plagued the extremely-outdated lavaplayer build in 0.3.9; we're going to wait for a proper fix for this from the new lavaplayer fork

jagrosh avatar Apr 10 '24 16:04 jagrosh

There's an open pull request at https://github.com/lavalink-devs/lavaplayer/pull/88 that fixes this issue. I've made a build of JMusicBot on my fork that includes the changes of that pull request. You're welcome to try that version out & use it as a temporary stop-gap solution until 0.4.1 comes out.

The release is on my fork & is provided as-is. No support is provided here. Do not report issues of my fork on here.

MichailiK avatar Apr 12 '24 18:04 MichailiK

just to add my 2 cents, I got called in by a friend to help troubleshoot his music bot on 0.4.0 version after he upgraded on Windows 10. Tried lots of things, but had to downgrade to get it to work. One difference between version 0.4.0 and 0.3.9 that I noticed is that when the 0.4.0 music bot joined the voice channel, it had the "deafened" status symbol. We could find no permission concerning this in the settings file or on Discord. I don't know if it is related to us not hearing the audio.

LattVines avatar Apr 12 '24 19:04 LattVines

just to add my 2 cents, I got called in by a friend to help troubleshoot his music bot on 0.4.0 version after he upgraded on Windows 10. Tried lots of things, but had to downgrade to get it to work. One difference between version 0.4.0 and 0.3.9 that I noticed is that when the 0.4.0 music bot joined the voice channel, it had the "deafened" status symbol. We could find no permission concerning this in the settings file or on Discord. I don't know if it is related to us not hearing the audio.

this has nothing to do with what you hear, its a privacy quality of life feature to show that the bot is not listening to you and potentially recording private data

BuzzfeedBlue avatar Apr 18 '24 02:04 BuzzfeedBlue

just to add my 2 cents, I got called in by a friend to help troubleshoot his music bot on 0.4.0 version after he upgraded on Windows 10. Tried lots of things, but had to downgrade to get it to work. One difference between version 0.4.0 and 0.3.9 that I noticed is that when the 0.4.0 music bot joined the voice channel, it had the "deafened" status symbol. We could find no permission concerning this in the settings file or on Discord. I don't know if it is related to us not hearing the audio.

this has nothing to do with what you hear, its a privacy quality of life feature to show that the bot is not listening to you and potentially recording private data

Actually, the "deafened" status is purely visual and doesn't prevent a bot from recording you. Only the "server deafened" status actually prevents a bot from receiving audio.

jagrosh avatar Apr 18 '24 02:04 jagrosh

looks like lavalink-devs spun off youtube support into a separate project under https://github.com/lavalink-devs/youtube-source and will not be updating the base lavaplayer

source: https://github.com/lavalink-devs/lavaplayer/issues/97#issuecomment-2067810065

livehifi avatar Apr 22 '24 17:04 livehifi

Having the same issue, hopefully fixed soon! Rollback to 3.9.0 for now.

Must be the deafened state that is the problem here. It prevents a user from sending audio, so the same thing might be happening with the bot.

Snailpower avatar Apr 22 '24 18:04 Snailpower

Must be the deafened state that is the problem here. It prevents a user from sending audio, so the same thing might be happening with the bot.

No. Deafening the bot is for audio only. The bot doesn't need to hear you speak audibly. Theoretically saves bandwidth because no audio is transmitted to the bot.

smakus avatar Apr 23 '24 04:04 smakus

Must be the deafened state that is the problem here. It prevents a user from sending audio, so the same thing might be happening with the bot.

No. Deafening the bot is for audio only. The bot doesn't need to hear you speak audibly. Theoretically saves bandwidth because no audio is transmitted to the bot.

While deafening is unrelated to this issue, deafening doesn't save any bandwidth because the bot still receives audio when deafened. Only server-deafening actually saves bandwidth.

jagrosh avatar Apr 23 '24 04:04 jagrosh