Opened 17 years ago

Closed 17 years ago

#2035 closed patch (fixed)

The backend does not detect when a transcoding job has died

Reported by: hdtv@… Owned by: cpinkham
Priority: minor Milestone: 0.20
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no


Every now and again the mythtranscode process will die - if it dies on a recording it is usually repeatable.

The problem is the backend still thinks there is a transcoding job in progress and will not start any new jobs.

Ideally the backend should detect that the process has died, mark it as failed, and move on to the next job.

A related issue is that the when the transcoding process has died it is not possible to delete the job in mythfrontend - the only options are to "stop" or "pause", neither of which do anything in this situation.

Workaround - deleting the recording will also delete the transcoding job and the backend will move on to the next job.

Running svn trunk 10407.


Attachments (1)

transcode_jobqueue_status.diff (1.9 KB) - added by Janne <janne-mythtv@…> 17 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 17 years ago by cpinkham

Status: newassigned

I need some more info on this one. Can you send me the mythbackend logs from when this happens? Since you say it is usually repeatable, run mythbackend with the "-v jobqueue" command line option and it should give some more useful debug info. Attach the logs starting at the point you can see mythtranscode running until the point where it looks like mythtranscode has died and myth isn't detecting it. Attach the log here and I'll take a look.

Changed 17 years ago by Janne <janne-mythtv@…>

comment:2 Changed 17 years ago by Janne <janne-mythtv@…>

Type: defectpatch

If the myth_system call returns anything different than "MYTHSYSTEMEXITEXECL_ERROR", "MYTHSYSTEMEXITCMD_NOT_FOUND" or "TRANSCODE_EXIT_RESTART" and mythtrancode wasn't succesful the status isn't changed.

Easiest way to reproduce should be killing mythtranscode.

Attached patch fixes the problem.

comment:3 Changed 17 years ago by cpinkham

Milestone: 0.21

comment:4 Changed 17 years ago by anonymous

Milestone: 0.210.20

Messed this up yesterday, meant to set the milestone to 0.20 since we have a patch now.

comment:5 Changed 17 years ago by cpinkham

Resolution: fixed
Status: assignedclosed

(In [10621]) Apply Janne's patch to fix the JobQueue? where it would not handle the case where mythtranscode died instead of quitting with a proper exit code. This situation led to entries in the queue that could not be deleted except by deleting the actual recording itself.

Closes #2035.

Note: See TracTickets for help on using tickets.