Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5526 closed defect (fixed)

QTime::fromString failing without format string

Reported by: Ben Dailey <benddailey@…> Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords: JobQueueWindowStart
Cc: Ticket locked: no

Description

Backend ignoring time constraints for running jobs. Jobs are never queued and processed immediately because the QTime:fromString is returning an invalid QTime with a format string in the function. Relevant entries from backend log with verbose set to important, general, jobqueue. <snip> 2008-07-07 17:00:09.085 JobQueue?: Currently set to run new jobs from 23:42 to 07:18 2008-07-07 17:00:09.105 Invalid JobQueueWindowStart? time, using 00:00 2008-07-07 17:00:09.111 Invalid JobQueueWindowEnd? time, using 23:59 </snip> version info: qt-4.4.0 mythtv trunk r17733

The attached trivial patch resolves the issue for me. I do not know whether the change in programs/mythshutdown/main.cpp is needed as I have not found any issue with it but as it is the only other occurrence of QTime::fromString that does not have a format string I have included it in the patch.

Attachments (1)

qtimefromstring.patch (1.4 KB) - added by Ben Dailey <benddailey@…> 11 years ago.
Fix for QTime::fromString problem

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Ben Dailey <benddailey@…>

Attachment: qtimefromstring.patch added

Fix for QTime::fromString problem

comment:1 Changed 11 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [17736]) Fix JobQueue? time window and mythshutdown issues related to using the default Qt::TextDate? format for Qtime::fromString.

Closes #5526 using patch by Ben Dailey.

comment:2 Changed 11 years ago by anonymous

I am still having this issue with latest SVN using Ubuntu 8.02

2008-07-22 18:26:14.557 Using runtime prefix = /usr/local 2008-07-22 18:26:14.600 Using localhost value of mythtv 2008-07-22 18:26:14.656 New DB connection, total: 1 2008-07-22 18:26:14.689 Connected to database 'mythconverg' at host: 127.0.0.1 2008-07-22 18:26:14.689 Closing DB connection named 'DBManager0' 2008-07-22 18:26:14.690 Connected to database 'mythconverg' at host: 127.0.0.1 2008-07-22 18:26:14.701 Connecting to backend server: 192.168.0.106:6543 (try 1 of 5) 2008-07-22 18:26:14.702 Using protocol version 40 2008-07-22 18:26:14.709 New DB connection, total: 2 2008-07-22 18:26:14.709 Connected to database 'mythconverg' at host: 127.0.0.1 2008-07-22 18:26:24.713 Invalid JobQueueWindowStart? time, using 00:00

comment:3 Changed 11 years ago by cpinkham

If you're still having issues, provide the output of "mythbackend -v jobqueue" so I can see what value is being used.

Note: See TracTickets for help on using tickets.