[mythtv] cvs mythfrontend freezing at end of _some_ recordings (with backtrace)

Risto Treksler risto at elkhornbanff.ca
Fri Feb 18 04:20:47 UTC 2005


Hi,

This is what's happening here
does it sound familiar?

While the 4 second freeze is gone from the end of all recordings
i finally got another recording that's freezing at the end of playback

i have tried playing the same recording may times and it freezes a frame for
anywhere from 15 -30 seconds

the frame that freezes is not at the end of the file
but is the last frame before the final commercial
which starts at 26:28 of 29:56 and goes right to the end

so it's looks like a problem with automatically skipping commercials
that are at the end of a recording

i loaded the cutlist in the "edit recording" screen
and it still froze in the same spot upon playback

there is a cutpoint at 26:27.02 and another at 29:53.02
with a commercial in between

29:53.02 is also the very end of the recording in the editor
(which, as an aside, is different than 29:56 
that is reported by pressing "i" while watching a recording)

the freezing goes away if I delete the 29:53.02 cutpoint
in the "edit recording" screen!!

(and it comes back if i clear the cutlist, 
allowing automatic commercial skip to take over)

my original guess was that
when it skips through the final commercial in a recording with a cutlist, 
where there is a cutpoint to "delete before this frame" at eof
or when it skips through the the final commercial of that recording
when the cutlist isn't loaded
it tries to start the playback again right at the end of the file


It's weird that most other recordings with similar 
cutlists (ie right at the very end)
don't freeze, and that I can't manually create a cutlist to
reproduce the problem

I can't even reproduce the problem by manually creating the exact same cutlist 
in that same recording at the exact same points that i would get if i just 
loaded it  with the "z" key.

so it must be a problem with the commercial flagging itself
maybe it's flagging the end of the last commercial past end of file in some 
recordings?

this is the cutlist that i get if i autoload it
0-887
15619-19089
27092-32165
47612-53853
this puts the end of the last commercial at 29:56.90? (@29.97fps)

if iedit the recording and delete the automatically loaded cutpoint at the end
and manually add a cutpoint to the end, i get:
0-887
15619-19089
27092-32165
47612-53792
which puts the last frame at 29:54.86?


with another recording the cutlist is
7663-10233
21247-25915
40978-53487
even after deleting and manually putting in the last cutpoint


so, i think that mythcommflag is occasionally flagging commercials to end past 
the end of the show, but i could be totally off base here.


It seems only some cutlists generated with mythcommflag
exhibit the symptoms, so it might me worth mentioning that when 0.17 came out 
i switched to using the "All" detection method.


Risto


(gdb) run
Starting program: /usr/local/bin/mythfrontend
[Thread debugging using libthread_db enabled]
[New Thread 1099055232 (LWP 14781)]
[New Thread 1110543280 (LWP 14788)]

Program received signal SIG33, Real-time event 33.
2005-02-17 19:10:28.567 mythfrontend version: 0.17.20050130-1 www.mythtv.org
2005-02-17 19:10:28.567 Enabled verbose msgs : important general
2005-02-17 19:10:30.875 Switching to square mode (G.A.N.T.)
[New Thread 1124174768 (LWP 14793)]
2005-02-17 19:10:32.639 Joystick disabled.
[Thread 1124174768 (LWP 14793) exited]
2005-02-17 19:10:32.814 Registering Internal as a media playback plugin.
Couldn't save cache cache 
image: /home/stephy/.mythtv/themecache/G.A.N.T..1600.1200/status-bar.png
2005-02-17 19:10:33.544 Starting media monitor.
[New Thread 1124174768 (LWP 14794)]
2005-02-17 19:10:53.323 All Programs
2005-02-17 19:10:57.491 Connecting to backend server: 192.168.2.10:6543 (try 1 
of 5)
2005-02-17 19:10:57.501 Using protocol version 14
[New Thread 1270840240 (LWP 14821)]
[New Thread 1292295088 (LWP 14822)]
[Thread 1292295088 (LWP 14822) exited]
[Thread 1270840240 (LWP 14821) exited]
[New Thread 1270840240 (LWP 14823)]
[New Thread 1292295088 (LWP 14825)]
[Thread 1292295088 (LWP 14825) exited]
[Thread 1270840240 (LWP 14823) exited]
[New Thread 1270840240 (LWP 14829)]
[New Thread 1292295088 (LWP 14830)]
[Thread 1292295088 (LWP 14830) exited]
[Thread 1270840240 (LWP 14829) exited]
[New Thread 1270840240 (LWP 14831)]
[New Thread 1292295088 (LWP 14833)]
[New Thread 1301957552 (LWP 14834)]
[Thread 1292295088 (LWP 14833) exited]
[Thread 1270840240 (LWP 14831) exited]
[New Thread 1292295088 (LWP 14835)]
[New Thread 1310350256 (LWP 14836)]
2005-02-17 19:11:14.422 Opening audio device '/dev/dsp'.
2005-02-17 19:11:14.422 Opening OSS audio device '/dev/dsp'.
2005-02-17 19:11:14.423 WARNING: something is currently using: /dev/dsp, 
retrying.
2005-02-17 19:11:18.982 Using XV port 105
2005-02-17 19:11:19.490 Changing from None to WatchingPreRecorded
[New Thread 1270840240 (LWP 14844)]
2005-02-17 19:11:19.513 Realtime priority would require SUID as root.
2005-02-17 19:11:20.244 Video timing method: USleep with busy wait
[Thread 1270840240 (LWP 14844) exited]
[Thread 1292295088 (LWP 14835) exited]
[Thread 1310350256 (LWP 14836) exited]
2005-02-17 19:11:51.344 Changing from WatchingPreRecorded to None
2005-02-17 19:11:51.369 Changing from None to None
[Thread 1301957552 (LWP 14834) exited]
[New Thread 1301957552 (LWP 14876)]
[New Thread 1310350256 (LWP 14877)]

Program received signal SIGINT, Interrupt.
[Switching to Thread 1099055232 (LWP 14781)]
0xffffe410 in ?? ()
Current language:  auto; currently c
(gdb) thread apply all bt full

Thread 18 (Thread 1310350256 (LWP 14877)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x4e1a5298 in ?? ()
No symbol table info available.
#2  0x404eccac in ?? () from /usr/local/lib/libmythtv-0.17.so.0
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.
#4  0x41597266 in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#5  0x415cd12a in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#6  0x4030e3f5 in USleepVideoSync::WaitForFrame (this=0x82498f0, sync_delay=0) 
at vsync.cpp:686
No locals.
#7  0x401e4683 in NuppelVideoPlayer::AVSync (this=0x4c1158c8) at 
NuppelVideoPlayer.cpp:1391
        diverge = 0
        buffer = (VideoFrame *) 0x833b0a8
#8  0x401e5780 in NuppelVideoPlayer::OutputVideoLoop (this=0x4c1158c8) at 
NuppelVideoPlayer.cpp:1630
        frame = (VideoFrame *) 0x833b0a8
        temp_speed = 1
        fr_int = 33366
#9  0x401e5a62 in NuppelVideoPlayer::kickoffOutputVideoLoop 
(player=0x4c1158c8) at NuppelVideoPlayer.cpp:1699
        nvp = (NuppelVideoPlayer *) 0x4c1158c8
#10 0x414033dd in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#11 0x415d3d9e in clone () from /lib/tls/libc.so.6
No symbol table info available.

Thread 17 (Thread 1301957552 (LWP 14876)):
#0  0xffffe410 in ?? ()
No symbol table info available.
#1  0x4d9a4248 in ?? ()
No symbol table info available.
#2  0x0000070d in ?? ()
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.
#4  0x41405d7c in pthread_cond_timedwait@@GLIBC_2.3.2 () 
from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x41168b72 in QWaitCondition::wait () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x0822b850 in ?? ()
No symbol table info available.
#7  0x413216c4 in qt_driver_extension_dict () 
from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#8  0x4d9a4248 in ?? ()
No symbol table info available.
#9  0x41167542 in QMutex::unlock () from /usr/lib/qt3/lib/libqt-mt.so.3
No symbol table info available.
#10 0x4c109960 in ?? ()
No symbol table info available.
#11 0x28eb4fb0 in ?? ()
No symbol table info available.
#12 0x42154ef6 in ?? ()
No symbol table info available.
#13 0x28eb4fb0 in ?? ()
No symbol table info available.
#14 0x42154ef6 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#15 0x000a529e in ?? ()
No symbol table info available.
#16 0x00000000 in ?? ()
No symbol table info available.
#17 0x404eccac in ?? () from /usr/local/lib/libmythtv-0.17.so.0
No symbol table info available.
#18 0x4c115a78 in ?? ()
No symbol table info available.
#19 0x00000000 in ?? ()
No symbol table info available.
#20 0x4d9a4338 in ?? ()
No symbol table info available.
#21 0x401e16fb in NuppelVideoPlayer::GetFrame (this=0x80, onlyvideo=160, 
unsafe=false) at NuppelVideoPlayer.cpp:821
No locals.
Previous frame inner to this frame (corrupt stack?)
#0  0xffffe410 in ?? ()



On Wednesday 16 February 2005 04:18 pm, Risto Treksler wrote:
> Hi
>
> I tested with current CVS and so far no more freezes at the end of the
> recordings.
>
> Thank you for the prompt fixes.
>
> Risto.
>
> On Tuesday 15 February 2005 11:13 am, Isaac Richards wrote:
> > On Tuesday 15 February 2005 01:10 pm, Tony Lill wrote:
> > > Risto Treksler <risto at elkhornbanff.ca> writes:
> > > > if i press "esc" or "pause" while the video is frozen
> > > > then the frontend hangs and needs to be killed
> > > > the terminal is full of
> > > > 2005-02-13 06:17:33.323 Waited too long for decoder to pause
> > > > 2005-02-13 06:17:34.333 Waited too long for decoder to pause
> > > > 2005-02-13 06:17:35.344 Waited too long for decoder to pause
> > > > 2005-02-13 06:17:36.353 Waited too long for decoder to pause
> > > > 2005-02-13 06:17:37.363 Waited too long for decoder to pause
> > >
> > > For what it's worth, this is not new in 0.17. In 0.16, and possibly
> > > before, If I hit esc at about the same time the recording was ending,
> > > I would get the same thing. I couldn't do it on demand, but the
> > > vulnerable window was big enough that it happened once or twice a
> > > week.
> > >
> > > I guess this new stalling problem just gave more people the
> > > opportunity to enjoy the hangs....
> >
> > And again, it should be fixed in CVS.  Please test.
> >
> > Isaac
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

-- 
Risto Treksler
Elkhorn Lodge
Banff, Alberta, Canada


More information about the mythtv-dev mailing list