[MacPorts] #39714: mythtv-core.25 builds on ppc but scheduling fails

MacPorts noreply at macports.org
Mon Jul 15 07:43:20 PDT 2013


#39714: mythtv-core.25 builds on ppc but scheduling fails
-----------------------------+--------------------------
  Reporter:  swbhenderson@…  |      Owner:  ctreleaven@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.1.3
Resolution:                  |   Keywords:  ppc ppc64
      Port:  mythtv-core.25  |
-----------------------------+--------------------------

Comment (by swbhenderson@…):

 1. Uninstalled mysql5 and mysql-server.
 2. Deleted /opt/local/var/db/mysql5
 3. Re-installed mysql5 and mysql-server
 5. Initialized database
 6. Loaded with mc.sql
 7. Shut down all other backends
 8. Ran mythtv-setup from script and configured as simply as possible,
 correcting corrupted call sign and description, making channels visible
 and adding XMLTVIDs. Log attached.
 9. Ran mythfilldatabase (from terminal to ensure a log - log attached.):
 {{{
 /opt/local/bin/mythfilldatabase --loglevel info --logpath
 /opt/local/var/log/mythtv.25 --verbose general --dd-grab-all
 }}}
 10. Started mythbackend using script with --loglevel info and --verbose
 general in plist.
 11. Scheduled a recording at 07:59 of a program starting at 08:00 using
 "R" in the EPG. Obviously close enough to initiate recording:
 {{{
 2013-07-15 07:59:53.076172 I [1185/13571] Scheduler scheduler.cpp:2036
 (HandleReschedule) - Reschedule requested for id 1.
 2013-07-15 07:59:53.176138 I [1185/13571] Scheduler scheduler.cpp:2096
 (HandleReschedule) - Scheduled 1 items in 0.1 = 0.04 match + 0.06 place
 2013-07-15 07:59:53.695943 I [1185/12551] TVRecEvent tv_rec.cpp:1544
 (HandlePendingRecordings) - TVRec(3): ASK_RECORDING 3 5 0 0
 2013-07-15 07:59:53.773936 I [1185/13315] TVRecEvent tv_rec.cpp:1544
 (HandlePendingRecordings) - TVRec(4): ASK_RECORDING 4 5 0 0
 2013-07-15 08:00:00.082785 I [1185/12551] TVRecEvent tv_rec.cpp:1030
 (HandleStateChange) - TVRec(3): Changing from None to RecordingOnly
 2013-07-15 08:00:00.086891 I [1185/12551] TVRecEvent tv_rec.cpp:3503
 (TuningCheckForHWChange) - TVRec(3): HW Tuner: 3->3
 2013-07-15 08:00:00.142235 N [1185/13571] Scheduler autoexpire.cpp:263
 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 2.0 GB
 w/freq: 14 min
 2013-07-15 08:00:00.144937 I [1185/13571] Scheduler scheduler.cpp:2515
 (HandleRecordingStatusChange) - Tuning recording: "Curious George":"Robot
 Monkey Hullabalo; Curious George and the Slithery Day": channel 1161 on
 cardid 3, sourceid 1
 2013-07-15 08:00:01.637118 I [1185/523] CoreContext scheduler.cpp:638
 (UpdateRecStatus) - Updating status for "Curious George":"Robot Monkey
 Hullabalo; Curious George and the Slithery Day" on cardid 3 (Tuning =>
 Recording)
 2013-07-15 08:00:01.715983 I [1185/12551] TVRecEvent tv_rec.cpp:3997
 (TuningNewRecorder) - TVRec(3): rec->GetPathname():
 '/Volumes/Default/1161_20130715080000.mpg'
 2013-07-15 08:00:01.725077 E [1185/12551] TVRecEvent recorderbase.cpp:164
 (SetStrOption) - RecBase(3:1030BB7E-1): SetStrOption(...recordingtype):
 Option not in profile.
 2013-07-15 08:00:20.151310 N [1185/14083] Expire autoexpire.cpp:263
 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 2.0 GB
 w/freq: 14 min

 }}}
 11. Created  a rule to record "Cat in the Hat." First scheduled recording
 at 08:30.

 {{{
 2013-07-15 08:01:12.756057 I [1185/13571] Scheduler scheduler.cpp:2036
 (HandleReschedule) - Reschedule requested for id 2.
 2013-07-15 08:01:13.000842 I [1185/13571] Scheduler scheduler.cpp:2096
 (HandleReschedule) - Scheduled 27 items in 0.2 = 0.03 match + 0.21 place
 }}}

 12. Created a rule to record "Sesame Street." First scheduled recording at
 10:00.

 {{{
 2013-07-15 08:05:46.738433 I [1185/13571] Scheduler scheduler.cpp:2036
 (HandleReschedule) - Reschedule requested for id 3.
 2013-07-15 08:05:47.275202 I [1185/13571] Scheduler scheduler.cpp:2096
 (HandleReschedule) - Scheduled 67 items in 0.5 = 0.03 match + 0.50 place
 }}}
 At 08:30 "Curious George" ends but nothing starts

 {{{
 2013-07-15 08:29:47.271771 I [1185/13571] Scheduler scheduler.cpp:2036
 (HandleReschedule) - Reschedule requested for id 0.
 2013-07-15 08:29:47.493605 I [1185/12551] TVRecEvent tv_rec.cpp:1544
 (HandlePendingRecordings) - TVRec(3): ASK_RECORDING 3 11 0 0
 2013-07-15 08:29:47.777393 I [1185/13571] Scheduler scheduler.cpp:2096
 (HandleReschedule) - Scheduled 67 items in 0.5 = 0.00 match + 0.50 place
 2013-07-15 08:29:47.783759 I [1185/13315] TVRecEvent tv_rec.cpp:1544
 (HandlePendingRecordings) - TVRec(4): ASK_RECORDING 4 11 0 0
 2013-07-15 08:30:20.054921 N [1185/14083] Expire autoexpire.cpp:263
 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 2.0 GB
 w/freq: 14 min
 2013-07-15 08:30:29.579740 I [1185/12551] TVRecEvent tv_rec.cpp:1030
 (HandleStateChange) - TVRec(3): Changing from RecordingOnly to None
 2013-07-15 08:30:29.625460 I [1185/523] CoreContext scheduler.cpp:638
 (UpdateRecStatus) - Updating status for "Curious George":"Robot Monkey
 Hullabalo; Curious George and the Slithery Day" on cardid 3 (Recording =>
 Recorded)
 2013-07-15 08:30:29.635622 I [1185/12551] TVRecEvent
 recordinginfo.cpp:1113 (FinishedRecording) - Finished recording Curious
 George "Robot Monkey Hullabalo; Curious George and the Slithery Day":
 channel 1161
 2013-07-15 08:30:29.639149 I [1185/13571] Scheduler scheduler.cpp:2036
 (HandleReschedule) - Reschedule requested for id 0.
 2013-07-15 08:30:29.658062 E [1185/523] CoreContext mainserver.cpp:871
 (customEvent) - MainServer: PREVIEW_SUCCESS but no receivers.
 }}}
 and at 10:00

 {{{
 2013-07-15 09:58:28.663327 N [1371/18435] Expire autoexpire.cpp:263
 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 1.0 GB
 w/freq: 15 min
 2013-07-15 09:59:55.670694 I [1371/18179] HouseKeeping housekeeper.cpp:225
 (RunHouseKeeping) - Running housekeeping thread
 2013-07-15 10:03:27.576010 I [1371] ProcessRequest mainserver.cpp:1360
 (HandleAnnounce) - MainServer::ANN Monitor
 2013-07-15 10:03:27.576064 I [1371] ProcessRequest mainserver.cpp:1362
 (HandleAnnounce) - adding: ariel.local as a client (events: 0)
 2013-07-15 10:03:27.577448 I [1371] ProcessRequest mainserver.cpp:1360
 (HandleAnnounce) - MainServer::ANN Monitor
 2013-07-15 10:03:27.577467 I [1371] ProcessRequest mainserver.cpp:1362
 (HandleAnnounce) - adding: ariel.local as a client (events: 1)
 }}}
 13. In the schedule ALL FUTURE recordings for rules where one instance has
 already passed the recordings are listed as "Missed" or "Earlier Showing"
 even when it is new episode.

 {{{
 2013-07-15 10:24:06.807377 I  --- print list start ---
 2013-07-15 10:24:06.807399 I  Title - Subtitle                    Ch
 Station Day Start  End   S C I  T N Pri
 2013-07-15 10:24:06.807776 I  Dinosaur Train - Valley of the Sty 16_3
 WPBSDT3 15 14:30-15:00  1 0 0  A E 0
 2013-07-15 10:24:06.807851 I  The Cat in the Hat Knows a Lot Abo 16_3
 WPBSDT3 15 15:00-15:30  1 0 0  A E 0
 2013-07-15 10:24:06.807911 I  The Cat in the Hat Knows a Lot Abo 16_1
 WPBSDT  16 08:30-09:00  1 0 0  A M 0
 2013-07-15 10:24:06.807969 I  The Cat in the Hat Knows a Lot Abo 16_3
 WPBSDT3 16 08:30-09:00  1 0 0  A E 0
 2013-07-15 10:24:06.808031 I  Dinosaur Train - The Call of the W 16_1
 WPBSDT  16 09:30-10:00  1 3 3  A 3 0
 2013-07-15 10:24:06.808088 I  Dinosaur Train - The Call of the W 16_3
 WPBSDT3 16 09:30-10:00  1 0 0  A E 0
 2013-07-15 10:24:06.808146 I  Sesame Street - Porridge Art       16_1
 WPBSDT  16 10:00-11:00  1 0 0  A M 0
 2013-07-15 10:24:06.808203 I  Sesame Street - Porridge Art       16_3
 WPBSDT3 16 10:00-11:00  1 0 0  A E 0
 2013-07-15 10:24:06.808260 I  Dinosaur Train - The Call of the W 16_3
 WPBSDT3 16 14:30-15:00  1 0 0  A E 0
 2013-07-15 10:24:06.808316 I  The Cat in the Hat Knows a Lot Abo 16_3
 WPBSDT3 16 15:00-15:30  1 0 0  A E 0
 2013-07-15 10:24:06.808374 I  The Cat in the Hat Knows a Lot Abo 16_1
 WPBSDT  17 08:30-09:00  1 0 0  A M 0
 2013-07-15 10:24:06.808431 I  The Cat in the Hat Knows a Lot Abo 16_3
 WPBSDT3 17 08:30-09:00  1 0 0  A E 0
 2013-07-15 10:24:06.808489 I  Dinosaur Train - Beating the Heat; 16_1
 WPBSDT  17 09:30-10:00  1 3 3  A 3 0
 2013-07-15 10:24:06.808545 I  Dinosaur Train - Beating the Heat; 16_3
 WPBSDT3 17 09:30-10:00  1 0 0  A E 0
 2013-07-15 10:24:06.808602 I  Sesame Street - Build a Better Bas 16_1
 WPBSDT  17 10:00-11:00  1 0 0  A M 0
 2013-07-15 10:24:06.808659 I  Sesame Street - Build a Better Bas 16_3
 WPBSDT3 17 10:00-11:00  1 0 0  A E 0
 2013-07-15 10:24:06.808715 I  Dinosaur Train - Beating the Heat; 16_3
 WPBSDT3 17 14:30-15:00  1 0 0  A E 0
 2013-07-15 10:24:06.808772 I  The Cat in the Hat Knows a Lot Abo 16_3
 WPBSDT3 17 15:00-15:30  1 0 0  A E 0
 2013-07-15 10:24:06.808830 I  The Cat in the Hat Knows a Lot Abo 16_1
 WPBSDT  18 08:30-09:00  1 0 0  A M 0
 2013-07-15 10:24:06.808888 I  The Cat in the Hat Knows a Lot Abo 16_3
 WPBSDT3 18 08:30-09:00  1 0 0  A E 0
 2013-07-15 10:24:06.808945 I  Dinosaur Train - I'm a T. Rex!; Ne 16_1
 WPBSDT  18 09:30-10:00  1 3 3  A 3 0
 2013-07-15 10:24:06.809002 I  Dinosaur Train - I'm a T. Rex!; Ne 16_3
 WPBSDT3 18 09:30-10:00  1 0 0  A E 0
 2013-07-15 10:24:06.809060 I  Sesame Street - Max the Magician   16_1
 WPBSDT  18 10:00-11:00  1 0 0  A M 0
 2013-07-15 10:24:06.809117 I  Sesame Street - Max the Magician   16_3
 WPBSDT3 18 10:00-11:00  1 0 0  A E 0
 }}}

 PS
 Previously, as an experiment before I dumped the mysql installation
 entirely, I dumped mythconverg from the intel box, imported it to a new
 database on the PPC, and then manually changed all the hostname and IP
 references in the database. It ran without error on the the PPC but none
 of the rules that had previously worked on the intel box fired on the PPC.

 Replying to [comment:17 swbhenderson@…]:
 > Replying to [comment:16 ctreleaven@…]:
 > > OK, that should not happen.  I checked with the other G5 user and she
 confirmed that she originally had the byte-swapped characters (and
 manually entered corrections) and all channels invisible.  She mentioned
 that she had two instances of mysqld running when she converted to using
 Macports for Myth.  They _should_ be separate but...check with 'ps aux
 |grep mysqld'.
 > >
 > > Two more possibilities.  First, perhaps your database has become
 corrupted.  Make a backup and then optimize the database; docs at:
 > >
 > > http://www.mythtv.org/wiki/User_Manual:Periodic_Maintenance
 > >
 > > Via MacPorts, the backup and optimize utilities are at:
 >
 > Very interesting.
 >
 > The database is brand new. About a week old. works fine for XBMC and I
 regular check it out using SEQEL PRO from on or other of the Mac boxes.
 >
 > BUT
 >
 > Your other G5 users comments ... never would have looked at that:
 >
 > {{{
 > _mysql     294   0.0  2.5  2484004 206812   ??  S    10:54AM   7:02.57
 /opt/local/libexec/mysqld --basedir=/opt/local
 --datadir=/opt/local/var/db/mysql5 --user=_mysql --log-
 error=/opt/local/var/db/mysql5/ariel.local.err --open-files-limit=8192
 --pid-file=/opt/local/var/db/mysql5/ariel.local.pid
 --socket=/opt/local/var/run/mysql5/mysqld.sock --port=3306
 > root        73   0.0  0.0    75944    796   ??  S    10:54AM   0:00.12
 /bin/sh /opt/local/lib/mysql5/bin/mysqld_safe
 --datadir=/opt/local/var/db/mysql5 --pid-
 file=/opt/local/var/db/mysql5/ariel.local.pid
 >
 > }}}
 > Which one is the real one and where are they coming form?
 >
 >
 > > /opt/local/share/mythtv/mythconverg_backup.pl
 > > /opt/local/share/mythtv/contrib/optimize_mythdb.pl
 > >
 > > The "optimize" step uses MySQL functions to fix any basic problems
 with the database tables.  It is best if Myth is idle while the optimize
 script runs.
 > >
 > > Second, perhaps there is something wonky with the setup of your
 HDHomerun tuners.  Proper steps are:
 > >
 > >
 http://www.mythtv.org/wiki/Silicondust_HDHomeRun#North_America_Digital_Antenna
 > >
 > > I don't know if it is still necessary, but I've used my router to give
 my HDHomeruns reserved (unchanging) IP addresses.  I know that was
 required in the early days but it may no longer be necessary.
 > >
 > > Third (yeah, I know I said two but I thought of something else ;), are
 you certain that the other instances of myth are shut down?  Don't want
 something else grabbing the tuner before us!

-- 
Ticket URL: <https://trac.macports.org/ticket/39714#comment:20>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list