[x86-64] MP3 Playback Crashes on Various Hardware

  • Looking over the code, I do not think those settings should have an impact. Visualizations are essentially a secondary sink at a fixed 44.1khz, with the audio buffer being resampled if required.

    I think you're right. After looking at x86-64 and RPi crash logs again, both have segmentation faults:

    Code
    Core was generated by `/usr/lib/kodi/kodi.bin --standalone -fs --audio-backend=alsa+pulseaudio'.
    Program terminated with signal SIGSEGV, Segmentation fault.

    So probably the memory stack of the audio was corrupted by bad MP3, and later GUI sounds lead to a crash on RPi.

  • In the logs he had from v13 nightlies, the traceback showed

    Code
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    Core was generated by `/usr/lib/kodi/kodi.bin --standalone -fs --audio-backend=alsa+pulseaudio'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0x00000000014f9189 in ActiveAE::CActiveAE::RunStages() ()
    [Current thread is 1 (Thread 0x7f1a50ff96c0 (LWP 1168))]

    Instead of the generic libc that v12 logs were showing.

    So must be something with that mp3 that has a problem there. Maybe run that mp3 through ffmpeg at the command line to check if it shows any errors. The command is something like

    Code
    ffmpeg -v error -i song.mp3 -f null -