lavaplayer
lavaplayer copied to clipboard
Problematic frame: C [libconnector.so+0x13cac0]
Hey Guys,
My Discord bot crashing repeatly while streaming an radio stream to an voice channel. Referred issue: #162
My specs:
// build.gradle
compile 'org.javacord:javacord:3.3.0'
compile 'com.sedmelluq:lavaplayer:1.3.75'
// The OS
Debian bullseye/sid
Kernel version: 5.4
CPU: AMD EPYC 7351P 16-Core Processor
RAM: 12GB
SWAP: 2GB
ROM: 110GB
// Java
openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-120.04, mixed mode, sharing)
// Start command
screen -L -dmS Loki /usr/lib/jvm/java-14-openjdk-amd64/bin/java -jar $1
What I tried:
// Playing 24/7 an radio stream.
ServerVoiceChannel serverVoiceChannel = Loki.getInstance().getDiscordApi().getServerVoiceChannelById(voiceChannelID).get();
if (!serverVoiceChannel.canYouConnect()) {
Logger.error("Can't connect to the voice channel!");
return;
}
audioConnection = serverVoiceChannel.connect().join();
audioConnection.setSelfDeafened(true);
audioConnection.setPrioritySpeaking(true);
AudioPlayerManager audioPlayerManager = new DefaultAudioPlayerManager();
AudioPlayer audioPlayer = audioPlayerManager.createPlayer();
HttpAudioSourceManager httpAudioSourceManager = new HttpAudioSourceManager();
audioPlayerManager.registerSourceManager(httpAudioSourceManager);
AudioSource source = new LavaplayerAudioSource(Loki.getInstance().getDiscordApi(), audioPlayer);
audioConnection.setAudioSource(source);
audioPlayerManager.loadItem("XXXX/XX.mp3", new AudioLoadResultHandler() {
@Override
public void trackLoaded(AudioTrack track) {
audioPlayer.playTrack(track);
}
@Override
public void playlistLoaded(AudioPlaylist playlist) {
for (AudioTrack track : playlist.getTracks()) {
audioPlayer.playTrack(track);
}
}
@Override
public void noMatches() {
Logger.info("noMatches");
}
@Override
public void loadFailed(FriendlyException throwable) {
Logger.error("loadFailed");
throwable.printStackTrace();
}
});
The LavaplayerAudioSource: LavaplayerAudioSource.txt
The hs_err hs_err_pid11624.log
Should be fixed in version 1.3.76