[prev in list] [next in list] [prev in thread] [next in thread]
List: mythtv-dev
Subject: Re: [mythtv] Mythtranscode Segfaulting
From: "Andy Speagle" <sidrew () gmail ! com>
Date: 2007-04-26 16:45:21
Message-ID: 991ceb870704260945q27f94fb6i805bd60ff9390400 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 4/25/07, Michael T. Dean <mtdean@thirdcontact.com> wrote:
>
> On 04/25/2007 12:55 AM, Andy Speagle wrote:
> > Ok...
> >
> > So.. let me take another crack at this... I've downgraded my QT to
> > v3.3.4-r8on Gentoo... and my Mythtranscode is continuing to
> > segfault... here's the
> > latest gdb output:
> >
> > mythtv ~ # gdb mythtranscode -x gdbcommands
> ...
> > (no debugging symbols found)
> ... Really, a backtrace on a build compiled with debugging support is
> much more useful. (And since you're using Gentoo, it should be easy to
> get one next time.) ...
I guess I'm uncertain how to achieve this... but will research it.
> Program received signal SIGFPE, Arithmetic exception.
> > [Switching to Thread -1258027312 (LWP 9518)]
> > 0xb7afb42e in VideoOutput::ApplySnapToVideoRect () from
> > /usr/lib/libmythtv-
> > 0.20.so.0
>
> However, in this case, it's relatively clear what's likely happening
> even without specifics. It looks like you're getting a division by zero
> (with "ydiff / display_video_rect.height()" and/or "xdiff /
> display_video_rect.width()"). While it would be possible to just check
> for zero (or add 1 to the width/height, as in the example patch below)
> to prevent the segfault, most of the code in VideoOutput relies on
> non-zero width and height, so you're likely to just get a segfault
> elsewhere if you don't fix the problem (i.e. figure out why
> display_video_rect isn't getting properly initialized).
>
> I haven't looked to see how display_video_rect gets its values, but
> perhaps someone who knows VideoOutput/mythtranscode can chime in with
> reasons yours wouldn't have been initialized properly--giving it 0 for
> height or width. Guessing... perhaps your transcoding profile is
> misconfigured/corrupt?
>
> Mike
Ok... what would be the best way to recreate my transcoding profiles? .. to
ensure that's not the problem?
Thanks,
Andy
[Attachment #5 (text/html)]
On 4/25/07, <b class="gmail_sendername">Michael T. Dean</b> <<a \
href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>> \
wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;"> On 04/25/2007 12:55 AM, Andy Speagle wrote:<br>> \
Ok...<br>><br>> So.. let me take another crack at this... I've downgraded \
my QT to<br>> v3.3.4-r8on Gentoo... and my Mythtranscode is continuing to<br>> \
segfault... here's the <br>> latest gdb output:<br>><br>> mythtv ~ # gdb \
mythtranscode -x gdbcommands<br>...<br>> (no debugging symbols \
found)<br>... Really, a backtrace on a build compiled with debugging \
support is<br>much more useful. (And since you're using Gentoo, it \
should be easy to <br>get one next time.) ...</blockquote><div><br>I guess I'm \
uncertain how to achieve this... but will research it. </div><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> > Program received signal SIGFPE, Arithmetic \
exception.<br>> [Switching to Thread -1258027312 (LWP 9518)]<br>> 0xb7afb42e in \
VideoOutput::ApplySnapToVideoRect () from<br>> /usr/lib/libmythtv-<br>> \
0.20.so.0 <br><br>However, in this case, it's relatively clear what's likely \
happening<br>even without specifics. It looks like you're getting a \
division by zero<br>(with "ydiff / display_video_rect.height()" and/or \
"xdiff / <br>display_video_rect.width()"). While it would be \
possible to just check<br>for zero (or add 1 to the width/height, as in the example \
patch below)<br>to prevent the segfault, most of the code in VideoOutput relies on \
<br>non-zero width and height, so you're likely to just get a \
segfault<br>elsewhere if you don't fix the problem (i.e. figure out \
why<br>display_video_rect isn't getting properly initialized).<br><br>I \
haven't looked to see how display_video_rect gets its values, but <br>perhaps \
someone who knows VideoOutput/mythtranscode can chime in with<br>reasons yours \
wouldn't have been initialized properly--giving it 0 for<br>height or \
width. Guessing... perhaps your transcoding profile is<br> \
misconfigured/corrupt?<br><br>Mike</blockquote><div><br>Ok... what would be the best \
way to recreate my transcoding profiles? .. to ensure that's not the problem?<br> \
<br> Thanks,<br>
<br>
Andy<br></div></div>
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic