[mythtv-users] error when closing frontend

Jim Stichnoth stichnot at gmail.com
Mon Apr 5 04:00:16 UTC 2010


On Sun, Apr 4, 2010 at 8:36 PM, Greg Grotsky <spikeygg at gmail.com> wrote:
>
> On Fri, Feb 13, 2009 at 6:09 PM, A JM <vbtalent at gmail.com> wrote:
>>
>> Any known solutions to this error when closing the frontend?
>>
>> Error in my_thread_global_end(): 2 threads didn't exit
>>
>
> Does anyone know what causes this issue (or how to fix it)?  I get it every time I exit mythfrontend, too.
> "Error in my_thread_global_end(): 2 threads didn't exit"
> -Greg

See http://svn.mythtv.org/trac/ticket/7836 for some description of why
this happens.  In short, Qt's mysql driver thinks that whatever thread
opens a database connection will also close it, but this is not
necessarily true in MythTV because of database connection pooling.
Ticket #7836 fixed the annoying 5-second delays that would accompany
this message in the frontend, but it still happens upon exit.

There's some chance that a newer version of Qt would fix this.  It
won't be fixed in MythTV without another patch.  That (hypothetical)
patch would probably isolate all the database connection pooling into
a single thread.

Jim


More information about the mythtv-users mailing list