Mailing List Archive

Crash on leaving mythtv-setup in today's master (F31)
I've been having DB issues but this looks unrelated:

{{{

2020-07-03 20:29:52.920976 I OpenGL: Using full range output
2020-07-03 20:29:52.922564 I MythUIHelper: Pruning cache directory:
/home/john/.mythtv/cache/remotecache
2020-07-03 20:29:52.922697 I MythUIHelper: Kept 14 files, deleted 0
files, stat error on 0 files
2020-07-03 20:29:52.922708 I MythUIHelper: Pruning cache directory:
/home/john/.mythtv/cache/thumbnails
2020-07-03 20:29:52.922770 I MythUIHelper: Kept 0 files, deleted 0
files, stat error on 0 files
2020-07-03 20:29:53.291083 E CECAdapter: Failed to find any CEC devices.
2020-07-03 20:29:53.791628 I CECAdapter: Closing down CEC.
2020-07-03 20:29:53.795418 I Current MythTV Schema Version
(DBSchemaVer): 1363
/usr/include/c++/9/bits/stl_vector.h:1060: std::vector<_Tp,
_Alloc>::const_reference std::vector<_Tp,
_Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp
= CHANLISTS; _Alloc = std::allocator<CHANLISTS>; std::vector<_Tp,
_Alloc>::const_reference = const CHANLISTS&; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n
< this->size(), true)' failed.
Handling Aborted
Aborted (core dumped)
}}}
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Crash on leaving mythtv-setup in today's master (F31) [ In reply to ]
On 7/3/20 3:57 PM, John Pilkington wrote:
> I've been having DB issues but this looks unrelated:
>
> {{{
>
> 2020-07-03 20:29:52.920976 I  OpenGL: Using full range output
> 2020-07-03 20:29:52.922564 I  MythUIHelper: Pruning cache directory:
> /home/john/.mythtv/cache/remotecache
> 2020-07-03 20:29:52.922697 I  MythUIHelper: Kept 14 files, deleted 0
> files, stat error on 0 files
> 2020-07-03 20:29:52.922708 I  MythUIHelper: Pruning cache directory:
> /home/john/.mythtv/cache/thumbnails
> 2020-07-03 20:29:52.922770 I  MythUIHelper: Kept 0 files, deleted 0
> files, stat error on 0 files
> 2020-07-03 20:29:53.291083 E  CECAdapter: Failed to find any CEC devices.
> 2020-07-03 20:29:53.791628 I  CECAdapter: Closing down CEC.
> 2020-07-03 20:29:53.795418 I  Current MythTV Schema Version
> (DBSchemaVer): 1363
> /usr/include/c++/9/bits/stl_vector.h:1060: std::vector<_Tp,
> _Alloc>::const_reference std::vector<_Tp,
> _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [.with
> _Tp = CHANLISTS; _Alloc = std::allocator<CHANLISTS>; std::vector<_Tp,
> _Alloc>::const_reference = const CHANLISTS&; std::vector<_Tp,
> _Alloc>::size_type = long unsigned int]: Assertion
> '__builtin_expect(__n < this->size(), true)' failed.
> Handling Aborted
> Aborted (core dumped)
> }}}
>
I see you have the database upgrade from today (1363). I tried starting
mythtv-setup and exiting again, it was fine. This is Xubuntu 20.04. The
problem may be something related to your environment.

2020-07-03 16:56:50.748053 I  OpenGL: Using full range output
2020-07-03 16:56:50.754107 I  MythUIHelper: Pruning cache directory:
/home/peter/.mythtv-mdm/cache/remotecache
2020-07-03 16:56:50.755487 I  MythUIHelper: Kept 3 files, deleted 0
files, stat error on 0 files
2020-07-03 16:56:50.755501 I  MythUIHelper: Pruning cache directory:
/home/peter/.mythtv-mdm/cache/thumbnails
2020-07-03 16:56:50.755891 I  MythUIHelper: Kept 10 files, deleted 0
files, stat error on 0 files
2020-07-03 16:56:52.799997 I  CECAdapter: Using physical address 1.0.0.0
from EDID
2020-07-03 16:56:53.021535 E  CECAdapter: Failed to find any CEC devices.
2020-07-03 16:56:53.522111 I  CECAdapter: Closing down CEC.
2020-07-03 16:56:53.526549 I  Current MythTV Schema Version
(DBSchemaVer): 1363
2020-07-03 16:56:53.561588 W  Key Enter is bound to multiple actions in
context Long Press.
2020-07-03 16:57:09.791448 E  You have a Video Storage Group, but have
not set up all Image Groups. If you continue, video image downloads will
be saved in your Videos Storage Group. Do you want to store them in
their own groups?
2020-07-03 16:57:12.986456 I  InputHandler: Stopping
2020-07-03 16:57:12.987469 W  MythPainter: 180 images not yet de-allocated.
2020-07-03 16:57:12.987543 I  Clearing OpenGL painter cache.
2020-07-03 16:57:12.988184 I  OpenGL: MythRenderOpenGL closing
2020-07-03 16:57:12.995478 I  PowerDBus: Closing interfaces
2020-07-03 16:57:12.997871 I  Waiting for threads to exit.
2020-07-03 16:57:13.164143 I  Exiting

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Crash on leaving mythtv-setup in today's master (F31) [ In reply to ]
On Fri, 2020-07-03 at 17:02 -0400, Peter Bennett wrote:
> On 7/3/20 3:57 PM, John Pilkington wrote:
> > I've been having DB issues but this looks unrelated:
> >
> > {{{
> >
> > 2020-07-03 20:29:52.920976 I OpenGL: Using full range output
> > 2020-07-03 20:29:52.922564 I MythUIHelper: Pruning cache
> > directory:
> > /home/john/.mythtv/cache/remotecache
> > 2020-07-03 20:29:52.922697 I MythUIHelper: Kept 14 files, deleted
> > 0
> > files, stat error on 0 files
> > 2020-07-03 20:29:52.922708 I MythUIHelper: Pruning cache
> > directory:
> > /home/john/.mythtv/cache/thumbnails
> > 2020-07-03 20:29:52.922770 I MythUIHelper: Kept 0 files, deleted
> > 0
> > files, stat error on 0 files
> > 2020-07-03 20:29:53.291083 E CECAdapter: Failed to find any CEC
> > devices.
> > 2020-07-03 20:29:53.791628 I CECAdapter: Closing down CEC.
> > 2020-07-03 20:29:53.795418 I Current MythTV Schema Version
> > (DBSchemaVer): 1363
> > /usr/include/c++/9/bits/stl_vector.h:1060: std::vector<_Tp,
> > _Alloc>::const_reference std::vector<_Tp,
> > _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const
> > [.with
> > _Tp = CHANLISTS; _Alloc = std::allocator<CHANLISTS>;
> > std::vector<_Tp,
> > _Alloc>::const_reference = const CHANLISTS&; std::vector<_Tp,
> > _Alloc>::size_type = long unsigned int]: Assertion
> > '__builtin_expect(__n < this->size(), true)' failed.
> > Handling Aborted
> > Aborted (core dumped)
> > }}}
> >
> I see you have the database upgrade from today (1363). I tried
> starting
> mythtv-setup and exiting again, it was fine. This is Xubuntu 20.04.
> The
> problem may be something related to your environment.

Could have been my C++ array change. I tested it a while ago but
hadn't tested it recently. I'll try it again with Peter's version bump.

David


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Crash on leaving mythtv-setup in today's master (F31) [ In reply to ]
On Fri, 2020-07-03 at 17:16 -0400, David Hampton wrote:
> On Fri, 2020-07-03 at 17:02 -0400, Peter Bennett wrote:
> > On 7/3/20 3:57 PM, John Pilkington wrote:
> > > I've been having DB issues but this looks unrelated:
> > >
> > > {{{
> > >
> > > 2020-07-03 20:29:52.920976 I OpenGL: Using full range output
> > > 2020-07-03 20:29:52.922564 I MythUIHelper: Pruning cache
> > > directory:
> > > /home/john/.mythtv/cache/remotecache
> > > 2020-07-03 20:29:52.922697 I MythUIHelper: Kept 14 files,
> > > deleted
> > > 0
> > > files, stat error on 0 files
> > > 2020-07-03 20:29:52.922708 I MythUIHelper: Pruning cache
> > > directory:
> > > /home/john/.mythtv/cache/thumbnails
> > > 2020-07-03 20:29:52.922770 I MythUIHelper: Kept 0 files, deleted
> > > 0
> > > files, stat error on 0 files
> > > 2020-07-03 20:29:53.291083 E CECAdapter: Failed to find any CEC
> > > devices.
> > > 2020-07-03 20:29:53.791628 I CECAdapter: Closing down CEC.
> > > 2020-07-03 20:29:53.795418 I Current MythTV Schema Version
> > > (DBSchemaVer): 1363
> > > /usr/include/c++/9/bits/stl_vector.h:1060: std::vector<_Tp,
> > > _Alloc>::const_reference std::vector<_Tp,
> > > _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const
> > > [.with
> > > _Tp = CHANLISTS; _Alloc = std::allocator<CHANLISTS>;
> > > std::vector<_Tp,
> > > _Alloc>::const_reference = const CHANLISTS&; std::vector<_Tp,
> > > _Alloc>::size_type = long unsigned int]: Assertion
> > > '__builtin_expect(__n < this->size(), true)' failed.
> > > Handling Aborted
> > > Aborted (core dumped)
> > > }}}
> > >
> > I see you have the database upgrade from today (1363). I tried
> > starting
> > mythtv-setup and exiting again, it was fine. This is Xubuntu 20.04.
> > The
> > problem may be something related to your environment.
>
> Could have been my C++ array change. I tested it a while ago but
> hadn't tested it recently. I'll try it again with Peter's version
> bump.

John,

Looking at the actual warning, this appears to be conversion of the
channel list array from a C array to a C++ array. I'm surprised though,
as I ran mythtv-setup and scanned channels this morning before
committing. What commands are you running in mythtv-setup?

I just tried running mythtv-setup again, deleted all capture cards and
video sources, reinput that info, and scanned for channels. I don't
get a crash.

Is it possible for you to send me a stack trace?

David


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Crash on leaving mythtv-setup in today's master (F31) [ In reply to ]
On 03/07/2020 22:51, David Hampton wrote:

> I just tried running mythtv-setup again, deleted all capture cards and
> video sources, reinput that info, and scanned for channels. I don't
> get a crash.
>
> Is it possible for you to send me a stack trace?
>
> David

If it isn't a general problem, sorry for the noise. I started
mythtv-setup, got the UI display, and everything looked normal; I didn't
change anything, but it crashed on exit, several times, and with the
same errors. But after several attempts to run the backend, setup
worked and the frontend is now looking ok (when running with localhost).

Gary's packages include debug stuff but I've not used it. Something
else to try.

John
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Crash on leaving mythtv-setup in today's master (F31) [ In reply to ]
On 03/07/2020 23:34, John Pilkington wrote:
> On 03/07/2020 22:51, David Hampton wrote:
>
>> I just tried running mythtv-setup again, deleted all capture cards and
>> video sources, reinput that info, and scanned for channels.  I don't
>> get a crash.
>>
>> Is it possible for you to send me a stack trace?
>>
>> David
>
> If it isn't a general problem, sorry for the noise.  I started
> mythtv-setup, got the UI display, and everything looked normal; I didn't
> change anything, but it crashed on exit, several times, and with the
> same errors.  But after several attempts to run the backend, setup
> worked and the frontend is now looking ok (when running with localhost).
>
> Gary's packages include debug stuff but I've not used it.  Something
> else to try.
>
> John

I thought this had gone away after I reset parts of my DB access
(details on the users list), but I'm now seeing it in two Fedora 31
systems running recent Master, 0a07cb3 and e05a8a8. They crash on
attempting to enter the General tab, but the back and frontends seem ok.
With my SL7.8 system, also on e05a8a8 but with MariaDB 5.5.65,
mythtv-setup continues as expected and it all works.

There is still something strange about the DB settings, though. It's
looking less likely that this is the cause of the crash, but...

{{{

MariaDB 10.3.22
Newly created user with current IP address
MariaDB [mysql]> show grants for 'mythtv'@'192.168.1.68' ;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for mythtv@192.168.1.68


|
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'mythtv'@'192.168.1.68' IDENTIFIED BY PASSWORD
'*CC8F35F587CA5A556B4132C2407E556D92172FFC'

|
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX,
ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW
VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER ON `mythconverg`.*
TO 'mythtv'@'192.168.1.68' |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.000 sec)

User created before upgrade to Fedora 31 at IP address that no longer exists
MariaDB [mysql]> show grants for 'mythtv'@'192.168.1.66' ;
+---------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for mythtv@192.168.1.66
|
+---------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'mythtv'@'192.168.1.66' IDENTIFIED BY
PASSWORD '*CC8F35F587CA5A556B4132C2407E556D92172FFC' WITH GRANT OPTION |
+---------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.000 sec)

}}}
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Crash on leaving mythtv-setup in today's master (F31) [ In reply to ]
On Tue, 2020-07-07 at 16:15 +0100, John Pilkington wrote:
> On 03/07/2020 23:34, John Pilkington wrote:
> > On 03/07/2020 22:51, David Hampton wrote:
> >
> > > I just tried running mythtv-setup again, deleted all capture
> > > cards and
> > > video sources, reinput that info, and scanned for channels. I
> > > don't
> > > get a crash.
> > >
> > > Is it possible for you to send me a stack trace?
> > >
> > > David
> >
> > If it isn't a general problem, sorry for the noise. I started
> > mythtv-setup, got the UI display, and everything looked normal; I
> > didn't
> > change anything, but it crashed on exit, several times, and with
> > the
> > same errors. But after several attempts to run the backend, setup
> > worked and the frontend is now looking ok (when running with
> > localhost).
> >
> > Gary's packages include debug stuff but I've not used it.
> > Something
> > else to try.
> >
> > John
>
> I thought this had gone away after I reset parts of my DB access
> (details on the users list), but I'm now seeing it in two Fedora 31
> systems running recent Master, 0a07cb3 and e05a8a8. They crash on
> attempting to enter the General tab, but the back and frontends seem
> ok.
> With my SL7.8 system, also on e05a8a8 but with MariaDB 5.5.65,
> mythtv-setup continues as expected and it all works.

I think I found and fixed the problem. There were a couple of iterators
over the channel list that still assumed the list was terminated with a
null entry. Whether or not MythTV would crash depended on whether or
not the memory immediately after the last entry was zero.

Please update and see if the problem still occurs.

David


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Crash on leaving mythtv-setup in today's master (F31) [ In reply to ]
On 08/07/2020 04:25, David Hampton wrote:
> On Tue, 2020-07-07 at 16:15 +0100, John Pilkington wrote:
>> On 03/07/2020 23:34, John Pilkington wrote:
>>> On 03/07/2020 22:51, David Hampton wrote:
>>>
>>>> I just tried running mythtv-setup again, deleted all capture
>>>> cards and
>>>> video sources, reinput that info, and scanned for channels. I
>>>> don't
>>>> get a crash.
>>>>
>>>> Is it possible for you to send me a stack trace?
>>>>
>>>> David
>>>
>>> If it isn't a general problem, sorry for the noise. I started
>>> mythtv-setup, got the UI display, and everything looked normal; I
>>> didn't
>>> change anything, but it crashed on exit, several times, and with
>>> the
>>> same errors. But after several attempts to run the backend, setup
>>> worked and the frontend is now looking ok (when running with
>>> localhost).
>>>
>>> Gary's packages include debug stuff but I've not used it.
>>> Something
>>> else to try.
>>>
>>> John
>>
>> I thought this had gone away after I reset parts of my DB access
>> (details on the users list), but I'm now seeing it in two Fedora 31
>> systems running recent Master, 0a07cb3 and e05a8a8. They crash on
>> attempting to enter the General tab, but the back and frontends seem
>> ok.
>> With my SL7.8 system, also on e05a8a8 but with MariaDB 5.5.65,
>> mythtv-setup continues as expected and it all works.
>
> I think I found and fixed the problem. There were a couple of iterators
> over the channel list that still assumed the list was terminated with a
> null entry. Whether or not MythTV would crash depended on whether or
> not the memory immediately after the last entry was zero.
>
> Please update and see if the problem still occurs.
>
> David
>
I have installed 32.Pre.652.gcfd2eb7... rpms on both the Fedora 31
systems that were affected. The problem has gone away. Thank you.

John P


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org