[mythtv] Mythfrontend dies (backtrace attached)

Colin Cross colin at colincross.com
Wed Mar 17 16:56:14 EST 2004


Have you checked dmesg to see if its running out of memory?

Quoting Jon Whitear <mythtv at whitear.org>:

> It's back to just dying! There's no backtrace as there's no stack:-
> 
> teleputer root # gdb mythfrontend
> GNU gdb 6.0
> Copyright 2003 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
> library "/lib/libthread_db.so.1".
> 
> (gdb) handle SIG32 pass noprint nostop
> Signal        Stop      Print   Pass to program Description
> SIG32         No        No      Yes             Real-time event 32
> (gdb) run
> Starting program: /usr/bin/mythfrontend
> 2004-03-18 08:36:31 mythfrontend version: 0.14.20040123-1 www.mythtv.org
> 2004-03-18 08:36:31 Enabled verbose msgs : important general
> 2004-03-18 08:36:32 Registering Internal as a media playback plugin.
> 2004-03-18 08:36:47 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
> 2004-03-18 08:36:47 Using protocol version 1
> 2004-03-18 08:36:48 Using protocol version 1
> 2004-03-18 08:36:48 Using protocol version 1
> 
> Program terminated with signal SIGKILL, Killed.
> The program no longer exists.
> 
> 
> > Not that I know what the problem is, but gdb stopped because mythfrontend
> > got a SIG32 signal, not because it crashed... There's nothing wrong with
> > getting SIG32, so it might be a good idea to tell gdb to ignore those
> > before
> > running by giving this command:
> >
> >    handle SIG32 pass noprint nostop
> >
> > greets,
> >
> > Jan.
> >
> >
> >
> > Jon Whitear wrote:
> >> OK, I've recompiled Myth. When I run it I'm still getting the same
> >> behaviour (i.e. I try to watch live TV, or a recording, and mythfrontend
> >> dies, saying 'killed'.)
> >>
> >> However, when I run mythfrontend through gdb, rather than dying I just
> >> get
> >> a blank screen. Here's the backtrace. I would be most grateful if
> >> someone
> >> could shed some light on this, because I'm really stuck!
> >>
> >> teleputer root # gdb mythfrontend
> >> GNU gdb 6.0
> >> <snip>
> >> This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
> >> library "/lib/libthread_db.so.1".
> >> (gdb) run
> >> Starting program: /usr/bin/mythfrontend
> >> 2004-03-17 19:32:15 mythfrontend version: 0.14.20040123-1 www.mythtv.org
> >> 2004-03-17 19:32:15 Enabled verbose msgs : important general
> >> 2004-03-17 19:32:16 Registering Internal as a media playback plugin.
> >>
> >> Program received signal SIG32, Real-time event 32.
> >> 0x40a04a14 in pthread_getconcurrency () from /lib/libpthread.so.0
> >> (gdb) thread apply all bt full
> >> (gdb) bt
> >> #0  0x40a04a14 in pthread_getconcurrency () from /lib/libpthread.so.0
> >> #1  0x40a04858 in pthread_getconcurrency () from /lib/libpthread.so.0
> >> #2  0x40a03f02 in pthread_create () from /lib/libpthread.so.0
> >> #3  0x40244549 in TV::Init(bool) (this=0x82297e0, createWindow=true)
> >>     at tv_play.cpp:245
> >> #4  0x08064164 in startTV() () at main.cpp:201
> >> #5  0x08065467 in TVMenuCallback(void*, QString&) (data=0x8207048,
> >>     selection=@0x829ae24) at main.cpp:363
> >> #6  0x4074f2dd in ThemedMenuPrivate::handleAction(QString const&) (
> >>     this=0x829ad28, action=@0x8229594) at themedmenu.cpp:2056
> >> #7  0x4074db51 in ThemedMenuPrivate::keyPressHandler(QKeyEvent*) (
> >>     this=0x829ad28, e=0xbffff340) at themedmenu.cpp:1886
> >> #8  0x40750700 in ThemedMenu::keyPressEvent(QKeyEvent*) (this=0x824b2b8,
> >>     e=0xbffff340) at themedmenu.cpp:2242
> >> #9  0x40d5cde5 in QWidget::event(QEvent*) () from
> >> /usr/qt/3/lib/libqt-mt.so.3
> >> #10 0x40ccc47f in QApplication::internalNotify(QObject*, QEvent*) ()
> >>    from /usr/qt/3/lib/libqt-mt.so.3
> >> #11 0x40ccbd0f in QApplication::notify(QObject*, QEvent*) ()
> >>    from /usr/qt/3/lib/libqt-mt.so.3
> >> #12 0x40c65bad in QETWidget::translateKeyEvent(_XEvent const*, bool) ()
> >>    from /usr/qt/3/lib/libqt-mt.so.3
> >> #13 0x40c61584 in QApplication::x11ProcessEvent(_XEvent*) ()
> >>    from /usr/qt/3/lib/libqt-mt.so.3
> >> ---Type <return> to continue, or q <return> to quit---
> >> #14 0x40c781d1 in QEventLoop::processEvents(unsigned) ()
> >>    from /usr/qt/3/lib/libqt-mt.so.3
> >> #15 0x40cde498 in QEventLoop::enterLoop() () from
> >> /usr/qt/3/lib/libqt-mt.so.3
> >> #16 0x40ccc731 in QApplication::enter_loop() ()
> >>    from /usr/qt/3/lib/libqt-mt.so.3
> >> #17 0x407a9215 in MythDialog::exec() (this=0x824b2b8) at
> >> mythdialogs.cpp:718
> >> #18 0x080668f2 in RunMenu(QString) (themedir=
> >>       {static null = {static null = <same as static member of an already
> >> seen type>, d = 0x81800e8, static shared_null = 0x81800e8}, d =
> >> 0x82394b0, static shared_null = 0x81800e8}) at main.cpp:511
> >> #19 0x0806a829 in main (argc=1, argv=0xbffffab4) at main.cpp:914
> >> (gdb)
> >>
> >>
> >>
> >>>Yes, that's exactly what you need to do:
> >>>http://www.mythtv.org/docs/mythtv-HOWTO-20.html#ss20.10
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: mythtv-dev-bounces at mythtv.org
> >>>>[mailto:mythtv-dev-bounces at mythtv.org] On Behalf Of Jon Whitear
> >>>>Sent: dinsdag 16 maart 2004 3:03
> >>>>To: mythtv-dev at mythtv.org
> >>>>Subject: [mythtv] Mythfrontend dies - how to tell why?
> >>>>
> >>>>
> >>>>When I try to watch LiveTV (or a recording) mythfrontend dies. There's
> >>>>nothing in the logs to explain why. What's the best way to
> >>>>trace this? I
> >>>>suspect that I need to recompile and run through the debugger, but I'd
> >>>>like to confirm that before I do it.
> >>>>
> >>>>I have posted on the mythtv-users list regarding this a
> >>>>couple of times,
> >>>>unfortunately without response. Those posts are attached below.
> >>>>
> >>>>Thanks,
> >>>>
> >>>>Jon
> >>>>
> >>>>---------------------------- Original Message
> >>>>----------------------------
> >>>>Subject: [mythtv-users] Please help a newb! DVB / Prebuffer time out
> >>>>/mythfrontend dies From:    "Jon Whitear" <mythtv at whitear.org>
> >>>>Date:    Fri, March 12, 2004 12:04 pm
> >>>>To:      "Discussion about mythtv" <mythtv-users at mythtv.org>
> >>>>--------------------------------------------------------------
> >>>>------------
> >>>>
> >>>>I'm using MythTV 0.14, installed from the gentoo ebuild. When
> >>>>I watch live
> >>>>TV or a recording, mythfrontend immediately dies - I get
> >>>>returned to the
> >>>>console, with a 'killed' response. The mythfrontend log shows many
> >>>>'prebuffer timed out' errors (mythfrontend log attached below.)
> >>>>
> >>>>Mythbackend seems quite happy, and recordings work OK (I see
> >>>>a preview in
> >>>>the 'watch a recording' screen, albeit rather slow and
> >>>>jerky.) I get the
> >>>>same behaviour with live TV and recordings.
> >>>>
> >>>>I am using a Via EPIA M1000 board with a VisionPlus (TwinHan)
> >>>>DVB-T card
> >>>>and Gentoo 2004.0 with the 2.6.1-epia kernel. I can capture a
> >>>>stream using
> >>>>dvbstream and play it in mplayer (using ALSA) just fine. My display
> >>>>manager is KDE 3.2, and I have tried disabling artsd with no effect. I
> >>>>have tried disabling (within MythTV) the CLE266 hardware MPEG decoder,
> >>>>also with no effect. I have both native ALSA support and native arts
> >>>>support uncommented in my settings.pro file (along with DVB and CLE266
> >>>>support.)
> >>>>
> >>>>Has anyone seen this before? If not, what's the best way to proceed.
> >>>>Should I recompile and run it throught the debugger? My
> >>>>apologies for the
> >>>>repeat post - I'm so close to getting it running after two months!
> >>>>
> >>>>
> >>>>2004-03-12 08:50:05 Registering Internal as a media playback plugin.
> >>>>2004-03-12 08:50:05 generating cache image for:
> >>>>/usr/share/mythtv/themes/default/blank.png
> >>>>2004-03-12 08:51:30 Connecting to backend server:
> >>>>127.0.0.1:6543 (try 1 of
> >>>>5) 2004-03-12 08:51:30 20      MYTH_PROTO_VERSION 1
> >>>>2004-03-12 08:51:30 Using protocol version 1
> >>>>2004-03-12 08:51:30 24      ANN Playback teleputer 0
> >>>>2004-03-12 08:51:30 21      QUERY_RECORDINGS Play
> >>>>2004-03-12 08:51:30 20      MYTH_PROTO_VERSION 1
> >>>>2004-03-12 08:51:30 Using protocol version 1
> >>>>2004-03-12 08:51:30 24      ANN Playback teleputer 1
> >>>>2004-03-12 08:51:32 Estimated bitrate = 256000
> >>>>Input #0, mpeg, from
> >>>>'/var/media/captures/2_20040311203000_20040311210000.nuv':
> >>>>  Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps
> >>>>  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
> >>>>2004-03-12 08:51:32 waiting for prebuffer...
> >>>>2004-03-12 08:51:32 prebuffer wait timed out..
> >>>>2004-03-12 08:51:32 waiting for prebuffer...
> >>>>2004-03-12 08:51:32 prebuffer wait timed out..
> >>>>2004-03-12 08:51:32 Estimated bitrate = 256000
> >>>>Input #0, mpeg, from
> >>>>'/var/media/captures/2_20040311203000_20040311210000.nuv':
> >>>>  Stream #0.0: Video: mpeg2video, 720x576, 25.00 fps
> >>>>  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
> >>>>2004-03-12 08:51:32 waiting for prebuffer...
> >>>>2004-03-12 08:51:33 prebuffer wait timed out..
> >>>>2004-03-12 08:51:33 waiting for prebuffer...
> >>>>2004-03-12 08:51:33 prebuffer wait timed out..
> >>>>2004-03-12 08:51:33 waiting for prebuffer...
> >>>>2004-03-12 08:51:33 prebuffer wait timed out..
> >>>>2004-03-12 08:51:33 waiting for prebuffer...
> >>>>2004-03-12 08:51:33 prebuffer wait timed out..
> >>>>2004-03-12 08:51:33 waiting for prebuffer...
> >>>>2004-03-12 08:51:33 prebuffer wait timed out..
> >>>>2004-03-12 08:51:33 waiting for prebuffer...
> >>>>2004-03-12 08:51:33 prebuffer wait timed out..
> >>>>2004-03-12 08:51:33 waiting for prebuffer...
> >>>>2004-03-12 08:51:34 Estimated bitrate = 256000
> >>>>2004-03-12 08:51:34 prebuffer wait timed out..
> >>>>2004-03-12 08:51:34 waiting for prebuffer...
> >>>>Input #0, mpeg, from
> >>>>'/var/media/captures/2_20040311203000_20040311210000.nuv':
> >>>>  Stream #0.0: Video: mpegvideo_via, 720x576, 25.00 fps
> >>>>  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
> >>>>2004-03-12 08:51:34 Position map found
> >>>>2004-03-12 08:51:34 Opening OSS audio device '/dev/dsp'.
> >>>>2004-03-12 08:51:34 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
> >>>>2004-03-12 08:51:34 prebuffer wait timed out..
> >>>>2004-03-12 08:51:34 waiting for prebuffer...
> >>>>
> >>>>
> >>>>
> >>>>>I've got MythTV 0.14 installed using the gentoo ebuild.
> >>>>
> >>>>When I try to
> >>>>watch live TV, or a recorded show, I just get a blank screen. Usually
> >>>>mythfrontend dies. Shows seem to record OK (i.e. the files
> >>>>are large.) I
> >>>>can play MPEG files (captured using dvbstream) using mplayer without
> >>>>problems. I don't know where to start troubleshooting this, as I can't
> >>>>see any obvious errors.
> >>>>
> >>>>>Mythbackend shows this:-
> >>>>>
> >>>>>Starting up as the master server.
> >>>>>2004-03-11 08:44:37 DVB#0 Using DVB card 0, with frontend DST TERR.
> >>>>
> >>>>2004-03-11 08:44:37 DVB#0 Trying to tune to channel 10.
> >>>>
> >>>>>2004-03-11 08:44:37 DVB#0 WARNING - Unsupported
> >>>>
> >>>>constellation parameter.
> >>>>2004-03-11 08:44:37 DVB#0 Frequency: 219500000. BW:7Mhz
> >>>>HP:Auto LP:Auto
> >>>>C:64 TM:8K H:None GI:1/16
> >>>>
> >>>>>2004-03-11 08:44:39 DVB#0 Waiting for frontend event after tune.
> >>>>
> >>>>2004-03-11 08:44:39 DVB#0 Status: CARRIER | VITERBI | SIGNAL | SYNC |
> >>>>LOCK.
> >>>>
> >>>>>2004-03-11 08:44:39 DVB#0 Successfully tuned to channel 10.
> >>>>>2004-03-11 08:44:39 mythbackend version: 0.14.20040123-1
> >>>>
> >>>>www.mythtv.org
> >>>>2004-03-11 08:44:39 Enabled verbose msgs :all
> >>>>
> >>>>>--- print list start ---
> >>>>>Title                 Chan  ChID  StartTime       S I C  C R O N
> >>>>
> >>>>Priority Total
> >>>>
> >>>>>---  print list end  ---
> >>>>>2004-03-11 08:44:41 Found changes in the todo list.
> >>>>>2004-03-11 08:47:02 12      ACCEPT[]:[]1
> >>>>>2004-03-11 08:47:02 MainServer::HandleAnnounce Playback
> >>>>>2004-03-11 08:47:02 adding: teleputer as a client (events: 0)
> >>>>>2004-03-11 08:47:02 2       OK
> >>>>>2004-03-11 08:47:02 24      5[]:[]127.0.0.1[]:[]6543
> >>>>>2004-03-11 08:47:02 12      ACCEPT[]:[]1
> >>>>>2004-03-11 08:47:02 12      ACCEPT[]:[]1
> >>>>>2004-03-11 08:47:02 MainServer::HandleAnnounce Playback
> >>>>>2004-03-11 08:47:02 adding: teleputer as a client (events: 1)
> >>>>>2004-03-11 08:47:02 2       OK
> >>>>>2004-03-11 08:47:02 MainServer::HandleAnnounce Playback
> >>>>>2004-03-11 08:47:02 adding: teleputer as a client (events: 0)
> >>>>>2004-03-11 08:47:02 2       OK
> >>>>>2004-03-11 08:47:02 91
> >>>>>rbuf://127.0.0.1:6543/var/media/buffer/ringbuf5...
> >>>>>2004-03-11 08:47:02 MainServer::HandleAnnounce Playback
> >>>>>2004-03-11 08:47:02 adding: teleputer as a client (events: 0)
> >>>>>2004-03-11 08:47:02 2       OK
> >>>>>2004-03-11 08:47:02 adding: teleputer as a remote ringbuffer
> >>>>>2004-03-11 08:47:02 2       OK
> >>>>>2004-03-11 08:47:02 Changing from None to WatchingLiveTV
> >>>>>2004-03-11 08:47:02 Using profile 'Live TV' to record
> >>>>>2004-03-11 08:47:02 DVB#0 Recorder: Card opened successfully.
> >>>>>2004-03-11 08:47:02 DVB#0 Adding pid 650, type 0
> >>>>>2004-03-11 08:47:02 2       ok
> >>>>>2004-03-11 08:47:02 DVB#0 Adding pid 512, type 1
> >>>>>2004-03-11 08:47:02 1       1
> >>>>>2004-03-11 08:47:02 5       29.97
> >>>>>Videostream: ASPECT: 16:9  Size = 704x576  FRate: 25 fps
> >>>>
> >>>>BRate: 15.00
> >>>>Mbit/s
> >>>>
> >>>>>Audiostream: Layer: 1  BRate: 224 kb/s  Freq: 32.0 kHz
> >>>>>2004-03-11 08:47:02 6       128000
> >>>>>2004-03-11 08:47:02 7       0[]:[]0
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:03 6       128000
> >>>>>2004-03-11 08:47:04 6       128000
> >>>>>2004-03-11 08:47:04 8       0[]:[]35
> >>>>>2004-03-11 08:47:04 79
> >>>>>0[]:[]0[]:[]0[]:[]0[]:[]0[]:[]14[]:[]0[]:[]4302...
> >>>>>2004-03-11 08:47:04 Changing from WatchingLiveTV to None
> >>>>>Unable to write to client socket, as it's no longer there
> >>>>>2004-03-11 08:47:30 12      ACCEPT[]:[]1
> >>>>>2004-03-11 08:47:30 MainServer::HandleAnnounce Playback
> >>>>>2004-03-11 08:47:30 adding: teleputer as a client (events: 0)
> >>>>>2004-03-11 08:47:30 2       OK
> >>>>>2004-03-11 08:47:30 1337    4[]:[]Le Journal[]:[] []:[] []:[]
> >>>>>[]:[]11[]:[]1...
> >>>>>2004-03-11 08:47:31 12      ACCEPT[]:[]1
> >>>>>2004-03-11 08:47:31 MainServer::HandleAnnounce Playback
> >>>>>2004-03-11 08:47:31 adding: teleputer as a client (events: 1)
> >>>>>2004-03-11 08:47:31 2       OK
> >>>>>
> >>>>>Mythfrontend shows this:-
> >>>>>
> >>>>>2004-03-11 08:47:23 mythfrontend version: 0.14.20040123-1
> >>>>
> >>>>www.mythtv.org
> >>>>2004-03-11 08:47:23 Enabled verbose msgs :all
> >>>>
> >>>>>mythtv: could not connect to socket
> >>>>>mythtv: Connection refused
> >>>>>lirc_init failed for mythtv, see preceding messages
> >>>>>2004-03-11 08:47:24 Registering Internal as a media playback plugin.
> >>>>
> >>>>2004-03-11 08:47:24 generating cache image for:
> >>>>
> >>>>>/usr/share/mythtv/themes/default/blank.png
> >>>>>2004-03-11 08:47:30 Connecting to backend server:
> >>>>
> >>>>127.0.0.1:6543 (try 1
> >>>>of 5)
> >>>>
> >>>>>2004-03-11 08:47:30 20      MYTH_PROTO_VERSION 1
> >>>>>2004-03-11 08:47:30 Using protocol version 1
> >>>>>2004-03-11 08:47:30 24      ANN Playback teleputer 0
> >>>>>2004-03-11 08:47:30 21      QUERY_RECORDINGS Play
> >>>>>2004-03-11 08:47:31 20      MYTH_PROTO_VERSION 1
> >>>>>2004-03-11 08:47:31 Using protocol version 1
> >>>>>2004-03-11 08:47:31 24      ANN Playback teleputer 1
> >>>>>2004-03-11 08:47:33 Estimated bitrate = 256000
> >>>>>Input #0, mpeg, from
> >>>>>'/var/media/captures/10_20040310200000_20040310203000.nuv':
> >>>>>  Stream #0.0: Video: mpeg2video, 704x576, 25.00 fps
> >>>>>  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
> >>>>>2004-03-11 08:47:33 waiting for prebuffer...
> >>>>>2004-03-11 08:47:34 Estimated bitrate = 256000
> >>>>>2004-03-11 08:47:34 prebuffer wait timed out..
> >>>>>2004-03-11 08:47:34 waiting for prebuffer...
> >>>>>2004-03-11 08:47:34 prebuffer wait timed out..
> >>>>>Input #0, mpeg, from
> >>>>>'/var/media/captures/10_20040310200000_20040310203000.nuv':
> >>>>>  Stream #0.0: Video: mpegvideo_via, 704x576, 25.00 fps
> >>>>>  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
> >>>>>2004-03-11 08:47:34 Position map found
> >>>>>2004-03-11 08:47:34 Opening OSS audio device '/dev/dsp'.
> >>>>>2004-03-11 08:47:34 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
> >>>>>
> >>>>>The lirc errors are there becuase I haven't got as far as
> >>>>
> >>>>configuring
> >>>>lirc yet. I'm using an EPIA M10000 with Gentoo and KDE3.2. I have
> >>>>compiled in support for the CLE266 hardware MPEG decoder, but
> >>>>I get the
> >>>>same results whether it is enabled or not. As always, any help is
> >>>>greatly appreciated.
> >>>>
> >>>>>_______________________________________________
> >>>>>mythtv-users mailing list
> >>>>>mythtv-users at mythtv.org
> >>>>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >>>>>
> >>>>>
> >>>>
> >>>>_______________________________________________
> >>>>mythtv-users mailing list
> >>>>mythtv-users at mythtv.org
> >>>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >>>>
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>mythtv-dev mailing list
> >>>>mythtv-dev at mythtv.org
> >>>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >>>>
> >>>
> >>>_______________________________________________
> >>>mythtv-dev mailing list
> >>>mythtv-dev at mythtv.org
> >>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >>>
> >>
> >>
> >> _______________________________________________
> >> mythtv-dev mailing list
> >> mythtv-dev at mythtv.org
> >> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >>
> >
> >
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> 
> 




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


More information about the mythtv-dev mailing list