AzuraCast / azurabot

ARCHIVED: This project is not actively being worked on currently, and is seeking maintainers. Please contact the AzuraCast team if you are interested in maintaining this tool.
MIT License
11 stars 4 forks source link

AzuraBot hits invalid memory address or nil pointer dereference on !play {ID} #9

Open ItsMitchh opened 4 years ago

ItsMitchh commented 4 years ago

I've been testing around with the bot and I've done some debugging work to see why it doesn't play after numerous complaints from users.

I've pulled these logs, hopefully it might assist in resolving the issue once and for all.

bot_1                      | 2020/06/24 19:51:21 INFO: Mitchhh sent command 'play'
bot_1                      | 2020/06/24 19:51:22 INFO: Playing URL  https://crosshost.ml/radio/8010/radio.mp3?1593028277
bot_1                      | panic: runtime error: invalid memory address or nil pointer dereference
bot_1                      | [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x6ca295]
bot_1                      |
bot_1                      | goroutine 100 [running]:
bot_1                      | github.com/bwmarrin/discordgo.(*VoiceConnection).log(...)
bot_1                      |    /go/src/github.com/bwmarrin/discordgo/logging.go:86
bot_1                      | github.com/bwmarrin/discordgo.(*VoiceConnection).Speaking(0x0, 0x1, 0x0, 0x0)
bot_1                      |    /go/src/github.com/bwmarrin/discordgo/voice.go:82 +0x85
bot_1                      | main.(*Bot).Radio(0xc0000b22c0, 0xc000377800, 0x34, 0xc0001e9ef0)
bot_1                      |    /go/src/app/audio.go:32 +0xfb
bot_1                      | created by main.(*Bot).GlobalRadio
bot_1                      |    /go/src/app/audio.go:16 +0x70
azuracast_bot_1 exited with code 2