Modify

Opened 14 months ago

Last modified 14 months ago

#12879 infoneeded_new Bug Report - Crash

Transcoding failed for <filename> with error 139

Reported by: Rick Steeves <mythtv.org@…> Owned by: jyavenard
Priority: minor Milestone: unknown
Component: MythTV - Mythtranscode Version: 0.28.0
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I am attempting to use the removecommercials script on the backend, and it fails part way through, without completing: mythtranscode --honorcutlist --showprogress --chanid $CHANID --starttime $STARTTIME -o $VIDEODIR/$FILENAME.tmp

Actual command: mythtranscode --honorcutlist --showprogress --chanid 2501 --starttime 20151021103000 -o /data/mythtv/2501_20151021063000.mpg.tmp

The file gets created and the process works for a while, but fails: -rw-r--r-- 1 root root 3335990440 Sep 13 11:04 /data/mythtv/2501_20151021063000.mpg -rw-r--r-- 1 root root 81690762 Sep 15 20:33 /data/mythtv/2501_20151021063000.mpg.tmp

From the script: ./removecommercials2 /data/mythtv 2501_20151021063000.mpg 2501 20151021103000

Transcoding ... 2016-09-15 20:33:22.531859 C mythtranscode version: fixes/0.28 [v28.0-35-g812ec08] www.mythtv.org 2016-09-15 20:33:22.531941 C Qt version: compile: 5.6.1, runtime: 5.6.1 2016-09-15 20:33:22.793613 E RecBase?[NULL](): SetOption?(): Unknown int option: videocodec: 0 2016-09-15 20:33:22.974437 E MythSystemEventHandler?: SendMythSystemRecEvent?() called with empty RecordingInfo? * Error in `mythtranscode': double free or corruption (out): 0x00007fe3609992f0 *

Run directly: mythtranscode --honorcutlist --showprogress --chanid 2501 --starttime 20151021103000 -o /data/mythtv/2501_20151021063000.mpg.tmp 2016-09-15 21:29:52.392124 C mythtranscode version: fixes/0.28 [v28.0-35-g812ec08] www.mythtv.org 2016-09-15 21:29:52.392207 C Qt version: compile: 5.6.1, runtime: 5.6.1 2016-09-15 21:29:53.716723 E RecBase?[NULL](): SetOption?(): Unknown int option: videocodec: 0 2016-09-15 21:29:53.884963 E MythSystemEventHandler?: SendMythSystemRecEvent?() called with empty RecordingInfo? Segmentation fault (core dumped)

I am running CentOS7. The system has 2 GB of RAM.

Attachments (4)

backtrace.txt (136 bytes) - added by Rick Steeves <mythtv.org@…> 14 months ago.
Backtrace
version.txt (958 bytes) - added by Rick Steeves <mythtv.org@…> 14 months ago.
MythTV version
memorymap.txt (80.0 KB) - added by Rick Steeves <mythtv.org@…> 14 months ago.
MemoryMap? Output
gdb.txt (5.2 KB) - added by Rick Steeves <mythtv.org@…> 14 months ago.
GDB output

Download all attachments as: .zip

Change History (9)

Changed 14 months ago by Rick Steeves <mythtv.org@…>

Backtrace

Changed 14 months ago by Rick Steeves <mythtv.org@…>

MythTV version

Changed 14 months ago by Rick Steeves <mythtv.org@…>

MemoryMap? Output

comment:1 Changed 14 months ago by stuarta

  • Status changed from new to infoneeded_new

If you can reproduce it by running the transcode binary directly, then can you grab a full backtrace as described in

https://www.mythtv.org/wiki/Debugging

Thanks Stuart

comment:2 Changed 14 months ago by Rick Steeves <mythtv.org@…>

I can reproduce by running mythtranscode directly. I've managed to get mythtv-debug installed, but I'm having problems translating the Debugging page for exactly what I would do when running mythtranscode with command-line parameters?

My best guess was this: gdb "mythtranscode --honorcutlist --showprogress --chanid 2501 --starttime 20151021103000 -o /data/mythtv/2501_20151021063000.mpg.tmp" -x ${HOME}/gdbcommands

after the creation of the gdbcommands file. I get this: gdb "mythtranscode --honorcutlist --showprogress --chanid 2501 --starttime 20151021103000 -o /data/mythtv/2501_20151021063000.mpg.tmp" -x ${HOME}/gdbcommands

GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <​http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <​http://www.gnu.org/software/gdb/bugs/>... mythtranscode --honorcutlist --showprogress --chanid 2501 --starttime 20151021103000 -o /data/mythtv/2501_20151021063000.mpg.tmp: No such file or directory. No symbol table is loaded. Use the "file" command. Breakpoint 1 (qFatal) pending. /root/gdbcommands:8: Error in sourced command file: No executable file specified. Use the "file" or "exec-file" command.

comment:3 Changed 14 months ago by stuarta

In your gdb command file replace the following (this is what's shown in the debugging page)

set args --logpath /tmp -v general

with

set args --honorcutlist --showprogress --chanid 2501 --starttime 20151021103000 -o /data/mythtv/2501_20151021063000.mpg.tmp

Then run gdb as

$ gdb mythtranscode -x ${HOME}/gdbcommands

The way you were trying to run it, means gdb was looking for a program called "mythtranscode --honorcutlist --showprogress --chanid 2501 --starttime 20151021103000 -o /data/mythtv/2501_20151021063000.mpg.tmp"

rather than "mythtranscode"

Regards Stuart

comment:4 Changed 14 months ago by J.Pilk@…

The script uses the 'mythtranscode -o' option which has apparently changed in 0.28

#12845 may well be related.

Changed 14 months ago by Rick Steeves <mythtv.org@…>

GDB output

comment:5 Changed 14 months ago by Rick Steeves <mythtv.org@…>

Well, the note on the change of mythtranscode to delete the old file (or save it as .old from the setup option) clarifies why my file keeps getting deleted! A separate problem, but helpful information nonetheless.

While watching TV I deleted the example I was using, so I've moved on to another similar file (both The Andy Griffin Show in B&W). Still fails. Output attached.

Command-line details modified (and updated in the gdb file) # Deputy Otis (Note +5 hour offset) /usr/local/bin/removecommercials2 /data/mythtv 2501_20151027060000.mpg 2501 20151027100000 mythtranscode --honorcutlist --showprogress --chanid 2501 --starttime 20151027100000 -o /data/mythtv/2501_20151027060000.mpg.tmp gdb mythtranscode -x ${HOME}/gdbcommands

Add Comment

Modify Ticket

Action
as infoneeded_new The owner will remain jyavenard.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.