[mythtv-users] After upgrade to 0.25 mythtv won't accept more than 2 tuners

Edmund edmund.1 at dial.pipex.com
Thu Jul 12 17:24:38 UTC 2012


Hi,

I have been running mythtv 0.21 very happily on a headless backend 
running ubuntu 8.04 (64 bit). I have upgraded to myth 0.25 running on 
exactly the same hardware running ubuntu 12.04 (64 bit).

I have three Nova-T-500 tuners. These are dual DVB-T standard definition 
tuners. In the past I was able to use all six at the same time. Now I am 
able to use only two, which can be two from the same card, or one from 
each of two cards. Any more than two and nothing will schedule. If I 
delete any excess tuners everything is fine again (apart from the 
scheduling conflicts). I have not tried every combination, but I have 
tried some of the obvious ones. I have tried 6,5,4 and 3. I have tried 
one from each of the three cards, and I have excluded each card in turn. 
No luck. When I delete any more than two everything is fine again.

My upgrade process wasn't painless, but the highlights are:-
Export database using mysqldump. (Schema 1214)
On a different Ubuntu 11.10 PC install mythbackend and mysql-server
Import above dump into mysql
Run mythtv-setup, schema upgrades to 1264
Export database using new script
Meanwhile upgrade original server (via 10.04LTS) to 12.04LTS
Drop mythconverg and create it again.
Import 1264 data from other PC
mythtv-setup upgrades schema to 1299.

Initially I could watch live TV, but not schedule any new programs to be 
recorded. The error I got in mythweb was very similar to the error 
below. Then I deleted all cards and video sources and added them back.

With more than two cards I get this error in mythweb:-

*Warning* at /usr/share/mythtv/mythweb/modules/tv/upcoming.php, line 91:
!!NoTrans: Invalid argument supplied for foreach()!!

I have no experience of php, but I think that this is line 91 in case it 
jogs anyone's memory.
   foreach (Schedule::findScheduled() as $callsign => $shows) {

The other thing I have tried is and the console display of this is below.
user at server:~$ sudo mythbackend --testsched -v schedule


2012-07-10 20:51:26.799553 C  mythbackend version: fixes/0.25 [v0.25] 
www.mythtv.org
2012-07-10 20:51:26.799606 N  Enabled verbose msgs:  general schedule
2012-07-10 20:51:26.799654 N  Setting Log Level to LOG_INFO
2012-07-10 20:51:26.799785 I  Added logging to the console
2012-07-10 20:51:26.799807 I  Added database logging to table logging
2012-07-10 20:51:26.800058 N  Setting up SIGHUP handler
2012-07-10 20:51:26.800246 N  Using runtime prefix = /usr
2012-07-10 20:51:26.800396 N  Using configuration directory = 
/home/user1/.mythtv
2012-07-10 20:51:26.800816 I  Assumed character encoding: en_GB.UTF-8
2012-07-10 20:51:26.802388 N  Empty LocalHostName.
2012-07-10 20:51:26.802452 I  Using localhost value of ubuntu-server
2012-07-10 20:51:31.852355 A  Cannot find default UPnP backend
2012-07-10 20:51:31.890312 N  Setting QT default locale to EN_GB
2012-07-10 20:51:31.890466 I  Current locale EN_GB
2012-07-10 20:51:31.890977 N  Reading locale defaults from 
/usr/share/mythtv//locales/en_gb.xml
Calculating Schedule from database.
Inputs, Card IDs, and Conflict info may be invalid if you have multiple 
tuners.
2012-07-10 20:51:31.916186 I  New static DB connectionDataDirectCon
2012-07-10 20:51:32.008410 I  Found 7 distinct programid authorities
2012-07-10 20:51:32.036720 I  Query 0: /record.recordid = :NR0RECID AND 
program.manualid = 0 AND ( program.category_type = 'movie'
AND (program.title LIKE '%Disney%'
      OR program.subtitle LIKE '%Disney%'
      OR program.description LIKE '%Disney%')  )
2012-07-10 20:51:32.036822 I  Query 1: /record.recordid = :NR1RECID AND 
program.manualid = 0 AND ( program.title LIKE 'horizon'  )
2012-07-10 20:51:32.036837 I  Query 2: /record.recordid = :NR2RECID AND 
program.manualid = 0 AND ( channel.commmethod = -2
AND program.category_type='movie'
AND program.stars >= 0.75  )
2012-07-10 20:51:32.036850 I  Query 3: /record.recordid = :NR3RECID AND 
program.manualid = 0 AND ( program.category_type = 'movie'
AND (program.title LIKE '%Harry Potter%')  )
2012-07-10 20:51:32.036878 I  Query 4: /record.search = :NRST AND 
program.manualid = 0 AND program.title = record.title
2012-07-10 20:51:32.036890 I  Query 5: /record.search = :NRST AND 
program.manualid = 0 AND program.seriesid <> '' AND program.seriesid = 
record.seriesid
2012-07-10 20:51:32.037133 I   |-- Start DB Query 0...
2012-07-10 20:51:32.094475 I   |-- -1 results in 0.05725 sec.
2012-07-10 20:51:32.094701 I   |-- Start DB Query 1...
2012-07-10 20:51:32.099090 I   |-- -1 results in 0.004363 sec.
2012-07-10 20:51:32.099280 I   |-- Start DB Query 2...
2012-07-10 20:51:32.148206 I   |-- -1 results in 0.048854 sec.
2012-07-10 20:51:32.148496 I   |-- Start DB Query 3...
2012-07-10 20:51:32.202030 I   |-- -1 results in 0.053496 sec.
2012-07-10 20:51:32.202234 I   |-- Start DB Query 4...
2012-07-10 20:51:32.279005 I   |-- -1 results in 0.076701 sec.
2012-07-10 20:51:32.279258 I   |-- Start DB Query 5...
2012-07-10 20:51:32.335399 I   |-- -1 results in 0.056074 sec.
2012-07-10 20:51:32.335476 I   +-- Done.
2012-07-10 20:51:32.337515 I  BuildWorkList...
2012-07-10 20:51:32.337532 I  AddNewRecords...
2012-07-10 20:51:32.503401 I   |-- Start DB Query...
2012-07-10 20:51:33.529098 E  DB Error (AddNewRecords):
Query was:
SELECT     c.chanid,         c.sourceid, p.starttime,           
p.endtime,        p.title, p.subtitle,            p.description,    
c.channum, c.callsign,            c.name,           oldrecduplicate, 
p.category,            sched_temp_record.recpriority, 
sched_temp_record.dupin,   recduplicate,          findduplicate, 
sched_temp_record.type,        sched_temp_record.recordid, p.starttime - 
INTERVAL sched_temp_record.startoffset     minute AS recstartts,     
p.endtime + INTERVAL sched_temp_record.endoffset minute AS recendts, 
p.previouslyshown,     sched_temp_record.recgroup, 
sched_temp_record.dupmethod,  c.commmethod, capturecard.cardid, 
cardinput.cardinputid,p.seriesid, p.programid,       
sched_temp_record.inetref, p.category_type,       p.airdate,         
p.stars, p.originalairdate,     sched_temp_record.inactive, 
sched_temp_record.parentid,(CASE sched_temp_record.type   WHEN 6 THEN 
sched_temp_record.findid   WHEN 9    THEN to_days(date_sub(p.starttime, 
interval time_format(sched_temp_record.findtime, '%H:%i') hour_minute)) 
WHEN 10    THEN floor((to_days(date_sub(p.starttime, 
interval                time_format(sched_temp_record.findtime, '%H:%i') 
hour_minute)) - sched_temp_record.findday)/7) * 7 + 
sched_temp_record.findday   WHEN 7    THEN sched_temp_record.findid   
ELSE 0  END) , sched_temp_record.playgroup, oldrecstatus.recstatus, 
oldrecstatus.reactivate, p.videoprop+0,         p.subtitletypes+0, 
p.audioprop+0,   sched_temp_record.storagegroup, capturecard.hostname, 
recordmatch.oldrecstatus, sched_temp_record.avg_delay,     
oldrecstatus.future, cardinput.schedorder, c.recpriority + 
cardinput.recpriority + (cardinput.cardinputid = sched_te
2012-07-10 20:51:33.529349 I  AddNotListed...
2012-07-10 20:51:33.529391 I   |-- Start DB Query...
2012-07-10 20:51:33.530131 I   |-- 0 results in 0.000721 sec. Processing...
2012-07-10 20:51:33.530171 I  Sort by time...
2012-07-10 20:51:33.530185 I  PruneOverlaps...
2012-07-10 20:51:33.530189 I  Sort by priority...
2012-07-10 20:51:33.530194 I  BuildListMaps...
2012-07-10 20:51:33.530199 I  SchedNewRecords...
2012-07-10 20:51:33.530203 I  Scheduling:
2012-07-10 20:51:33.530206 I  + = schedule this showing to be recorded
2012-07-10 20:51:33.530211 I  # = could not schedule this showing, retry 
later
2012-07-10 20:51:33.530214 I  ! = conflict caused by this showing
2012-07-10 20:51:33.530218 I  / = retry this showing, same priority pass
2012-07-10 20:51:33.530223 I  ? = retry this showing, lower priority pass
2012-07-10 20:51:33.530227 I  > = try another showing for this program
2012-07-10 20:51:33.530230 I  % = found another showing, same priority 
required
2012-07-10 20:51:33.530243 I  $ = found another showing, lower priority 
allowed
2012-07-10 20:51:33.530247 I  - = unschedule a showing in favor of 
another one
2012-07-10 20:51:33.530812 I  SchedPreserveLiveTV...
2012-07-10 20:51:33.530824 I  ClearListMaps...
2012-07-10 20:51:33.530829 I  Sort by time...
2012-07-10 20:51:33.530833 I  PruneRedundants...
2012-07-10 20:51:33.530838 I  Sort by time...
2012-07-10 20:51:33.530842 I  ClearWorkList...
2012-07-10 20:51:33.535503 I  Speculative scheduled 0 items in 1.5 = 
0.30 match + 1.20 place
2012-07-10 20:51:33.535603 I  --- print list start ---
2012-07-10 20:51:33.535608 I  Title - Subtitle                    Ch 
Station Day Start  End   S C I  T N Pri
2012-07-10 20:51:33.535612 I  ---  print list end  ---

Has anyone come across anything similar? I will be grateful for any 
suggestions.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120712/974baa82/attachment.html>


More information about the mythtv-users mailing list