[mythtv] [Preliminary patch[ Add profile groups

Geoffrey Hausheer ou401cru02 at sneakemail.com
Fri Sep 12 14:57:02 EDT 2003


On Fri, 12 Sep 2003 13:01:45 -0500, "Geoffrey Hausheer
ou401cru02-at-sneakemail.com |mythtv/1.0-Allow|"
<khm9hhqgzu0t at sneakemail.com> said:
> 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?

Okay so I can't read.  This problem has nothing to do with keyPress (the
first one does, and should probably be lookd at). The failure comes from
mythwidgets.h:115, which is:
    void setRW(bool readwrite = true) { rw = readwrite; };

Which gets called by setName:
void setName(QString newName) { name->setValue(newName); name->setRW();
};

Which gets called when I try to display a new window:
        pgName = QString("New Profile Group Name");
        profilegroup->setName(pgName);

Which is what I already knew, and I still don't know why it doesn't work.

Oh well.

.Geoff


More information about the mythtv-dev mailing list