sedmelluq / lavaplayer

Audio player library for Discord
Apache License 2.0
974 stars 247 forks source link

FriendlyException: Something went wrong when decoding the track #578

Open oleggtro opened 3 years ago

oleggtro commented 3 years ago

I was reactivating my music bot and updating to the newest version of lavaplayer and I am getting this error message repeatedly after some time playing. I am then restarting the bot and everything works fine again for a while until it starts again... It doesn't seem like a problem with my code, because I can play the same tracks just fine after the restart... That error never happened to me in the past...


11:33:29.173 [lava-daemon-pool-info-loader-5-thread-1] INFO : Track was loaded! Now playing: https://www.youtube.com/watch?v=uJvEV9C2sHQ Title: LEFT BOY feat. FERDINAND - SEX PARTY

11:33:29.727 [lava-daemon-pool-playback-4-thread-3] ERROR: Error in playback of uJvEV9C2sHQ

com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something went wrong when decoding the track.

    at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44)

    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:293)

    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:249)

    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:38)

    at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25)

    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:57)

    at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:49)

    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104)

    at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348)

    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

    at java.base/java.lang.Thread.run(Thread.java:834)

    Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation: 

  lavaplayer.version: 1.3.67

  os.arch: amd64

  os.name: Linux

  os.version: 5.4.0-65-generic

  java.vendor: Oracle Corporation

  java.version: 11.0.10

  java.runtime.version: 11.0.10+9

  java.vm.version: 11.0.10+9

Caused by: java.lang.IllegalStateException: Cannot use the decoder after closing it.

    at com.sedmelluq.lava.common.natives.NativeResourceHolder.checkNotReleased(NativeResourceHolder.java:21)

    at com.sedmelluq.discord.lavaplayer.natives.opus.OpusEncoder.encode(OpusEncoder.java:36)

    at com.sedmelluq.discord.lavaplayer.format.transcoder.OpusChunkEncoder.encode(OpusChunkEncoder.java:39)

    at com.sedmelluq.discord.lavaplayer.filter.BufferingPostProcessor.process(BufferingPostProcessor.java:34)

    at com.sedmelluq.discord.lavaplayer.filter.FinalPcmAudioFilter.dispatch(FinalPcmAudioFilter.java:157)

    at com.sedmelluq.discord.lavaplayer.filter.FinalPcmAudioFilter.process(FinalPcmAudioFilter.java:146)

    at com.sedmelluq.discord.lavaplayer.filter.equalizer.Equalizer.process(Equalizer.java:74)

    at com.sedmelluq.discord.lavaplayer.filter.converter.ToFloatAudioFilter.process(ToFloatAudioFilter.java:65)

    at com.sedmelluq.discord.lavaplayer.filter.UserProvidedAudioFilters.process(UserProvidedAudioFilters.java:76)

    at com.sedmelluq.discord.lavaplayer.filter.AudioPipeline.process(AudioPipeline.java:33)

    at com.sedmelluq.discord.lavaplayer.container.common.OpusPacketRouter.passDownstream(OpusPacketRouter.java:160)

    at com.sedmelluq.discord.lavaplayer.container.common.OpusPacketRouter.process(OpusPacketRouter.java:96)

    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaOpusTrackConsumer.consume(MatroskaOpusTrackConsumer.java:46)

    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.processFrameInBlock(MatroskaStreamingFile.java:371)

    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.parseClusterSimpleBlock(MatroskaStreamingFile.java:335)

    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.parseNextCluster(MatroskaStreamingFile.java:320)

    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.provideFrames(MatroskaStreamingFile.java:296)

    at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.lambda$process$0(MatroskaAudioTrack.java:39)

    at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:275)   
    ... 10 more
oleggtro commented 3 years ago

any update on this?

PatrSto commented 3 years ago

I have the same problem too, any solutions?

oleggtro commented 3 years ago

lavaplayer seems a bit unmaintained rn

Spimy commented 3 years ago

Still nothing on this?

oleggtro commented 3 years ago

I don't think so

Z0pyrus commented 2 years ago

Still nothing?

oleggtro commented 2 years ago

any idea? @sedmelluq

Its-Haze commented 2 years ago

i have the same issue. ;/

oleggtro commented 2 years ago

lavaplayer seems dead tbh

MCOfficer commented 2 years ago

Use https://github.com/Walkyst/lavaplayer-fork

Da-Real-Kryall commented 1 year ago

I also have this issue, still nothing?

MCOfficer commented 1 year ago

Still the same solution, use Walkyst's fork and report any issues there.