Opened 12 years ago

Closed 12 years ago

#4548 closed defect (invalid)

[15647] breaks mythtranscode (and maybe others)

Reported by: xris Owned by: Nigel
Priority: critical Milestone: 0.21.1
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

[15647] for #4265 seems to prevent the USN and SecurityPin? fields from getting filled in for DefaultBackend? in config.xml, which causes mythtranscode to segfault (and maybe other things), or maybe these fields didn't exist in the first place. Replacing the two fields from another config.xml on the same host (different userid) make the segfault go away.

Change History (3)

comment:1 Changed 12 years ago by Nigel

Status: newaccepted

Haven't reproduced yet, but a config.xml without USN+PIN should magically use UPNPautpconf, find a backend, and happily run. Like this:

mythtranscode 
2008-01-31 16:15:01.661 Using runtime prefix = /usr, libdir = /usr/lib
2008-01-31 16:15:01.662 Unable to read configuration file mysql.txt
2008-01-31 16:15:01.663 Empty LocalHostName.
2008-01-31 16:15:01.708 New DB connection, total: 1
2008-01-31 16:15:01.710 Unable to connect to database!
2008-01-31 16:15:01.710 Driver error was [1/2002]:
QMYSQL3: Unable to connect
Database error was:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2008-01-31 16:15:01.765 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError?  Strange...

2008-01-31 16:15:02.230 MythXMLClient::GetConnectionInfo Failed - (606) Action Not Authorized
2008-01-31 16:15:02.231 Cannot login to database?

Cannot login to database?

Would you like to configure the database connection now? [yes]  
nigel@mythtv:~/mythtv$ mythtranscode -v upnp
2008-01-31 16:15:13.227 Using runtime prefix = /usr, libdir = /usr/lib
2008-01-31 16:15:13.228 Unable to read configuration file mysql.txt
2008-01-31 16:15:13.229 Empty LocalHostName.
2008-01-31 16:15:13.231 MCP::DefaultUPnP() - No default UPnP backend
2008-01-31 16:15:13.274 New DB connection, total: 1
2008-01-31 16:15:13.276 Unable to connect to database!
2008-01-31 16:15:13.276 Driver error was [1/2002]:
QMYSQL3: Unable to connect
Database error was:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2008-01-31 16:15:13.331 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError?  Strange...
2008-01-31 16:15:13.383 Setting UPnP client for backend autodiscovery...
2008-01-31 16:15:13.383 UPnp - Constructor
2008-01-31 16:15:13.385 ThreadPool:AddWorkerThread - HTTP_WorkerThread
2008-01-31 16:15:13.386 HttpServer( 6549 ) - SharePath = /usr/share/mythtv/
2008-01-31 16:15:13.387 UPnp::Initialize - Begin
2008-01-31 16:15:13.387 UPnp::Initialize - Starting TaskQueue
2008-01-31 16:15:13.388 UPnp::Initialize - Creating SSDP Thread at port 6549
2008-01-31 16:15:13.389 UPnp::Initialize - End
2008-01-31 16:15:13.390 UPnp::Start - Starting SSDP Thread (Multicast)
2008-01-31 16:15:13.390 UPnp::Start - Enabling Notifications
2008-01-31 16:15:13.390 SSDP::EnableNotifications() - creating new task
2008-01-31 16:15:13.390 SSDP::EnableNotifications() - sending NTS_byebye
2008-01-31 16:15:13.391 LookupUDN(urn:schemas-upnp-org:device:MythContextClient:1) sName=UPnP/UDN/MythContextClient, sUDN=
2008-01-31 16:15:13.673 SSDP::EnableNotifications() - sending NTS_alive
2008-01-31 16:15:13.674 SSDP::EnableNotifications() - Task added to UPnP queue
2008-01-31 16:15:13.674 UPnp::Start - Returning

2008-01-31 16:15:13.800 UPnPconnect() - Trying host at http://149.135.128.77:6544/getDeviceDesc
2008-01-31 16:15:13.851 MythXMLClient::GetConnectionInfo Failed - (606) Action Not Authorized
2008-01-31 16:15:13.852 UPnPconnect() - Action Not Authorized. Wrong PIN?
2008-01-31 16:15:13.852 Cannot login to database?

Cannot login to database?

Would you like to configure the database connection now? [yes]  
^C

Does gdb mythtranscode reveal the location of the segfault?

comment:2 Changed 12 years ago by Nigel

Status: acceptedinfoneeded

comment:3 Changed 12 years ago by stuartm

Resolution: invalid
Status: infoneededclosed

Requested information not provided, closing.

Note: See TracTickets for help on using tickets.