Mailing List Archive

Ticket #12879: Transcoding failed for <filename> with error 139
#12879: Transcoding failed for <filename> with error 139
---------------------------------------------+-----------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Keywords:
Ticket locked: 0 |
---------------------------------------------+-----------------------
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.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+---------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+---------------------------
Changes (by Rick Steeves <mythtv.org@…>):

Attachment "backtrace.txt" added

https://code.mythtv.org/trac/raw-attachment/ticket/12879/backtrace.txt

Backtrace

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+---------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+---------------------------
Changes (by Rick Steeves <mythtv.org@…>):

Attachment "version.txt" added

https://code.mythtv.org/trac/raw-attachment/ticket/12879/version.txt

MythTV version

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+---------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+---------------------------
Changes (by Rick Steeves <mythtv.org@…>):

Attachment "memorymap.txt" added

https://code.mythtv.org/trac/raw-attachment/ticket/12879/memorymap.txt

MemoryMap Output

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+--------------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+--------------------------------
Changes (by stuarta):

* status: new => infoneeded_new


Comment:

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

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+--------------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+--------------------------------

Comment (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.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+--------------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+--------------------------------

Comment (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

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+--------------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+--------------------------------

Comment (by J.Pilk@…):

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

#12845 may well be related.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+--------------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+--------------------------------
Changes (by Rick Steeves <mythtv.org@…>):

Attachment "gdb.txt" added

https://code.mythtv.org/trac/raw-attachment/ticket/12879/gdb.txt

GDB output

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+--------------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: jyavenard
Type: Bug Report - Crash | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------------------+--------------------------------

Comment (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

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #12879: Transcoding failed for <filename> with error 139 [ In reply to ]
#12879: Transcoding failed for <filename> with error 139
-----------------------------------------+---------------------------
Reporter: Rick Steeves <mythtv.org@…> | Owner: JYA
Type: Bug Report - Crash | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.28.0
Severity: medium | Resolution: Abandoned
Keywords: | Ticket locked: 0
-----------------------------------------+---------------------------
Changes (by Stuart Auchterlonie):

* status: infoneeded_new => closed
* resolution: => Abandoned


Comment:

Closing old tickets.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12879#comment:6>
MythTV <http://www.mythtv.org>
MythTV Media Center