Closed nickstarform closed 5 years ago
Another error. Bot doesn't leave after music ends:
[JDA AudioConnection Guild: 238853110095806464 Sending Thread] ERROR com.sedmelluq.discord.lavaplayer.player.AudioPlayer - Handler of event com.sedmelluq.discord.lavaplayer.player.event.TrackEndEvent@2a79895c threw an exception.
java.lang.IllegalStateException: java.lang.InterruptedException
at net.dv8tion.jda.core.utils.MiscUtil.locked(MiscUtil.java:244)
at net.dv8tion.jda.core.audio.AudioWebSocket.locked(AudioWebSocket.java:422)
at net.dv8tion.jda.core.audio.AudioWebSocket.close(AudioWebSocket.java:446)
at net.dv8tion.jda.core.audio.AudioConnection.close(AudioConnection.java:231)
at net.dv8tion.jda.core.managers.impl.AudioManagerImpl.lambda$closeAudioConnection$0(AudioManagerImpl.java:148)
at net.dv8tion.jda.core.utils.MiscUtil.locked(MiscUtil.java:240)
at net.dv8tion.jda.core.managers.impl.AudioManagerImpl.closeAudioConnection(AudioManagerImpl.java:144)
at net.dv8tion.jda.core.managers.impl.AudioManagerImpl.closeAudioConnection(AudioManagerImpl.java:139)
at io.ph.bot.audio.GuildTrackManager.onTrackEnd(GuildTrackManager.java:84)
at com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter.onEvent(AudioEventAdapter.java:70)
at com.sedmelluq.discord.lavaplayer.player.AudioPlayer.dispatchEvent(AudioPlayer.java:350)
at com.sedmelluq.discord.lavaplayer.player.AudioPlayer.handleTerminator(AudioPlayer.java:260)
at com.sedmelluq.discord.lavaplayer.player.AudioPlayer.provide(AudioPlayer.java:196)
at com.sedmelluq.discord.lavaplayer.track.playback.AudioFrameProviderTools.delegateToTimedProvide(AudioFrameProviderTools.java:18)
at com.sedmelluq.discord.lavaplayer.player.AudioPlayer.provide(AudioPlayer.java:175)
at io.ph.bot.audio.AudioPlayerSendHandler.canProvide(AudioPlayerSendHandler.java:30)
at net.dv8tion.jda.core.audio.AudioConnection$PacketProvider.getNextPacketRaw(AudioConnection.java:641)
at net.dv8tion.jda.core.audio.AudioConnection$PacketProvider.getNextPacket(AudioConnection.java:631)
at net.dv8tion.jda.core.audio.factory.DefaultSendSystem.lambda$start$0(DefaultSendSystem.java:69)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.InterruptedException
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1247)
at java.base/java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:317)
at net.dv8tion.jda.core.utils.MiscUtil.locked(MiscUtil.java:239)
... 19 more
Removing music portion of bot. First comment was fixed via fixing permissions of db files to read and write
On startup sometimes this error occurs. cannot always replicate.