[mythtv-commits] Ticket #154: mythconverg.cardinput.startchan being
written as NULL
MythTV
mythtv at cvs.mythtv.org
Sat Jul 23 00:06:20 EDT 2005
#154: mythconverg.cardinput.startchan being written as NULL
--------------------+-------------------------------------------------------
Id: 154 | Status: new
Component: mythtv | Modified: Sat Jul 23 04:06:20 2005
Severity: medium | Milestone:
Priority: minor | Version: 0.18.1
Owner: ijr | Reporter: blammo.doh at gmail.com
--------------------+-------------------------------------------------------
Summary:
When attempting to use a frontend to view LiveTV and sourcing from a DVB
backend, sometimes a frontend gets confused and leaves an empty value in
mythconverg.cardinput.startchan.
From that point on, that capture card is un-usable for LiveTV. Anything
scheduled works fine, but any attempts at liveTV fail.
Workaround:
Force the value in SQL back to something other than NULL, and stop/start
mythbackend, and stop/start mythfrontend
How to repeat:
mysql> select cardinputid,cardid,tunechan,startchan from cardinput;[[BR]]
+-------------+--------+----------+-----------+[[BR]]
| cardinputid | cardid | tunechan | startchan |[[BR]]
+-------------+--------+----------+-----------+[[BR]]
| 1 | 1 | 15 | 15 |[[BR]]
| 2 | 2 | 15_1 | 15_1 |[[BR]]
| 3 | 3 | 15_1 | 15_1 |[[BR]]
+-------------+--------+----------+-----------+[[BR]]
3 rows in set (0.00 sec)[[BR]]
Choose "LIVETV" on a frontend that is somehow confused about what
LiveTV means (and this issue stays after stop/start frontend. The
frontend will black screen then back to the menu.
2005-07-12 02:22:14.709 Changing from None to WatchingLiveTV[[BR]]
2005-07-12 02:22:14.746 DVB#0 Recorder: Card opened successfully
(using TS mode).[[BR]]
2005-07-12 02:22:14.748 DVB#0 ERROR - No PIDS set, please correct your
channel setup.[[BR]]
2005-07-12 02:22:15.749 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:16.751 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:17.753 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:18.755 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:19.756 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:20.758 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:21.760 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:22.762 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:23.764 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:24.766 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:25.767 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:26.769 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:27.771 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:28.773 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:29.775 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:29.777 Couldn't read data from the capture card in
15[[BR]]
seconds. Stopping.[[BR]][[BR]]
2005-07-12 02:22:29.807 Changing from WatchingLiveTV to None[[BR]]
2005-07-12 02:22:30.777 DVB#0 WARNING - No data from card in 1
second.[[BR]]
2005-07-12 02:22:30.778 Closing DVB recorder[[BR]]
[[BR]]
The PID's aren't actually missing, and if you correct the issue in SQL,
stop and start the backend in question, stop and start the frontend, then
you can view LiveTV again.
A query of the table shows:
mysql> select cardinputid,cardid,tunechan,startchan from cardinput;[[BR]]
+-------------+--------+----------+-----------+[[BR]]
| cardinputid | cardid | tunechan | startchan |[[BR]]
+-------------+--------+----------+-----------+[[BR]]
| 1 | 1 | 15 | 15 |[[BR]]
| 2 | 2 | 15_1 | 15_1 |[[BR]]
| 3 | 3 | 15_1 | |[[BR]]
+-------------+--------+----------+-----------+[[BR]]
3 rows in set (0.00 sec)[[BR]]
Notice the absence of "startchan"
If we can't solve what's creating the issue (which, unfortunately, I don't
have enough logs to help with) there needs to be some logic to check for
null startchan. Any value other than a numeric, or numeric_numeric should
be invalid, and take "tunechan" instead.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/154>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list