Detecting commercials Gets Stuck if Recording is deleted before detect completion

Diagnostic Log ebe4823f-8324-48d5-a245-d024feb42fc2

I noticed occasionally when I delete a program before Commercial detection is complete. Detection gets stuck on that deleted file. And the only way I seem to be able to get it unstuck and to restart the whole server.

I delete the file and then empty trash immediately. This is when the process usually gets stuck. Not every time just occasionally.
I have never had it happen if I wait for the process to complete before deleting it.
Maybe there needs to be a change to stop the deletion of programs before commercial detect is complete?
Unfortunately or fortunately I am in a household with 3 users and they tend to delete before detect is completed.

Added note commercial detect hung for 6 hours.

In the past when I have done that, comskip will eventually fail because the file was deleted.
May have taken up to ten minutes, don't remember exactly.

But I know what you're saying. For that time while comskip is trying to read a deleted file, it cannot comskip the next recording in the queue.

I've had random hangs sometimes, and wished the act of deleting (not emptying trash also) the show would cancel the comskip. really prioritization of any kind would go along way. even a simple toggle for shows or channels that will only do comskip if server is idle, or <x threads running.

Ya mine hung for 6 hours.
I tried renaming the commskip file and disabling the commercial detect feature and it didn't help.
It just now finally moved on from that file almost a 9 hour hang.

The issue doesn't have anything to do with the size nor that it was deleted when it was still processing. There is something in the recorded video that has caused comskip to get stuck in a loop and never complete. We'll need to see a recording where this happens so we can run it in a debugger to diagnose what is getting caught up to fix it.

Ok if I get another error and catch it before the file is deleted will send.
Like you told me after 8 hours the commercial detect failed out and moved on to the next file.
So I know after 8 hours it will resolve even with a corrupt file.

Thanks! Support is Awesome here. :+1:

1 Like