[mythtv] [Preliminary patch[ Add profile groups

Geoffrey Hausheer ou401cru02 at sneakemail.com
Fri Sep 12 14:01:45 EDT 2003


On Fri, 12 Sep 2003 11:57:14 -0400, "Matt Zimmerman mdz-at-debian.org
|mythtv/1.0-Allow|" <n4n4hbjjnh0t at sneakemail.com> said:
> I don't know if mythtv runs under valgrind
> right now, but it'd be worth a try.  It has the advantage of being able
> to
> stop the program exactly where the error is.

It does indeed, and it seems to be a problem in themed menu (or something
related to it).

First off, I get a fault whenever I select 'Setup' from the Main
mythfrontend menu.  The bt looks like:
1  0x000038e6 in ?? ()
No symbol table info available.
#2  0x08367ddc in ThemedMenu::keyPressEvent(QKeyEvent*) (this=0x43c551e0,
    e=0xbfffe0c0) at qrect.h:176
        handled = 114
        lastbutton = (ThemedButton *) 0x776e2d20
        oldrow = -1073749616


so oldrow somehow gets corrupted (which implies current row is also bad).
 This happens when trying to access lastbutton.

This doesn't actually cause a fault though, so continuing on...
When I hit 'Enter' on 'Create Profile Group' (my new code), I get this:
==14559== Use of uninitialised value of size 4
==14559==    at 0x8159237: ProfileGroupEditor::open(int)
(mythwidgets.h:115)
==14559==    by 0x8159EEA: ProfileGroupEditor::exec(QSqlDatabase*)
(profilegroup.cpp:118)
==14559==    by 0x8367831: ThemedMenu::keyPressEvent(QKeyEvent*)
(themedmenu.cpp:1654)
in gdb...
#1  0x000038e7 in ?? ()
#2  0x08159237 in ProfileGroupEditor::open(int) (this=0x43c552d0, id=0)
    at mythwidgets.h:115
#3  0x08159eeb in ProfileGroupEditor::exec(QSqlDatabase*)
(this=0xbfffdd60,
    db=0x43c552d0) at profilegroup.cpp:118
Current language:  auto; currently c
(gdb) bt full
#0  vg_do_syscall3 (syscallno=4294966784, arg1=14567, arg2=0, arg3=0)
    at vg_mylibc.c:92
        __res = 4294966784
#1  0x000038e7 in ?? ()
No symbol table info available.
#2  0x08159237 in ProfileGroupEditor::open(int) (this=0x43c552d0, id=0)
    at mythwidgets.h:115
        profilegroup = (ProfileGroup *) 0xbfffdd60
        isdefault = false
        show_profiles = true
        pgName = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x43bd46d8, static shared_null = 0x43bd46d8}, d = 0x43f8d9c4,
  static shared_null = 0x43bd46d8}
#3  0x08159eeb in ProfileGroupEditor::exec(QSqlDatabase*)
(this=0xbfffdd60,
    db=0x43c552d0) at profilegroup.cpp:118
No locals.

Line 1654 in my (slightly hacked for debug) themedmenu.cpp looks like:
        case Key_Enter:
        case Key_Return:
        case Key_Space:
        {
            handleAction(activebutton->action);
            handled = true;
            break;
        }

So I am guessing that activebutton isn't set at this time.  Do I need to
do something when building my menu to set it?

My lunch hour is over, so I can't work on this more until this evening,
but it seems I am getting closer.

.Geoff


More information about the mythtv-dev mailing list