Server Version#: 1.30.0.6359
Player Version#: Mac, Version 1.57.1.3358-5fd2a504
Please let me know if there’s a core file (and location) to pass to you? Or any other logs you need?
[Nov12 00:09] Plex Transcoder[16605]: segfault at 7f779b3e4000 ip 00007f779e7e1204 sp 00007f779ad7f948 error 4 in ld-musl-x86_64.so.1[7f779e79c000+53000]
I’ll keep it in mind and turn on Debug, in case it happens again. It’s one off so far. Sorry about that. I’ve mixed Debug and Verbose in terms of which I shouldn’t have on when uploading files…
As for the directories, this is very interesting. I know for a fact that I have far less than that. My Plex server only has TV shows, Movies, and Documentaries at the moment - music isn’t added.
With those 3, I have just under 800 directories in total.
$ find . -type d | wc -l
767
Even if my music was included, that would add another ~4700 directories.
I’d be interested to troubleshoot why Plex thinks I have over 65k directories… Maybe there’s some corruption or issue ?
Seeing you don’t have that. The next question I ask is
“Where is the transcoder temp directory pointed to?”
How it works is:
You select a video to play
PMS sees that it contains Dolby audio.
It makes the directories for the EAE (EasyAccessEncoder – from Dolby) and sets a watch point (inotify)
As the transcoder runs, and the EAE runs (independently), PMS & the transcoder & EAE all stay in sync through inotify.
When it’s time (PMS notified both video and audio blocks are done), it muxes them together to send out
The failure comes when the video arrives but there’s no audio file
This happens when
– sync with EAE is lost due to inotify failure
– EAE couldn’t write the WAV audio out for PMS to read.
Thanks! That’s interesting. I wonder if it’ll trigger another thumbnail creation attempt at some point and hit this. I have DEBUG enabled and will keep an eye out.
Segfault happened again around the same time at midnight. This time with debug logs enabled.
[Nov13 00:18] Plex Transcoder[22525]: segfault at 7fc90d47a000 ip 00007fc9101cd204 sp 00007fc90c65a948 error 4 in ld-musl-x86_64.so.1[7fc910188000+53000]
It looks like it did crash when generating video preview thumbnails
Nov 13, 2022 00:18:36.900 [0x7ff6fa001b38] DEBUG - [Req#1280/Transcode/bif/921b1032-1cbb-4e84-a57a-68f2bec11476] Activity: updated activity 921b1032-1cbb-4e84-a57a-68f2bec11476 - completed 56.5% - Generating video preview thumbnails
Nov 13, 2022 00:18:37.400 [0x7ff6fa001b38] DEBUG - [Req#1281/Transcode/bif/921b1032-1cbb-4e84-a57a-68f2bec11476] Activity: updated activity 921b1032-1cbb-4e84-a57a-68f2bec11476 - completed 59.6% - Generating video preview thumbnails
Nov 13, 2022 00:18:38.165 [0x7ff6fef3bb38] DEBUG - Jobs: '/volume1/@appstore/PlexMediaServer/Plex Transcoder' exit code for process 22506 is -11 (signal: Segmentation fault)
Nov 13, 2022 00:18:38.165 [0x7ff6fb989b38] ERROR - BaseIndexFrameFileManager: transcoder exited abnormally
I don’t believe so. I didn’t notice any segfaults in dmesg until yesterday.
I can downgrade and check if you need me to, provided there aren’t any major risks to downgrade, and … if I can find that version (Synology DSM 7), but yea dmesg looks clean until I upgraded PMS ~2 days ago.
I opened the .avi in VLC, and it looks totally corrupt/messed up.
I’m not sure if there’s something else the transcoder can do instead of segfault. If not, then yea we can close this off… If yes, I have a 5 minute snippet done via ffmpeg. A lot of missing VOL header errors, but I guess that’s expected.
And deleting that .avi stopped the daily segfaults.
I just kept this open in case you thought there’s a need to add some checks to the transcoder, so that it would gracefully stop or error out when it gets such a mangled video, instead of segfaulting.