Transcoder segfault in ld-musl-x86_64.so

Server Version#: 1.40.2.8351
Player Version#: n/a
Host OS: Debian 10.2
Plex running within LXC container

I just noticed daily transcoder segfaults reported in my host’s dmesg log:

[Apr12 03:22] Plex Transcoder[2389706]: segfault at 7fa5a2e9c000 ip 00007fa5a8260204 sp 00007fa5a2ad2968 error 4 in ld-musl-x86_64.so.1[7fa5a821b000+53000]
[  +0.000022] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[  +0.515004] Plex Transcoder[2390129]: segfault at 7f0273313000 ip 00007f027759a204 sp 00007f027176b968 error 4 in ld-musl-x86_64.so.1[7f0277555000+53000]
[  +0.000021] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[Apr12 03:23] Plex Transcoder[2397120]: segfault at 7fb657ca6000 ip 00007fb65e084204 sp 00007fb6597fe968 error 4 in ld-musl-x86_64.so.1[7fb65e03f000+53000]
[  +0.000017] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[Apr12 03:26] Plex Transcoder[2421016]: segfault at 7f9866d28000 ip 00007f986c40d204 sp 00007f98665de968 error 4 in ld-musl-x86_64.so.1[7f986c3c8000+53000]
[  +0.000021] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[  +9.093354] Plex Transcoder[2422135]: segfault at 7ff41bb07000 ip 00007ff422567204 sp 00007ff41d05c968 error 4 in ld-musl-x86_64.so.1[7ff422522000+53000]
[  +0.000023] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0

Found this in Plex Media Server.log which occur at the same time as the dmesg log entries:

Apr 12, 2024 03:22:22.481 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 3062 images, but found 403
Apr 12, 2024 03:22:25.567 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 12097 images, but found 215
Apr 12, 2024 03:22:26.503 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 12282 images, but found 309
Apr 12, 2024 03:22:26.706 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 7 images, but found 1
Apr 12, 2024 03:22:26.800 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 0 images, but found 1
Apr 12, 2024 03:22:27.980 [140659514460984] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally
Apr 12, 2024 03:22:28.494 [140659514460984] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally
Apr 12, 2024 03:22:43.053 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 826 images, but found 1799
Apr 12, 2024 03:22:43.335 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 0 images, but found 1
Apr 12, 2024 03:23:17.081 [140659514460984] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally
Apr 12, 2024 03:23:21.315 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 73 images, but found 10
Apr 12, 2024 03:26:12.412 [140659514460984] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally
Apr 12, 2024 03:26:21.506 [140659514460984] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally
Apr 12, 2024 03:26:23.765 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 36055 images, but found 262
Apr 12, 2024 03:26:25.220 [140659514460984] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally
Apr 12, 2024 03:26:25.499 [140659514460984] ERROR - BaseIndexFrameFileManager: expected 122 images, but found 2

I just turned on debug logging to get more info. I’ll report back with what I find (and try to remember to bump this topic to keep it from closing…).

[sidenote: There are numerous topics related to transcoding segfaults. But they all are closed after no activity within 90 days. This is way too short of a window for meaningful discussion to happen on these sorts of sporadic issues. Should be 6-12mo, imo]

Here are some more logs of this issue (this time with debug logging turned on):

Host dmesg shows 6 segfaults:

[Fri May  3 03:07:17 2024] Plex Transcoder[1878162]: segfault at 7fe723c14000 ip 00007fe728dd5204 sp 00007fe7233fb968 error 4 in ld-musl-x86_64.so.1[7fe728d90000+53000]
[Fri May  3 03:07:17 2024] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[Fri May  3 03:07:21 2024] Plex Transcoder[1881671]: segfault at 7f5a6f400000 ip 00007f5a76c68204 sp 00007f5a6c308968 error 4 in ld-musl-x86_64.so.1[7f5a76c23000+53000]
[Fri May  3 03:07:21 2024] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[Fri May  3 03:07:29 2024] Plex Transcoder[1885415]: segfault at 7f3c816cc000 ip 00007f3c86a7a204 sp 00007f3c80eb3968 error 4 in ld-musl-x86_64.so.1[7f3c86a35000+53000]
[Fri May  3 03:07:29 2024] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[Fri May  3 03:07:31 2024] Plex Transcoder[1886469]: segfault at 7fcff69aa000 ip 00007fcffb483204 sp 00007fcff570a968 error 4 in ld-musl-x86_64.so.1[7fcffb43e000+53000]
[Fri May  3 03:07:31 2024] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[Fri May  3 03:08:49 2024] Plex Transcoder[1915618]: segfault at 7f1e9c6e4000 ip 00007f1ea2881204 sp 00007f1e9e070968 error 4 in ld-musl-x86_64.so.1[7f1ea283c000+53000]
[Fri May  3 03:08:49 2024] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
[Fri May  3 03:12:36 2024] Plex Transcoder[2007330]: segfault at 7f64064f0000 ip 00007f640b937204 sp 00007f6405f26968 error 4 in ld-musl-x86_64.so.1[7f640b8f2000+53000]
[Fri May  3 03:12:36 2024] Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0

Here is the Plex Media Log. The transcoder segmentation faults appear about 17 seconds after the host log entries above. I’ve sanitized this a bit, including removing unrelated entries (DVR, metadata update, etc).
Plex Media Server.log (551.9 KB)

I’m guessing that I have a few recorded video files that have some bad data, but these shouldn’t result in a segfault.

That type error looks more like either the drivers or the codecs didn’t update cleanly (can happen albeit rarely)

Please:

  1. Stop Plex
  2. Go into the Codecs directory
  3. Delete everything EXCEPT the .device_id file (your license)
  4. Now go up and over to Drivers.
  5. Delete everything there
  6. Start PMS.

Retest.

I gave that a try, but it happened again last night:

May 06 03:16:48 pve3 kernel: Plex Transcoder[3406202]: segfault at 7fc8935eb000 ip 00007fc899f3f204 sp 00007fc890360968 error 4 in ld-musl-x86_64.so.1[7fc899efa000+53000]
May 06 03:16:48 pve3 kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May 06 03:16:53 pve3 kernel: Plex Transcoder[3409678]: segfault at 7f04fa46a000 ip 00007f04feae0204 sp 00007f04f98c1968 error 4 in ld-musl-x86_64.so.1[7f04fea9b000+53000]
May 06 03:16:53 pve3 kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May 06 03:16:54 pve3 kernel: Plex Transcoder[3410244]: segfault at 7f9042ed3000 ip 00007f90476d7204 sp 00007f90429f8968 error 4 in ld-musl-x86_64.so.1[7f9047692000+53000]
May 06 03:16:54 pve3 kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May 06 03:18:11 pve3 kernel: Plex Transcoder[3441023]: segfault at 7f8fdce4f000 ip 00007f8fe16eb204 sp 00007f8fdc6e9968 error 4 in ld-musl-x86_64.so.1[7f8fe16a6000+53000]
May 06 03:18:11 pve3 kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May 06 03:22:08 pve3 kernel: Plex Transcoder[3542939]: segfault at 7ffbe4ae3000 ip 00007ffbe7f8d204 sp 00007ffbe34b5968 error 4 in ld-musl-x86_64.so.1[7ffbe7f48000+53000]
May 06 03:22:08 pve3 kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May 06 03:22:20 pve3 kernel: Plex Transcoder[3544628]: segfault at 7f68d416a000 ip 00007f68d7c4b204 sp 00007f68d2c5d968 error 4 in ld-musl-x86_64.so.1[7f68d7c06000+53000]
May 06 03:22:20 pve3 kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0

segfaults2.log (400.3 KB)

Thank you.

ay 06, 2024 03:16:44.452 [140087921883960] DEBUG - BaseIndexFrameFileManager: building index (320x240) for parts for MetadataItem 141831 (Coda)
May 06, 2024 03:16:44.695 [140087921883960] DEBUG - Activity: registered new activity 505adb47-7af6-4ed3-80ea-84499471616d - "Generating video preview thumbnails"
May 06, 2024 03:16:44.695 [140087921883960] DEBUG - [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/ad47460-4673-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:v h264 -skip_frame:v nokey -i "/shared/video/Recorded TV/Star Trek Voyager (1995)/Season 03/Star Trek Voyager (1995) - S03E15 - Coda.ts" -threads 0 -nostats -q 3 -loglevel quiet -filter_complex "[0:V:0] fps=fps=0.500000:round=up,scale=w=320:h=240:force_original_aspect_ratio=decrease [out]" -map "[out]" "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/e/373849e92134c0104e0b9a1d9551f5d81d66fd5.bundle/Contents/Indexes/tmp/img-%06d.jpg" -progressurl http://127.0.0.1:32400/video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress
May 06, 2024 03:16:44.695 [140087921883960] DEBUG - [JobRunner] In directory: "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost/e/373849e92134c0104e0b9a1d9551f5d81d66fd5.bundle/Contents/Indexes"
May 06, 2024 03:16:44.696 [140087921883960] DEBUG - [JobRunner] Jobs: Starting child process with pid 422711
May 06, 2024 03:16:44.700 [140087859936056] DEBUG - Request: [127.0.0.1:47578 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=startup (6 live) #12394c Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.701 [140088048007992] DEBUG - Completed: [127.0.0.1:47578] 206 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=startup (6 live) #12394c 0ms 371 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:44.706 [140087859936056] DEBUG - Request: [127.0.0.1:47578 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=startup (6 live) #1239b2 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.706 [140088045898552] DEBUG - Completed: [127.0.0.1:47578] 206 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=startup (6 live) #1239b2 0ms 371 bytes (pipelined: 2) (range: bytes=0-) 
May 06, 2024 03:16:44.706 [140087859936056] DEBUG - Request: [127.0.0.1:47578 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=opening (6 live) #1239b3 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.707 [140088048007992] DEBUG - Completed: [127.0.0.1:47578] 206 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=opening (6 live) #1239b3 0ms 371 bytes (pipelined: 3) (range: bytes=0-) 
May 06, 2024 03:16:44.782 [140087859936056] DEBUG - Request: [127.0.0.1:47578 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=opened (6 live) #1239b4 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.782 [140088045898552] DEBUG - Completed: [127.0.0.1:47578] 206 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?status=opened (6 live) #1239b4 0ms 371 bytes (pipelined: 4) (range: bytes=0-) 
May 06, 2024 03:16:44.782 [140087859936056] DEBUG - Request: [127.0.0.1:47578 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=0&id=256&codec=h264&type=video (6 live) #1239b5 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.782 [140088048007992] DEBUG - Completed: [127.0.0.1:47578] 404 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=0&id=256&codec=h264&type=video (6 live) #1239b5 0ms 288 bytes (pipelined: 5) (range: bytes=0-) 
May 06, 2024 03:16:44.783 [140087859936056] DEBUG - Request: [127.0.0.1:47586 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=0&id=256&codec=h264&type=video (6 live) #1239b1 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.783 [140088045898552] DEBUG - Completed: [127.0.0.1:47586] 404 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=0&id=256&codec=h264&type=video (6 live) #1239b1 0ms 288 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:44.783 [140087859936056] DEBUG - Request: [127.0.0.1:47590 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=1&id=257&codec=ac3&type=audio (6 live) #1239b8 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.784 [140088048007992] DEBUG - Completed: [127.0.0.1:47590] 404 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=1&id=257&codec=ac3&type=audio (6 live) #1239b8 0ms 288 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:44.784 [140087859936056] DEBUG - Request: [127.0.0.1:47602 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=2&id=258&codec=eac3&type=audio (6 live) #1239bb Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.784 [140088045898552] DEBUG - Completed: [127.0.0.1:47602] 404 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/stream?index=2&id=258&codec=eac3&type=audio (6 live) #1239bb 0ms 288 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:44.967 [140087859936056] DEBUG - Request: [127.0.0.1:47608 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/streamDetail?index=0&id=256&codec=h264&type=video&profile=High&width=10782&height=480&interlaced=0&sar=1280:16173&level=60&frameRate=29.970&closedCaptions=1 (6 live) #1239be Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.968 [140088048007992] DEBUG - Completed: [127.0.0.1:47608] 404 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/streamDetail?index=0&id=256&codec=h264&type=video&profile=High&width=10782&height=480&interlaced=0&sar=1280:16173&level=60&frameRate=29.970&closedCaptions=1 (6 live) #1239be 0ms 288 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:44.968 [140087859936056] DEBUG - Request: [127.0.0.1:47616 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/streamDetail?index=1&id=257&codec=ac3&type=audio&bitrate=192000&language=eng&channels=2&layout=stereo&sampleRate=48000 (6 live) #1239c1 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.968 [140088048007992] DEBUG - Completed: [127.0.0.1:47616] 404 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/streamDetail?index=1&id=257&codec=ac3&type=audio&bitrate=192000&language=eng&channels=2&layout=stereo&sampleRate=48000 (6 live) #1239c1 0ms 288 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:44.968 [140087859936056] DEBUG - Request: [127.0.0.1:47622 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/streamDetail?index=2&id=258&codec=eac3&type=audio&bitrate=191801&language=spa&channels=2&layout=stereo&sampleRate=48000&disp_hearing_impaired=1 (6 live) #1239c4 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.969 [140088045898552] DEBUG - Completed: [127.0.0.1:47622] 404 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress/streamDetail?index=2&id=258&codec=eac3&type=audio&bitrate=191801&language=spa&channels=2&layout=stereo&sampleRate=48000&disp_hearing_impaired=1 (6 live) #1239c4 0ms 288 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:44.971 [140087859936056] DEBUG - Request: [127.0.0.1:47638 (Loopback)] PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?duration=487.587589 (6 live) #1239c7 Signed-in Token (elvisman113) (range: bytes=0-) 
May 06, 2024 03:16:44.971 [140088048007992] DEBUG - Completed: [127.0.0.1:47638] 206 PUT /video/:/transcode/session/bif/505adb47-7af6-4ed3-80ea-84499471616d/progress?duration=487.587589 (6 live) #1239c7 0ms 371 bytes (pipelined: 1) (range: bytes=0-) 
May 06, 2024 03:16:45.667 [140087859936056] DEBUG - [Req#1239cb/Transcode/bif/505adb47-7af6-4ed3-80ea-84499471616d] Activity: updated activity 505adb47-7af6-4ed3-80ea-84499471616d - completed 0.0% - Generating video preview thumbnails
May 06, 2024 03:16:45.838 [140087859936056] DEBUG - [Req#1239d0/Transcode/bif/505adb47-7af6-4ed3-80ea-84499471616d] Activity: updated activity 505adb47-7af6-4ed3-80ea-84499471616d - completed 12.3% - Generating video preview thumbnails
May 06, 2024 03:16:46.496 [140087859936056] DEBUG - [Req#1239d5/Transcode/bif/505adb47-7af6-4ed3-80ea-84499471616d] Activity: updated activity 505adb47-7af6-4ed3-80ea-84499471616d - completed 27.9% - Generating video preview thumbnails
May 06, 2024 03:16:46.995 [140087859936056] DEBUG - [Req#1239da/Transcode/bif/505adb47-7af6-4ed3-80ea-84499471616d] Activity: updated activity 505adb47-7af6-4ed3-80ea-84499471616d - completed 45.2% - Generating video preview thumbnails
May 06, 2024 03:16:47.693 [140087859936056] DEBUG - [Req#1239df/Transcode/bif/505adb47-7af6-4ed3-80ea-84499471616d] Activity: updated activity 505adb47-7af6-4ed3-80ea-84499471616d - completed 54.6% - Generating video preview thumbnails
May 06, 2024 03:16:48.446 [140087859936056] DEBUG - [Req#1239e4/Transcode/bif/505adb47-7af6-4ed3-80ea-84499471616d] Activity: updated activity 505adb47-7af6-4ed3-80ea-84499471616d - completed 56.7% - Generating video preview thumbnails
May 06, 2024 03:16:48.738 [140088052828984] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 422711 is -11 (signal: Segmentation fault)
May 06, 2024 03:16:48.738 [140087921883960] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally

I’m working with the engineer now. We are updating the codecs and transcoder.
:crossed_fingers: it’s an easy fix.

Might you be able to isolate that file should we need a testfile to use?

1 Like

@elvisman113

Just chatted with Transcoder Engineer.

May we have a copy of that file which core dumped (the Voyager one) ?

Yes, I can provide any of these files.

It looks like the one highlighted in this log excerpt is actually a partial recording with zero quality. I can’t even play the file. I’m guessing that might be the case for some of these other files. But, maybe still shouldn’t produce a segfault.

Here’s the file:

thank you.

Can you confirm this 58 MB sample recreates the seg fault?

Hope this gets fixed, I reported myself ages ago and got no where with it.

I see it under the official Plex Docker image running under unRAID, eg:

May  6 03:31:57 Tower kernel: Plex Transcoder[10301]: segfault at 14d6ffce5000 ip 000014d7031cc204 sp 000014d6ff90d968 error 4 in ld-musl-x86_64.so.1[14d703187000+53000] likely on CPU 5 (core 1, socket 0)
May  6 03:31:57 Tower kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May  6 03:33:24 Tower kernel: Plex Transcoder[11965]: segfault at 151c75c5d000 ip 0000151c79150204 sp 0000151c75866968 error 4 in ld-musl-x86_64.so.1[151c7910b000+53000] likely on CPU 5 (core 1, socket 0)
May  6 03:33:24 Tower kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May  6 03:36:53 Tower kernel: Plex Transcoder[15791]: segfault at 1554d5758000 ip 00001554d92dc204 sp 00001554d59f4968 error 4 in ld-musl-x86_64.so.1[1554d9297000+53000] likely on CPU 3 (core 3, socket 0)
May  6 03:36:53 Tower kernel: Code: 75 f4 c3 cc cc cc 48 89 f8 48 83 fa 08 72 14 f7 c7 07 00 00 00 74 0c a4 48 ff ca f7 c7 07 00 00 00 75 f4 48 89 d1 48 c1 e9 03 <f3> 48 a5 83 e2 07 74 05 a4 ff ca 75 fb c3 cc cc 48 89 f8 48 29 f0
May  6 03:36:57 Tower kernel: Plex Transcoder[15899]: segfault at 153d72e89000 ip 0000153d77059204 sp 0000153d738e2968 error 4 in ld-musl-x86_64.so.1[153d77014000+53000] likely on CPU 5 (core 1, socket 0)

This is the same file named in the log above, yes. I’ll put a copy of it elsewhere and see if a separate segfault is generated.

Thanks for your time in looking into this!

EDIT: I should also mention that this same file produced a segfault in the 1st log I uploaded. So yes, it looks like it should reliably produce a segfault.

@e10kstarfire

Might you have a sample big enough to also recreate this?

(that way I won’t be challenged by “bad file” argument … which is a fair argument)

I think this is one of the files that causes the issue Minder (1979) - S08E05 - Guess Who's Coming to Pinner .ts - Google Drive

Here’s another one that caused a segfault in both log files. This one is a full episode and the quality is bad, but it at least displays something:

Thanks for the sample.

That file is grossly damaged.

I played in Celluloid. This is what I got. (notice the box in the lower left corner)
Also notice the video tearing which is a strong indication of damage

This is my copy

Yeah, I think all these files have issues like that. Garbage-in, garbage-out :slight_smile:

Maybe this is worth bringing up with the ffmpeg folks. I would think they’d prefer a reasonable error code to a segfault.

EDIT: I should add too that all these are recorded OTA with an HDHomeRun. So, it’s not surprising that there are some with significant damage.

When I had HDHomeRun, even with the one channel I could get (I live out in Amish Country and at the base of a mountain), My signal strength & quality were better than that. (HDHR will let you see all “signal strength” parameters. Watch out for too many splitters and low quality amps (if you use either). The old analog splitters don’t work well for digital; too lossy.

1 Like

Have you tested my file, playback seems ok?

@e10kstarfire

I’m sorry for being behind. I just tested your files and had some alarming results.

  1. First play of the file gave a S4032 (manifest) error
  2. I stopped plex
  3. Moved that install off to the side so I could compare later.
  4. Installed 1.32.8
  5. Played it again – SUCCESS
  6. Upgraded to 1.40.2 – SUCCESS

Comparing the two – IDENTICAL codecs

[chuck@lizum ad47460-4673-linux-x86_64.2043]$ ls -la
total 6796
drwxr-xr-x 2 chuck chuck    4096 May  7 16:15 ./
drwxr-xr-x 3 chuck chuck      57 May  7 16:15 ../
-rw-r--r-- 1 chuck chuck  203944 May  7 16:15 libaac_encoder.so
-rw-r--r-- 1 chuck chuck 1596512 May  7 16:15 libh264_decoder.so
-rw-r--r-- 1 chuck chuck 1509952 May  7 16:15 libhevc_decoder.so
-rw-r--r-- 1 chuck chuck 1821688 May  7 16:15 liblibx264_encoder.so
-rw-r--r-- 1 chuck chuck  124984 May  7 16:15 libmp2_decoder.so
-rw-r--r-- 1 chuck chuck  553184 May  7 16:15 libmpeg2video_decoder.so
-rw-r--r-- 1 chuck chuck 1132432 May  7 16:15 libvc1_decoder.so
[chuck@lizum ad47460-4673-linux-x86_64.2044]$ pwd
/usb/plex/Plex Media Server/Codecs/ad47460-4673-linux-x86_64
[chuck@lizum ad47460-4673-linux-x86_64.2045]$ cd /usb/plex-1.40.2/Plex\ Media\ Server/Codecs/ad47460-4673-linux-x86_64/
[chuck@lizum ad47460-4673-linux-x86_64.2046]$ ls -la
total 9644
drwxr-xr-x 2 chuck chuck    4096 Mar 15 16:29 ./
drwxr-xr-x 4 chuck chuck     145 Mar 15 16:29 ../
-rw-r--r-- 1 chuck chuck  203944 Mar 15 16:29 libaac_encoder.so
-rw-r--r-- 1 chuck chuck  138744 Mar 15 16:29 libac3_decoder.so
-rw-r--r-- 1 chuck chuck  300568 Mar 15 16:29 libdca_decoder.so
-rw-r--r-- 1 chuck chuck 1596512 Mar 15 16:29 libh264_decoder.so
-rw-r--r-- 1 chuck chuck 1509952 Mar 15 16:29 libhevc_decoder.so
-rw-r--r-- 1 chuck chuck 1821688 Mar 15 16:29 liblibx264_encoder.so
-rw-r--r-- 1 chuck chuck  124984 Mar 15 16:29 libmp2_decoder.so
-rw-r--r-- 1 chuck chuck  553184 Mar 15 16:29 libmpeg2video_decoder.so
-rw-r--r-- 1 chuck chuck  772640 Mar 15 16:29 libmpeg4_decoder.so
-rw-r--r-- 1 chuck chuck 1132432 Mar 15 16:29 libvc1_decoder.so
-rw-r--r-- 1 chuck chuck 1695992 Mar 15 16:29 libvp9_decoder.so
[chuck@lizum ad47460-4673-linux-x86_64.2047]$ 

Likewise the XML is identical

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="testfiles" librarySectionUUID="e9e9a431-d384-41bd-b718-be77f4f48595" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1713446878">
<Video ratingKey="39" key="/library/metadata/39" guid="com.plexapp.agents.none://ada6fbf2cda709865e06a672754096e3baa81aa4?lang=xn" type="movie" title="Minder (1979) - S08E05 - Guess Who's Coming to Pinner " librarySectionTitle="testfiles" librarySectionID="1" librarySectionKey="/library/sections/1" subtype="clip" summary="" year="2024" thumb="/library/metadata/39/thumb/1715112607" art="/library/metadata/39/art/1715112607" duration="3892706" originallyAvailableAt="2024-05-07" addedAt="1715111516" updatedAt="1715112607" createdAtAccuracy="epoch" createdAtTZOffset="-14400">
<Media id="39" duration="3892706" bitrate="2126" width="720" height="576" aspectRatio="1.33" audioChannels="2" audioCodec="mp2" videoCodec="mpeg2video" videoResolution="576" container="mpegts" videoFrameRate="PAL" videoProfile="main">
<Part accessible="1" exists="1" id="39" key="/library/parts/39/1715111516/file.ts" duration="3892706" file="/glock/media/testfiles/Minder (1979) - S08E05 - Guess Who's Coming to Pinner .ts" size="1034511548" container="mpegts" packetLength="188" videoProfile="main">
<Stream id="226" streamType="1" codec="mpeg2video" index="0" bitrate="1870" anamorphic="1" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="576" codedWidth="720" colorRange="tv" frameRate="25.000" height="576" level="8" pixelAspectRatio="16:15" profile="main" refFrames="1" scanType="progressive" streamIdentifier="256" width="720" displayTitle="480p (MPEG2VIDEO)" extendedDisplayTitle="480p (MPEG2VIDEO)"> </Stream>
<Stream id="227" streamType="2" selected="1" codec="mp2" index="1" channels="2" bitrate="192" language="English" languageTag="en" languageCode="eng" audioChannelLayout="stereo" samplingRate="48000" streamIdentifier="257" displayTitle="English (MP2 Stereo)" extendedDisplayTitle="English (MP2 Stereo)"> </Stream>
<Stream id="228" streamType="2" codec="mp2" index="2" channels="1" bitrate="64" language="English" languageTag="en" languageCode="eng" audioChannelLayout="mono" samplingRate="48000" streamIdentifier="258" displayTitle="English (MP2 Mono)" extendedDisplayTitle="English (MP2 Mono)"> </Stream>
<Stream id="229" streamType="3" codec="dvb_subtitle" index="3" language="English" languageTag="en" languageCode="eng" streamIdentifier="259" displayTitle="English (DVB_SUBTITLE)" extendedDisplayTitle="English (DVB_SUBTITLE)"> </Stream>
</Part>
</Media>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

The only difference here is the completely fresh download of the codecs.

Would you be willing to

  1. Stop Plex
  2. Get into the Codecs directory
  3. Delete the sub-directory which contains the codecs ad47460-4673-linux-x86_64
  4. Start Plex
  5. Let it download fresh codecs.

Hi, thanks for testing.

I run Plex in the official PMS Docker under unRAID so it should have fresh codecs from the container I believe?

But I can give it a try if you like?

Please do try as I ask.

I ask because the Image (what you update) only brings the core software.

Codecs are downloaded per user (licensing) and stored in /config/Library/Application Support/Plex Media Server/Codecs

you might update the image/container several times without codecs being touched