[mythtv] mythtv-setup, scanning channels and EIT. What goes wrong and where (and partly why!)

JJussi linux-dvb at jjussi.com
Wed Apr 4 20:23:21 UTC 2007


Hi!

This message is about mythtv-setup, scanning channels and EIT. What goes wrong 
and where (and partly why!)

First base information:
Distribution: Gentoo
MythTV version: 0.20_p12172(19:27:40 03/27/07)
dvbscan (linuxtv-dvb-apps) version: 1.1.1.20070114(19:48:34 04/02/07)

And then what I have done:

#>dvbscan -n -x 0 -t 3 -p -U /usr/share/dvb/dvb-c/fi-HTV   
> /etc/vdr/channels.htv.scan

That gives me 25 lines with 5 different frequencies, with line form of
"TV1:274000000:INVERSION_AUTO:6900000:FEC_NONE:QAM_128:512:650:17"

// To empty mysql tables
#>mysql
% use mythconverg
% truncate table chanel ;
% truncate table dtv_multiplex ;
% \q

#>/etc/init.d/mythbackend stop

#>mythtv-setup
--> 5. Channel Editor
--> Channel Scanner
--> Scan Type: Import channels.conf
     File location: /etc/vdr/channels.htv.scan
--> Next
--> Finish

// easy way to put EIT working on channels
#>mysql
% update channel set useonairguide=1 ;
%\q

Now, if I close setup-program, start backend, start mythtv I can watch TV but 
EPG don't work.. Because at 'dtv_multiplex'-table lines are:
(1, 1, NULL, NULL, 250000000, 'a', 6900000, 'none', 'v', 'qam_128', 'a', 
'auto', 'a', 'auto', 0, 'auto', 'a', 'auto', 'dvb', 33, '2007-04-04 
20:15:36'),
(2, 1, NULL, NULL, 394000000, 'a', 6900000, 'none', 'v', 'qam_128', 'a', 
'auto', 'a', 'auto', 0, 'auto', 'a', 'auto', 'dvb', 33, '2007-04-04 
20:15:36'),
(3, 1, NULL, NULL, 162000000, 'a', 6900000, 'none', 'v', 'qam_64', 'a', 
'auto', 'a', 'auto', 0, 'auto', 'a', 'auto', 'dvb', 33, '2007-04-04 
20:15:36'),
(4, 1, NULL, NULL, 282000000, 'a', 6900000, 'none', 'v', 'qam_128', 'a', 
'auto', 'a', 'auto', 0, 'auto', 'a', 'auto', 'dvb', 33, '2007-04-04 
20:15:36'),
(5, 1, NULL, NULL, 274000000, 'a', 6900000, 'none', 'v', 'qam_128', 'a', 
'auto', 'a', 'auto', 0, 'auto', 'a', 'auto', 'dvb', 33, '2007-04-04 
20:15:36');

Where  all 'transportid' and 'networkid' are NULL.
OK, EIT can't work without 'transportid'/'networkid' information.  Maybe this 
can be fixed?!?

OK, next problem and here we found errors...

#>mythtv-setup
--> 5. Channel Editor
--> Delete Channels, Yes delete the channels
--> Channel Scanner
--> Scan Type: Full Scan of Existing Transports
--> Next

Setup program CRASH:

2007-04-04 22:18:10.387 SDT: Error determing what transport this service table 
is associated with so failing
2007-04-04 22:18:11.380 SDT: Error determing what transport this service table 
is associated with so failing
2007-04-04 22:18:12.322 New DB DataDirect connection
2007-04-04 22:18:12.323 Connected to database 'mythconverg' at host: 
10.0.1.132
2007-04-04 22:18:13.387 SDT: Error determing what transport this service table 
is associated with so failing
*** glibc detected *** mythtv-setup: free(): invalid pointer: 0xb5c0e74f ***
======= Backtrace: =========
/lib/libc.so.6[0xb5eb1427]
/lib/libc.so.6(__libc_free+0x7a)[0xb5eb29d4]
/usr/qt/3/lib/libqt-mt.so.3(_ZN7QGArrayD2Ev+0x45)[0xb6758041]
/usr/qt/3/lib/libqt-mt.so.3(_ZN7QBufferD0Ev+0x38)[0xb6744428]
/usr/qt/3/lib/libqt-mt.so.3(_ZN11QDataStreamD1Ev+0x35)[0xb674d191]
/usr/qt/3/lib/libqt-mt.so.3(_ZNK11QTranslator11findMessageEPKcS1_S1_+0x779)
[0xb64b9de5]
/usr/qt/3/lib/libqt-mt.so.3
(_ZNK12QApplication9translateEPKcS1_S1_NS_8EncodingE+0xa5)[0xb6470e33]
/usr/lib/libmythtv-0.20.so.0(_ZN6SIScan2trEPKcS1_+0x4e)[0xb7ce6288]
[0x97546e4]
======= Memory map: ========
08048000-08082000 r-xp 00000000 08:03 919323     /usr/bin/mythtv-setup
08082000-08083000 rw-p 00039000 08:03 919323     /usr/bin/mythtv-setup
08083000-0979f000 rw-p 08083000 00:00 0          [heap]
ae921000-aec53000 rw-p ae921000 00:00 0 
aec53000-aec54000 ---p aec53000 00:00 0 
aec54000-af454000 rw-p aec54000 00:00 0 
af454000-af455000 ---p af454000 00:00 0 
af455000-afc55000 rw-p af455000 00:00 0 
afc55000-afc56000 ---p afc55000 00:00 0 
afc56000-b2ae0000 rw-p afc56000 00:00 0 
b2b4d000-b422a000 rw-p b2b4d000 00:00 0 
b4250000-b4628000 rw-p b4250000 00:00 0 
b4647000-b468d000 r--p 00000000 08:03 
942141     /usr/share/fonts/corefonts/arialbd.ttf
b468d000-b46d4000 rw-p b468d000 00:00 0 
b46e1000-b4700000 r--p 00000000 08:03 
942161     /usr/share/fonts/corefonts/trebucbd.ttf
b4700000-b4721000 rw-p b4700000 00:00 0 
b4721000-b4800000 ---p b4721000 00:00 0 
b4812000-b4821000 r--p 00000000 08:03 
838447     /usr/share/fonts/ttf-bitstream-vera/VeraBd.ttf
b4821000-b483e000 r--p 00000000 08:03 
942144     /usr/share/fonts/corefonts/ariblk.ttf
b483e000-b485d000 r--p 00000000 08:03 
942160     /usr/share/fonts/corefonts/trebuc.ttf
b485d000-b486e000 r--p 00000000 08:03 
838445     /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
b486e000-b486f000 ---p b486e000 00:00 0 
b486f000-b506f000 rw-p b486f000 00:00 0 
b506f000-b5070000 ---p b506f000 00:00 0 
b5070000-b58b1000 rw-p b5070000 00:00 0 
b58b1000-b58f5000 r--p 00000000 08:03 
942139     /usr/share/fonts/corefonts/arial.ttf
b58f5000-b58fd000 r-xp 00000000 08:03 669902     /lib/libnss_files-2.5.so
b58fd000-b58ff000 rw-p 00007000 08:03 669902     /lib/libnss_files-2.5.so
b58ff000-b5a13000 r-xp 00000000 08:03 571420     /usr/lib/libcrypto.so.0.9.8
b5a13000-b5a27000 rw-p 00114000 08:03 571420     /usr/lib/libcrypto.so.0.9.8
b5a27000-b5a2b000 rw-p b5a27000 00:00 0 
b5a2b000-b5a63000 r-xp 00000000 08:03 571423     /usr/lib/libssl.so.0.9.8
b5a63000-b5a67000 rw-p 00038000 08:03 571423     /usr/lib/libssl.so.0.9.8
b5a67000-b5a78000 r-xp 00000000 08:03 669738     /lib/libnsl-2.5.so
b5a78000-b5a7a000 rw-p 00010000 08:03 669738     /lib/libnsl-2.5.so
b5a7a000-b5a7c000 rw-p b5a7a000 00:00 0 
b5a7c000-b5a81000 r-xp 00000000 08:03 669863     /lib/libcrypt-2.5.so
b5a81000-b5a83000 rw-p 00004000 08:03 669863     /lib/libcrypt-2.5.so
b5a83000-b5aaa000 rw-p b5a83000 00:00 0 
b5aaa000-b5bbd000 r-xp 00000000 08:03 
1015986    /usr/lib/mysql/libmysqlclient.so.15.0.0
b5bbd000-b5bff000 rw-p 00112000 08:03 
1015986    /usr/lib/mysql/libmysqlclient.so.15.0.0
b5bff000-b5c00000 rw-p b5bff000 00:00 0 
b5c0b000-b5c0f000 r--p 00000000 08:03 
919818     /usr/share/mythtv/i18n/mythfrontend_en_gb.qm
b5c0f000-b5c18000 r-xp 00000000 08:03 
871845     /usr/qt/3/plugins/sqldrivers/libqsqlmysql.so
b5c19000-b5c1a000 rw-p b5c19000 00:00 0 
b5c1a000-b5c20000 r--s 00000000 08:03 
698981     /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2
b5c20000-b5c23000 r--s 00000000 08:03 
956073     /var/cache/fontconfig/7998293451e4b7352c3495b870377734-x86.cache-2
b5c23000-b5c25000 r--s 00000000 08:03 
696425     /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-x86.cache-2
b5c25000-b5c33000 r--s 00000000 08:03 
840830     /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b5c33000-b5c55000 r--s 00000000 08:03 
840825     /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
b5c55000-b5c77000 r--s 00000000 08:03 
848445     /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
b5c77000-b5c7a000 rw-p b5c77000 00:00 0 
b5c7a000-b5c96000 r-xp 00000000 08:03 310395     /usr/lib/libexpat.so.0.5.0
b5c96000-b5c98000 rw-p 0001c000 08:03 310395     /usr/lib/libexpat.so.0.5.0
b5c98000-b5c9c000 r-xp 00000000 08:03 783763     /usr/lib/libXfixes.so.3.1.0
b5c9c000-b5c9d000 rw-p 00003000 08:03 783763     /usr/lib/libXfixes.so.3.1.0
b5c9d000-b5c9e000 rw-p b5c9d000 00:00 0 
b5c9e000-b5ca2000 r-xp 00000000 08:03 498415     /usr/lib/libXdmcp.so.6.0.0
b5ca2000-b5ca3000 rw-p 00003000 08:03 498415     /usr/lib/libXdmcp.so.6.0.0
b5ca3000-b5ca5000 r-xp 00000000 08:03 497613     /usr/lib/libXau.so.6.0.0
b5ca6000-b5cf0000 r-xp 00000000 08:03 534629     /usr/lib/libXt.so.6.0.0
b5cf0000-b5cf4000 rw-p 00049000 08:03 534629     /usr/lib/libXt.so.6.0.0
b5cf4000-b5cfc000 r-xp 00000000 08:03 771424     /usr/lib/libdrm.so.2.3.0
b5cfc000-b5cfd000 rw-p 00007000 08:03 771424     /usr/lib/libdrm.so.2.3.0
b5cfd000-b5cfe000 rw-p b5cfd000 00:00 0 
b5cfe000-b5d11000 r-xp 00000000 08:03 498403     /usr/lib/libICE.so.6.3.0
b5d11000-b5d12000 rw-p 00012000 08:03 498403     /usr/lib/libICE.so.6.3.0
b5d12000-b5d14000 rw-p b5d12000 00:00 0 
b5d14000-b5d1c000 r-xp 00000000 08:03 823169     /usr/lib/libSM.so.6.0.0
b5d1c000-b5d1d000 rw-p 00007000 08:03 823169     /usr/lib/libSM.so.6.0.0
b5d1d000-b5d3e000 r-xp 00000000 08:03 
770133     /usr/lib/libfontconfig.so.1.2.0
b5d3e000-b5d46000 rw-p 00021000 08:03 770133     /usr/libAborted


AFTER this I have:
dtv_multiplex-table:  111 records  every frequency have now multible lines 
with different OR same  transportid. Transportid's variating from 1 to 22.  
F.ex. freq 274000000 have now 6 lines with same values but (of course) 
different mplexid's.
(5, 1, NULL, NULL, 274000000, 'a', 6900000, 'none', 'v', 'qam_128', 'a', 
'auto', 'a', 'auto', 0, 'auto', 'a', 'auto', 'dvb', 33, '2007-04-04 
20:15:36'),
(27, 1, 1, NULL, 274000000, NULL, 6900000, 'none', NULL, 'qam_128', NULL, 
NULL, NULL, NULL, 0, NULL, NULL, NULL, 'dvb', 33, '2007-04-04 22:18:10'),
(48, 1, 1, NULL, 274000000, NULL, 6900000, 'none', NULL, 'qam_128', NULL, 
NULL, NULL, NULL, 0, NULL, NULL, NULL, 'dvb', 33, '2007-04-04 22:18:11'),
(69, 1, 1, NULL, 274000000, NULL, 6900000, 'none', NULL, 'qam_128', NULL, 
NULL, NULL, NULL, 0, NULL, NULL, NULL, 'dvb', 33, '2007-04-04 22:18:12'),
(90, 1, 1, NULL, 274000000, NULL, 6900000, 'none', NULL, 'qam_128', NULL, 
NULL, NULL, NULL, 0, NULL, NULL, NULL, 'dvb', 33, '2007-04-04 22:18:13'),
(111, 1, 1, NULL, 274000000, NULL, 6900000, 'none', NULL, 'qam_128', NULL, 
NULL, NULL, NULL, 0, NULL, NULL, NULL, 'dvb', 33, '2007-04-04 22:18:14');

Only one line have 'networkid' set and all channels (what are at 
channel-table) points to that 'mplexid'-line.

channe-tablel: (only) 12 records (because program crashed) but those channels 
have 'mplexid' set to point dtv_multiplex lines so IF I start 'mythtv' EPG 
works fine  at those few channels what I have after crashed scan.

EVERY TIME  when I try to scan with mythtv-setup it inserts more and MORE same 
lines to database... Some point you have thousands lines and scanning is 
everytime slower and slower.. Of course..

Hopely this looooooong message helps someone to fix something..   F.ex. that, 
that program would not insert duplicate line to database...  Only UPDATE 
lines..
And maybe FIX that scan... So it wouln't crash...
OR make EIT scan work without  'transportid' and/or 'networkid'

IF some developer needs more info/debug... I would happily provide.. Just tell 
me what to do and how..

--- JJussi

-- 
JJussi


More information about the mythtv-dev mailing list