PMS Crash: Plex Commercial Skipper crashes PMS on corrupt video files

Server Version#: 1.30.0.6359
Player Version#: N/A

Plex media server is crashing periodically with similar error messages:

2022-11-12 19:00:30,375 (7000130dd000) : DEBUG (networking:143) - Requesting ‘http://resources-cdn.plexapp.com/hashes.json
2022-11-12 19:00:30,611 (7000130dd000) : ERROR (networking:196) - Error opening URL ‘http://resources-cdn.plexapp.com/hashes.json
2022-11-12 19:00:30,612 (7000130dd000) : CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):

I can see looking at my firewall that it is not getting blocked

Full logs attached
Plex Media Server Logs_2022-11-12_19-00-48.zip (3.7 MB)

The errors you pasted above caught my eye a year or two ago when they started appearing, and after a couple of us bug reported it, we got a testy response along the lines of, is it actually causing a problem? so cosmetic. :slight_smile:

You on the other hand, have significant log filling errors with this episode. Replace it.

Nov 12, 2022 02:32:26.806 [0x7000063a1000] ERROR - IntroDetector: Failed to transcode file (69): /Volumes/Data/videos/TV Shows/Shameless US Season 1 Complete 720p/Shameless.US.S01E00.Sneak.Peak.720p.WEB.DL-NoGRP.mkv
Nov 12, 2022 02:32:26.806 [0x700006942000] DEBUG - Streaming Resource: Terminated session 0x7fd6d7a722a8:380a7acd-1bca-4a67-a316-7c6c51dac207 with reason Conversion failed. The transcoder exited due to an error.

good luck!

Thanks! I removed the file and hopefully that resolves the issue. Suprising that it just recently got corrupted.

Yes I would also find a recently corrupted video file surprising.

So I doubt your file was modified, but the software from Plex has been changing.

I’ve had RAM go bad, and that could always be possibility if this continues, among other things. My RAM in my NAS would work well enough until I copied a large FLAC album. Then some files wouldn’t pass verification afterwards. Without hashes that would have been hard to notice.

Still getting crashes. Any ideas?

Latest crash logs here
Plex Media Server Logs_2022-11-14_16-42-18.zip (4.1 MB)

Both times PMS stopped, it was trying to run the commercial skipper on the same file.

“/Volumes/Data/videos/TV Shows/Gilligan’s Island (1964)/Season 02/Gilligan’s Island (1964) - S02E11 - The Chain of Command (copy 7).ts”

Why do you have 7 copies?

It’s setup to record OTA from HDHR4K all episodes. Is there any reason why Plex would record multiple of the same episode. I had a similar issue many months back which you helped me solve as well. There were multiple files of the same episode and it was the thumbnail generation causing the issue. I’ll delete the offending file to see if it’s resolved.

So it crashed again this morning – this time with a Three Stooges TV recording

All of these crashes have been on files that are at least a year old. While the file is indeed corrupted, Plex should offer better error handling rather than just crashing out.

The Three Stooges (1934) - 1938-05-20 08 00 00 - Healthy Wealthy and Dumb.log (526.0 KB)

1 Like

I gotta heart that log file name.

Looks like it crashed again due to another corrupted file. Source is the same issue with the commercial scanner. Did something change with this latest version? I’m unsure why these files, which are corrupted, are suddently causing PMS to crash. They’ve been on my system of over a year.

1.30.0 does have an updated FFMPEG. Could be due to that. Do you have a small sample file that you can share so we can try to reproduce?

Here is a sample file along with the log files:

Let me know if you have any troubles accessing

That’s interesting info. I just recently noticed that all my recordings since I installed 1.30.0 (Windows 32-bit) still have all their commercials in them. No crashes, just commercials. I today rolled back to 1.29.2.6364, so we’ll see what tonight’s recordings do.

Sure enough, after the rollback, commercial skipping started working again. So it certainly sounds like the upgraded FFMPEG needed to be regression tested a bit more. Perils of installing Plex Pass releases, I suppose.

I had another crash last night due to another corrupted file. Given the amount of recorded TV shows I have, this may take a long time for me to weed out all the corrupted files. Aptly, it’s another 3 Stooges TV show. :slight_smile:

I just updated to the latest version (1.30.0.6406). If I get another crash, I’m going to revert to 1.29 as P2 is none too happy right now.

@vlord3 Are these episodes recorded by Plex DVR? What DVR are you using?

Yes sir. It seems like it started in PMS 1.30.0 from my testing using MacOS-12.6.1 and QTS-4.5.4.
I only tested the sample provided.

[Success] with PMS 1.29.2.6364
[Failure] with PMS 1.30.0.6406

MacOS with PMS 1.30.0.6359-f3f2fcc0a - failure

Inputting the sample provided to Plex Commercial Skipper I get
Segmentation fault: 11

MacOS.Crash.log (17.7 KB)

The Three Stooges (1934) - S1946E07 - G.I. Wanna Home.log (19.0 KB)
when using the command below

FFMPEG_EXTERNAL_LIBS='/Users/nibbles/Library/Application\ Support/Plex\ Media\ Server/Codecs/2427c16-4416-darwin-aarch64/' "/Applications/Plex Media Server.app/Contents/MacOS/Plex Commercial Skipper" "--ini=/Applications/Plex Media Server.app/Contents/Resources/comskip.ini" "--output=/Users/nibbles/Downloads/Archive/output" -t "/Users/nibbles/Downloads/Archive/The Three Stooges (1934) - S1946E07 - G.I. Wanna Home.ts"

QNAP with PMS 1.30.0.6406 - failure

The Three Stooges (1934) - S1946E07 - G.I. Wanna Home.log.zip (26.2 KB)
using the command below

 FFMPEG_EXTERNAL_LIBS='/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex\ Media\ Server/Codecs/2427c16-4411-linux-x86_64/' "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Commercial Skipper" "--ini=/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/comskip.ini" "--output=/share/Video/Brandnew/Archive/output" -t "/share/Video/Brandnew/Archive/The Three Stooges (1934) - S1946E07 - G.I. Wanna Home.ts"

QNAP with PMS 1.29.2.6364 - success

with the last bit of ouput:

7132 Frames Processed
Commercials were not found.

The Three Stooges (1934) - S1946E07 - G.I. Wanna Home.log.zip (26.2 KB)
hey you read this far

FFMPEG_EXTERNAL_LIBS='/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex\ Media\ Server/Codecs/c4efa15-4387-linux-x86_64/' "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Commercial Skipper" "--ini=/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/comskip.ini" "--output=/share/Video/Brandnew/Archive/output" -t "/share/Video/Brandnew/Archive/The Three Stooges (1934) - S1946E07 - G.I. Wanna Home.ts"
1 Like

@MovieFan.Plex - These have all been recorded using Plex DVR.

Perhaps I’ve now expunged all corrupted video files or perhaps the new version solved the issue. Either way, for the first time in over a week I woke up to PMS still running. P2 is now happy again.

1 Like

@vlord3 this problem is fixed in the latest Plex Media Server beta, 1.30.0.6442

I just tested on my Mac against your sample that failed with older ones.
Here is the command I used for my own reference.

FFMPEG_EXTERNAL_LIBS='/Users/nibbles/Library/Application\ Support/Plex\ Media\ Server/Codecs/583b3e4-4434-darwin-aarch64/' "/Applications/Plex Media Server.app/Contents/MacOS/Plex Commercial Skipper" "--ini=/Applications/Plex Media Server.app/Contents/Resources/comskip.ini" "--output=/Users/nibbles/Downloads/Archive" -t "/Users/nibbles/Downloads/Archive/The Three Stooges (1934) - S1946E07 - G.I. Wanna Home.ts"

[snip output]

7132 Frames Processed
Commercials were not found.

@anon18523487 another win for Plex, thank you :100:

1 Like