Libavutil.so segfault when transcoding audio

Server Version#: 1.25.2.5319
Player Version#: Plex for Roku TV, 6.9.12.7411-08dc87cc9-Plex

Server OS: Ubuntu 18.04.6 LTS, kernel 4.15.0-163-generic

When playing media that causes the server to do an audio transcode, playback crashes with an error onscreen saying “Playback Terminated Conversion failed. The transcoder process crashed.” It’s hard to reproduce and doesn’t crash right away, sometimes taking longer than an hour to finally manifest. Forcing Direct Play to avoid the transcode altogether is a workaround, but this isn’t always possible.

I’ve enabled debug mode on the server logs and looked at them around the time of subsequent crashes and can’t find anything relevant, but I do get errors like these segfault messages in dmesg:

Plex Transcoder[5330]: segfault at 10 ip 00007febafb222fe sp 00007fff0830ceb0 error 4 in libavutil.so.56[7febafb16000+66000]
Plex Transcoder[10649]: segfault at 10 ip 00007fb401fce2fe sp 00007ffd159e6500 error 4 in libavutil.so.56[7fb401fc2000+66000]
Plex Transcoder[29586]: segfault at 10 ip 00007f4c094472fe sp 00007ffeccc11c40 error 4 in libavutil.so.56[7f4c0943b000+66000].

3 Likes

it’s not possible to debug with just a program counter.

DEBUG logs which show the invocation command line as well as a sample of the file sufficient enough to reproduce the failure are needed.

What we’ll do is start the transcoder using the given command line arguments and file in the debugger and catch it at the exact point of failure.

The invocation from the debug log is:

Dec 22, 2021 17:32:12.430 [0x7f5298a80b38] DEBUG - [Transcode/90b828d5-9ac5-4c2a-9564-3e910f78b029-1/JobRunner] Job running: EAE_ROOT=’/tmp/pms-1f8cb232-02a4-47a2-8848-7c1507522073/EasyAudioEncoder’ FFMPEG_EXTERNAL_LIBS=’/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/fb9eae3-4185-linux-x86_64/’ X_PLEX_TOKEN=‘xxxxxxxxxxxxxxxxxxxx’ ‘/usr/lib/plexmediaserver/Plex Transcoder’ ‘-codec:#0x01’ ‘h264’ ‘-codec:#0x02’ ‘aac’ ‘-noaccurate_seek’ ‘-analyzeduration’ ‘20000000’ ‘-probesize’ ‘20000000’ ‘-i’ ‘/mnt/files/best_in_show.mp4’ ‘-map’ ‘0:#0x01’ ‘-codec:0’ ‘copy’ ‘-filter_complex’ ‘[0:#0x02] aresample=async=1:ocl=’’‘5.1(side)’’’:rematrix_maxval=0.000000dB:osr=48000[0]’ ‘-map’ ‘[0]’ ‘-codec:1’ ‘eac3_eae’ ‘-eae_prefix:1’ ‘90b828d5-9ac5-4c2a-9564-3e910f78b029-1_’ ‘-b:1’ ‘774k’ ‘-break_non_keyframes’ ‘1’ ‘-segment_format’ ‘mpegts’ ‘-f’ ‘ssegment’ ‘-individual_header_trailer’ ‘0’ ‘-segment_time’ ‘1’ ‘-segment_start_number’ ‘0’ ‘-segment_copyts’ ‘1’ ‘-segment_time_delta’ ‘0.0625’ ‘-segment_list’ ‘http://127.0.0.1:32400/video/:/transcode/session/90b828d5-9ac5-4c2a-9564-3e910f78b029-1/2edccecd-7306-4f3c-8382-25fe4066b62b/manifest?X-Plex-Http-Pipeline=infinite’ ‘-segment_list_type’ ‘csv’ ‘-segment_list_size’ ‘5’ ‘-segment_list_separate_stream_times’ ‘1’ ‘-segment_list_unfinished’ ‘1’ ‘-max_delay’ ‘5000000’ ‘-avoid_negative_ts’ ‘disabled’ ‘-map_metadata’ ‘-1’ ‘-map_chapters’ ‘-1’ ‘media-%05d.ts’ ‘-start_at_zero’ ‘-copyts’ ‘-vsync’ ‘cfr’ ‘-y’ ‘-nostats’ ‘-loglevel’ ‘quiet’ ‘-loglevel_plex’ ‘error’ ‘-progressurl’ ‘http://127.0.0.1:32400/video/:/transcode/session/90b828d5-9ac5-4c2a-9564-3e910f78b029-1/2edccecd-7306-4f3c-8382-25fe4066b62b/progress

A 60 second sample of a problematic file is available at http://s3.v64.net/best_in_show.mp4

The main problem with this issue is that it’s not reliably reproducible. In testing, the transcoder will crash, but then backing up and playing the same part of the file works fine on subsequent plays. This sample is also only one file that has caused problems, but it appears the crash can occur when any transcoding is occurring, so it’s not a problem with just this specific file. The fact that I’ve only found a few other cases of this crash leads me to believe it’s a problem with my particular server configuration.

If you could provide me with the commands you’re using to do your debugging, I could run them directly on my server as well in the event you’re not able to reproduce the problem using this sample.

Also, I’ve been running this particular server for over a year and have been transcoding audio without problems. These crashes only started occurring in the last couple of months. I can’t pinpoint exactly which version of PMS was the last one I used without these crashes, but if there were any recent changes to libavutil.so.56 in /usr/lib/plexmediaserver/lib/, this may have introduced this crash.

Server logs please which capture this too please ?

Attached are relevant lines pulled from Plex Media Server.log. In invocation.txt, transcoder process ID 10649 is invoked at timestamp Dec 22, 2021 18:48:01.841. In crash.txt, the crash occurs at Dec 22, 2021 20:12:21 (although there’s no indication of the process exiting in the logs).

invocation.txt (26.7 KB)
crash.txt (8.7 KB)

There are multiple streams going on at once in these logs, the relevant lines belong to the user session I’ve anonymized as user2933@gmail.com.

If there is data from other log files you’d like to see, I can pull those, but for the privacy of the server’s users, I’m unable to post the raw log files due to their email addresses being present in the data.

I was able to capture a core dump that gave me this backtrace:

Core was generated by `/usr/lib/plexmediaserver/Plex Transcoder -codec:#0x01 h264 -codec:#0x02 aac -no’.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007febafb222fe in av_buffer_ref () from /usr/lib/plexmediaserver/lib/libavutil.so.56
[Current thread is 1 (LWP 5330)]
(gdb) bt
#0 0x00007febafb222fe in av_buffer_ref () from /usr/lib/plexmediaserver/lib/libavutil.so.56
#1 0x00007febb009340a in ?? () from /usr/lib/plexmediaserver/lib/libavcodec.so.58
#2 0x00007febb009131b in ?? () from /usr/lib/plexmediaserver/lib/libavcodec.so.58
#3 0x00007febb0096493 in ?? () from /usr/lib/plexmediaserver/lib/libavcodec.so.58
#4 0x00007febb00963d1 in avcodec_send_frame () from /usr/lib/plexmediaserver/lib/libavcodec.so.58
#5 0x00007febb10f5f0a in ?? ()
#6 0x00007febb10f1bda in main ()

I have the same issue, let me know if my server logs would be helpful.

[1470867.058346] Plex Transcoder[2822218]: segfault at 10 ip 00007f26d52202fe sp 00007ffe8cfdf350 error 4 in libavutil.so.56[7f26d5214000+66000]
[1470867.058359] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1470875.438108] Plex Transcoder[2863546]: segfault at 10 ip 00007fd79ddac2fe sp 00007ffcca1d2210 error 4 in libavutil.so.56[7fd79dda0000+66000]
[1470875.438126] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471222.138088] Plex Transcoder[2865050]: segfault at 10 ip 00007fdc0d4b12fe sp 00007ffe1239b010 error 4 in libavutil.so.56[7fdc0d4a5000+66000]
[1471222.138115] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471229.128219] Plex Transcoder[2867736]: segfault at 10 ip 00007f5ae5aa52fe sp 00007ffc9143eb80 error 4 in libavutil.so.56[7f5ae5a99000+66000]
[1471229.128239] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471332.451234] Plex Transcoder[2868752]: segfault at 10 ip 00007fe5cd8b42fe sp 00007ffd331fbe30 error 4 in libavutil.so.56[7fe5cd8a8000+66000]
[1471332.451259] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471339.244041] Plex Transcoder[2869199]: segfault at 10 ip 00007f60d5e9d2fe sp 00007fffb02a38a0 error 4 in libavutil.so.56[7f60d5e91000+66000]
[1471339.244062] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471398.974876] Plex Transcoder[2870100]: segfault at 10 ip 00007f46c77862fe sp 00007fff9334fe70 error 4 in libavutil.so.56[7f46c777a000+66000]
[1471398.974888] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471406.681552] Plex Transcoder[2870285]: segfault at 10 ip 00007fcdf0db32fe sp 00007ffe03fca2c0 error 4 in libavutil.so.56[7fcdf0da7000+66000]
[1471406.681566] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471496.123588] Plex Transcoder[2871539]: segfault at 10 ip 00007f5c1f9512fe sp 00007ffd5f5245c0 error 4 in libavutil.so.56[7f5c1f945000+66000]
[1471496.123615] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1471503.917212] Plex Transcoder[2871730]: segfault at 10 ip 00007f158952b2fe sp 00007ffeec1b25f0 error 4 in libavutil.so.56[7f158951f000+66000]
[1471503.917230] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1719338.752679] Plex Transcoder[822000]: segfault at 10 ip 00007ff37c0092fe sp 00007ffd242723c0 error 4 in libavutil.so.56[7ff37bffd000+66000]
[1719338.752704] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1719374.898519] Plex Transcoder[995226]: segfault at 10 ip 00007fe1364b42fe sp 00007ffc359735b0 error 4 in libavutil.so.56[7fe1364a8000+66000]
[1719374.898548] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01

I’m also having this issue. I’m on Debian bullseye v11.2.

[Dec25 10:03] Plex Transcoder[3404624]: segfault at 10 ip 00007f6af81bb2fe sp 00007ffff6c104c0 error 4 in libavutil.so.56[7f6af81af000+66000]
[  +0.000005] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[ +26.216694] Plex Transcoder[3413339]: segfault at 10 ip 00007f27b9d792fe sp 00007fff961871d0 error 4 in libavutil.so.56[7f27b9d6d000+66000]
[  +0.000009] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 10:04] Plex Transcoder[3414106]: segfault at 10 ip 00007f57364112fe sp 00007ffdd547bb80 error 4 in libavutil.so.56[7f5736405000+66000]
[  +0.000007] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[  +4.692510] Plex Transcoder[3414203]: segfault at 10 ip 00007f52f56dc2fe sp 00007ffcd1dd9150 error 4 in libavutil.so.56[7f52f56d0000+66000]
[  +0.000014] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 10:08] Plex Transcoder[3419013]: segfault at 10 ip 00007fc853d072fe sp 00007fff289f5dd0 error 4 in libavutil.so.56[7fc853cfb000+66000]
[  +0.000007] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 10:09] Plex Transcoder[3419101]: segfault at 10 ip 00007f2bd45e72fe sp 00007fffc628b1d0 error 4 in libavutil.so.56[7f2bd45db000+66000]
[  +0.000013] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 10:18] Plex Transcoder[3420142]: segfault at 10 ip 00007f79f934d2fe sp 00007ffd8c806320 error 4 in libavutil.so.56[7f79f9341000+66000]
[  +0.000007] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[ +17.998881] Plex Transcoder[3428442]: segfault at 10 ip 00007f257a74a2fe sp 00007fff51d04820 error 4 in libavutil.so.56[7f257a73e000+66000]
[  +0.000008] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 10:28] Plex Transcoder[3429965]: segfault at 10 ip 00007f090261e2fe sp 00007ffd9e98ae90 error 4 in libavutil.so.56[7f0902612000+66000]
[  +0.000008] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 10:29] Plex Transcoder[3438223]: segfault at 10 ip 00007f5f130ec2fe sp 00007fffe47dea60 error 4 in libavutil.so.56[7f5f130e0000+66000]
[  +0.000008] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[ +21.953664] Plex Transcoder[3438990]: segfault at 10 ip 00007fdefbaee2fe sp 00007ffc9a3f9cf0 error 4 in libavutil.so.56[7fdefbae2000+66000]
[  +0.000008] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[  +2.062269] Plex Transcoder[3439104]: segfault at 10 ip 00007f1136fd32fe sp 00007ffd2f66d980 error 4 in libavutil.so.56[7f1136fc7000+66000]
[  +0.000008] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 14:35] Plex Transcoder[3671053]: segfault at 10 ip 00007f0b331912fe sp 00007ffdd567ca90 error 4 in libavutil.so.56[7f0b33185000+66000]
[  +0.000007] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Dec25 14:36] Plex Transcoder[3671146]: segfault at 10 ip 00007f3645e282fe sp 00007ffc5f44ac30 error 4 in libavutil.so.56[7f3645e1c000+66000]
[  +0.000006] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01

I am having the same issue except its only on iOS. My apple TV and plex web player don’t have this issue.

I’m having the same issue. For me it’s very limited on when it happens and my guess is that it could be TrueHD audio that is the culprit. I’m running PMS 1.25.2.5319 on Ubuntu 20.04.01 LTS.

Get this repeating constantly in Plex Media Server.log until I quit trying on my client:

Dec 31, 2021 02:04:50.955 [0x7effd30a9b38] ERROR - [Transcoder] [truehd_eae @ 0x7f2e7b78ccc0] error reading output
Dec 31, 2021 02:04:50.956 [0x7effd2679b38] ERROR - [Transcoder] Error while decoding stream #0:1: Unknown error occurred
Dec 31, 2021 02:04:50.959 [0x7effd30a9b38] ERROR - [Transcoder] [truehd_eae @ 0x7f2e7b78ccc0] error reading output
Dec 31, 2021 02:04:50.960 [0x7effd2679b38] ERROR - [Transcoder] Error while decoding stream #0:1: Unknown error occurred
Dec 31, 2021 02:04:50.963 [0x7effd30a9b38] ERROR - [Transcoder] [truehd_eae @ 0x7f2e7b78ccc0] error reading output
Dec 31, 2021 02:04:50.963 [0x7effd2679b38] ERROR - [Transcoder] Error while decoding stream #0:1: Unknown error occurred
Dec 31, 2021 02:04:50.966 [0x7effd30a9b38] ERROR - [Transcoder] [truehd_eae @ 0x7f2e7b78ccc0] error reading output

And from dmesg:

[1685284.389614] show_signal_msg: 5 callbacks suppressed
[1685284.389624] Plex Transcoder[424705]: segfault at 10 ip 00007fb1f62812fe sp 00007ffc1e357e50 error 4 in libavutil.so.56[7fb1f6275000+66000]
[1685284.389644] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[1685399.343742] Plex Transcoder[457463]: segfault at 10 ip 00007f7216cac2fe sp 00007ffc841290d0 error 4 in libavutil.so.56[7f7216ca0000+66000]
[1685399.343779] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[2027927.004345] INFO: NMI handler (perf_event_nmi_handler) took too long to run: 14.015 msecs

Running the latest version on Fedora 35

plexmediaserver-1.25.3.5385-f05b712b6.x86_64

Also seeing this same error (at least judging by my dmesg)

[Fri Jan 7 22:26:18 2022] Plex Transcoder[166428]: segfault at 10 ip 00007f5e25c8b2fe sp 00007fff14b3aa90 error 4 in libavutil.so.56[7f5e25c7f000+66000]
[Fri Jan 7 22:26:18 2022] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Fri Jan 7 22:30:46 2022] Plex Transcoder[183579]: segfault at 10 ip 00007fe4522cb2fe sp 00007ffd76b6d8d0 error 4 in libavutil.so.56[7fe4522bf000+66000]
[Fri Jan 7 22:30:46 2022] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01
[Fri Jan 7 22:36:01 2022] Plex Transcoder[184785]: segfault at 10 ip 00007fc4f319b2fe sp 00007fff35e66560 error 4 in libavutil.so.56[7fc4f318f000+66000]
[Fri Jan 7 22:36:01 2022] Code: 00 ba 18 00 00 00 e8 c1 92 05 00 85 c0 74 11 48 c7 44 24 08 00 00 00 00 31 c0 48 83 c4 10 5b c3 48 8b 44 24 08 48 85 c0 74 ee <48> 8b 4b 10 48 89 48 10 0f 10 03 0f 11 00 48 8b 0b f0 83 41 0c 01

I can capture logs if needed.

Just found this thread. I’m also having this issue. As others have stated, I’m running the latest version.

I have this too. Are we supposed to jump on these threads with a “me too?”

Plex Media Server v1.25.3.5409-f11334058 - Ubuntu PC x86_64 - build: linux-x86_64 debian - GMT -06:00
Linux version: 20.04.3 LTS (Focal Fossa), language: en-US
Processor Intel(R) Core™ i7-3770 CPU @ 3.40GHz
Compiler is - Clang 11.0.1 (https://plex.tv b587490162c22e078c314e3f7dc560c691d126aa)

DEBUG - Jobs: ‘/usr/lib/plexmediaserver/Plex Transcoder’ exit code for process 552487 is -11 (signal: Segmentation fault)
DEBUG - Notifying consumer that data is complete.
DEBUG - Killing job.
DEBUG - Signalling job ID 552487 with 9
DEBUG - Job was already killed, not killing again.
DEBUG - Stopping transcode session 25yqdxp62drcheobj53rlf9a
DEBUG - Streaming Resource: Terminated session 0x7f3b2097bb28:fcqjs2mt77tanoozt4
mqyrk1 with reason Conversion failed. The transcoder process crashed.

dmesg samples:
Plex Transcoder[552487]: segfault at 10 ip 00007f18bc8092fe sp 00007fffde3961a0 error 4 in libavutil.so.56[7f18bc7fd000+66000]
Plex Transcoder[554227]: segfault at 10 ip 00007f56acf322fe sp 00007ffceb0495e0 error 4 in libavutil.so.56[7f56acf26000+66000]

I don’t think the specific invocation or file appears to matter - any audio transcoding is causing this when I play the last ~4 mins of the file. It’s always mkv container, but the audio can be flac, dca, truehd - anything the plex client for LG doesn’t think is valid for directplay. (I’m working on a client profile for LG webOS)

Invocation from logs, just in case:
DEBUG - [Transcode/pthwa9ugug9b7qtummfhqegz/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS=’/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/fb9eae3-4185-linux-x86_64/’ X_PLEX_TOKEN=‘xxxxxxxxxxxxxxxxxxxx’ ‘/usr/lib/plexmediaserver/Plex Transcoder’ ‘-codec:0’ ‘h264’ ‘-codec:1’ ‘dca’ ‘-noaccurate_seek’ ‘-analyzeduration’ ‘20000000’ ‘-probesize’ ‘20000000’ ‘-i’ ‘/mnt/storage/plex/movies/Dark Victory (1939)/Dark Victory.mkv’ ‘-map’ ‘0:0’ ‘-metadata:s:0’ ‘language=eng’ ‘-codec:0’ ‘copy’ ‘-filter_complex’ ‘[0:1] aresample=async=1:ocl=’’‘mono’’’:rematrix_maxval=0.000000dB:osr=48000[0]’ ‘-map’ ‘[0]’ ‘-metadata:s:1’ ‘language=eng’ ‘-codec:1’ ‘libmp3lame’ ‘-q:1’ ‘0’ ‘-segment_format’ ‘mpegts’ ‘-f’ ‘ssegment’ ‘-individual_header_trailer’ ‘0’ ‘-segment_time’ ‘10’ ‘-segment_start_number’ ‘0’ ‘-segment_copyts’ ‘1’ ‘-segment_time_delta’ ‘0.0625’ ‘-segment_list’ ‘http://127.0.0.1:32400/video/:/transcode/session/pthwa9ugug9b7qtummfhqegz/2aa29b2e-5c7b-4267-8c82-01d4abea4a5f/manifest?X-Plex-Http-Pipeline=infinite’ ‘-segment_list_type’ ‘csv’ ‘-segment_list_size’ ‘5’ ‘-segment_list_separate_stream_times’ ‘1’ ‘-segment_list_unfinished’ ‘1’ ‘-max_delay’ ‘5000000’ ‘-avoid_negative_ts’ ‘disabled’ ‘-map_metadata’ ‘-1’ ‘-map_chapters’ ‘-1’ ‘media-%05d.ts’ ‘-start_at_zero’ ‘-copyts’ ‘-vsync’ ‘cfr’ ‘-y’ ‘-nostats’ ‘-loglevel’ ‘quiet’ ‘-loglevel_plex’ ‘error’ ‘-progressurl’ ‘http://127.0.0.1:32400/video/:/transcode/session/pthwa9ugug9b7qtummfhqegz/2aa29b2e-5c7b-4267-8c82-01d4abea4a5f/progress

I am unsure how to provide a sample from the files. I’m googling for it.

If I may add?

There was a bug, which is very visible when transcoding TrueHD → EAC-3 where the transcoder would sometimes crash at about 2 minutes before the end (time marker depends on the file’s bitrate)

This bug has been corrected.

We’re waiting for the next major update to release it.
(Current release - 1.25.3.5409-f11334058 is a hotfix)

1 Like

For me this issue starts right at the start… well, not even the start. The client will just sit for extended periods of time as if it’s loading/buffering and then, in most cases, it will eventually error out that it could not play the media.

Additionally, I don’t believe any of the cases I’ve tried were transcoding to E-AC3 – certainly not all of them.

So the bug is still present in plexmediaserver_1.25.3.5409-f11334058_amd64.deb which is the latest available version?

I know I already said it, but I’m seeing this on any transcode of audio. flac, TrueHD and DCA → EAC-3. (The LG webOS player doesn’t seem to like DTS passthrough either.)

I love the picture on my LG OLED77CXAUA but it doesn’t seem to handle as many codecs as an AppleTV would. I have an updated client profile for it which helped cut down on the need for transcoding, but it’s still required in some cases.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.