Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LavaPlayer not working properly when relocating #731

Open
BaxAndrei opened this issue Aug 3, 2024 · 0 comments
Open

LavaPlayer not working properly when relocating #731

BaxAndrei opened this issue Aug 3, 2024 · 0 comments

Comments

@BaxAndrei
Copy link

I am getting this error when lavaplayer try to play some mp3: Something went wrong when looking up the track and this error when it try to play ogg files:

Exception in thread "lava-daemon-pool-playback-1-thread-1" java.lang.UnsatisfiedLinkError: 'long ro.baxandrei.discordbot.lib.lavaplayer.natives.opus.OpusDecoderLibrary.create(int, int)'
        at ro.baxandrei.discordbot.lib.lavaplayer.natives.opus.OpusDecoderLibrary.create(Native Method)
        at ro.baxandrei.discordbot.lib.lavaplayer.natives.opus.OpusDecoder.<init>(OpusDecoder.java:21)
        at ro.baxandrei.discordbot.lib.lavaplayer.container.common.OpusPacketRouter.initialiseDecoder(OpusPacketRouter.java:193)
        at ro.baxandrei.discordbot.lib.lavaplayer.container.common.OpusPacketRouter.checkDecoderNecessity(OpusPacketRouter.java:177)
        at ro.baxandrei.discordbot.lib.lavaplayer.container.common.OpusPacketRouter.process(OpusPacketRouter.java:93)
        at ro.baxandrei.discordbot.lib.lavaplayer.container.ogg.opus.OggOpusTrackHandler.provideFrames(OggOpusTrackHandler.java:51)
        at ro.baxandrei.discordbot.lib.lavaplayer.container.ogg.OggAudioTrack.processTrackLoop(OggAudioTrack.java:58)
        at ro.baxandrei.discordbot.lib.lavaplayer.container.ogg.OggAudioTrack.lambda$process$0(OggAudioTrack.java:41)
        at ro.baxandrei.discordbot.lib.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:275)
        at ro.baxandrei.discordbot.lib.lavaplayer.container.ogg.OggAudioTrack.process(OggAudioTrack.java:39)
        at ro.baxandrei.discordbot.lib.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25)
        at ro.baxandrei.discordbot.lib.lavaplayer.source.local.LocalAudioTrack.process(LocalAudioTrack.java:45)
        at ro.baxandrei.discordbot.lib.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104)
        at ro.baxandrei.discordbot.lib.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)

After many hours of try/fail I reached a result: if I delete relocation for com.sedmelluq.discord.lavaplayer.natives everything works ok.

How could I relocate this package without breaking lavaplayer?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant