introduction:
ive been building a discord tts bot, and running it for a few years now and have decided to dockerize it, and while the image builds and runs sucessfully. the bot its self has errors not seen before. building on a base of amazoncoretto:21-alpine. so a bit of a hybrid problem, i understand that. ive already exhausted all my ideas to troubleshoot the problem before coming here, so any help would be greatly appreciated.
The problem:
using lavaplayer as the audio backend for discord. and when trying to play the audio i get a segfault of dubious origin. i have confirmed that the tts audio is generated and placed in the correct folder, with the correct permissions. and even the music playing function causes the program to crash. so its not tts specific, but the playing of any audio seems to cause it. bellow are error logs:
[JDA MainWS-ReadThread] INFO CommandContext - command ----------- tts
2024-03-06T01:08:54.579407198Z [JDA MainWS-ReadThread] INFO TTSHandler - Formatted text: ham
2024-03-06T01:08:54.975134217Z [JDA MainWS-ReadThread] INFO TTSCommands - tts: 06-03-2024 01:08:54 Guild: Support Server - User: rainflake#0000
2024-03-06T01:08:54.977995697Z [JDA MainWS-ReadThread] INFO CommandHandler - tts: 06-03-2024 01:08:54 Guild: Support Server - User: rainflake#0000
2024-03-06T01:08:54.988684412Z [lava-daemon-pool-info-loader-2-thread-1] INFO com.sedmelluq.lava.common.natives.NativeLibraryLoader - Native library libmpg123-0: loading with filter com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader$$Lambda/0x00007595342c9018@4c73503
2024-03-06T01:08:54.989485557Z [lava-daemon-pool-info-loader-2-thread-1] INFO com.sedmelluq.lava.common.natives.NativeLibraryLoader - Native library connector: loading with filter null
2024-03-06T01:08:55.015905501Z [lava-daemon-pool-info-loader-2-thread-1] INFO com.sedmelluq.lava.common.natives.NativeLibraryLoader - Native library connector: successfully loaded.
2024-03-06T01:08:55.028189395Z #
2024-03-06T01:08:55.028218494Z # A fatal error has been detected by the Java Runtime Environment:
2024-03-06T01:08:55.028224174Z #
2024-03-06T01:08:55.028228844Z # SIGSEGV (0xb) at pc=0x00000000000072b6, pid=1, tid=84
2024-03-06T01:08:55.028233644Z #
2024-03-06T01:08:55.028238144Z # JRE version: OpenJDK Runtime Environment Corretto-21.0.2.14.1 (21.0.2+14) (build 21.0.2+14-LTS)
2024-03-06T01:08:55.028242974Z # Java VM: OpenJDK 64-Bit Server VM Corretto-21.0.2.14.1 (21.0.2+14-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
2024-03-06T01:08:55.028247924Z # Problematic frame:
2024-03-06T01:08:55.028254264Z # C [libconnector.so+0x1275e9]
2024-03-06T01:08:55.028258934Z #
2024-03-06T01:08:55.028263344Z # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/rainybot/src/core.1)
2024-03-06T01:08:55.028268454Z #
2024-03-06T01:08:55.028308834Z # An error report file with more information is saved as:
2024-03-06T01:08:55.028323994Z # /home/rainybot/src/hs_err_pid1.log
2024-03-06T01:08:55.037459259Z [79.844s][warning][os] Loading hsdis library failed
2024-03-06T01:08:55.074580019Z #
2024-03-06T01:08:55.074602978Z # If you would like to submit a bug report, please visit:
2024-03-06T01:08:55.074607408Z # https://github.com/corretto/corretto-21/issues/
2024-03-06T01:08:55.074611408Z # The crash happened outside the Java Virtual Machine in native code.
2024-03-06T01:08:55.074619298Z # See problematic frame for where to report the bug.
2024-03-06T01:08:55.074634128Z #
2024-03-06T01:08:57.925036160Z [main] INFO app - Logging In...
2024-03-06T01:08:58.659929131Z [main] INFO net.dv8tion.jda.api.JDA - Login Successful!
2024-03-06T01:08:58.999937805Z