[mythtv] GetMythDB()->GetDBManager()->popConnection(reuse) returns invalid database after Database object created: DBManager1

Brian J. Murrell brian at interlinx.bc.ca
Tue Jul 19 21:53:16 UTC 2016

I hope this is OK to bring over here since it's getting right into the
code of MythTV.  If not, I will happily take it back to the -users

In debugging my remote front-end connection problem, as was being
discussed in the -users list I have narrowed the problem down to


in MSqlQuery::InitCon() returning a MSqlDatabase * object where
the m_db.hostName().isEmpty() is true.

This seems to happen right after:

2016-07-19 17:35:17.888179 I  Database object created: DBManager1

All of the queries that were done with DBManager0 succeeded prior to

I wonder if anyone has any ideas why this might be happening?

A complete "-v database --loglevel debug" log, with my additional
debugging can be found at


if you care to see the log.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20160719/8d73cf92/attachment.sig>

More information about the mythtv-dev mailing list