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].
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.
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).
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’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:
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)
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)
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.