XBMC Community Forum
MythTV PVR client Addon Developers Wanted - Developers Only! - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: PVR Development (/forumdisplay.php?fid=136)
+--- Thread: MythTV PVR client Addon Developers Wanted - Developers Only! (/showthread.php?tid=82015)



- fiveisalive - 2011-02-09 07:55

fiveisalive Wrote:I will give it a shot ASAP

nope, still no workie. Sad I pulled down the latet branch reinstalled, deleted my old ~/.xbmc/ but still get:

Code:
00:50:05 T:140569306736800 M:3185352704   ERROR: Previous line repeats 5 times.
00:50:05 T:140569306736800 M:3185352704   DEBUG: LIRC: Update - NEW at 180773:000000008001001c 00 KEY_ENTER Antec_Veris_RM200 (KEY_ENTER)
00:50:05 T:140569306736800 M:3185352704   DEBUG: OnKey: 11 (0b) pressed, action is Select
00:50:05 T:140569306736800 M:3185352704   DEBUG: LIRC: Update - NEW at 180790:000000008001001c 00 KEY_ENTER_UP Antec_Veris_RM200 (KEY_ENTER_UP)
00:50:05 T:140569306736800 M:3185352704   DEBUG: ------ Window Deinit (DialogOK.xml) ------
00:50:05 T:140569132848896 M:3185352704   ERROR: PVR: MythTV PVR Client/http://127.0.0.1:6544 - Client returns bad error (-2) after SignalQuality
00:50:05 T:140569306736800 M:3185352704   DEBUG: LIRC: Update - NEW at 181637:000000008001006c 00 KEY_DOWN Antec_Veris_RM200 (KEY_DOWN)
00:50:05 T:140569306736800 M:3185352704   DEBUG: OnKey: 167 (a7) pressed, action is Down
00:50:05 T:140569306736800 M:3185360896   DEBUG: LIRC: Update - NEW at 181655:000000008001006c 00 KEY_DOWN_UP Antec_Veris_RM200 (KEY_DOWN_UP)
00:50:06 T:140569132848896 M:3185360896   ERROR: PVR: MythTV PVR Client/http://127.0.0.1:6544 - Client returns bad error (-2) after SignalQuality
00:50:08 T:140569306736800 M:3185352704   ERROR: Previous line repeats 1 times.
00:50:08 T:140569306736800 M:3185352704   DEBUG: LIRC: Update - NEW at 183817:000000008001001c 00 KEY_ENTER Antec_Veris_RM200 (KEY_ENTER)
00:50:08 T:140569306736800 M:3185352704   DEBUG: OnKey: 11 (0b) pressed, action is Select
00:50:08 T:140569306736800 M:3185352704   DEBUG: new file set audiostream:0
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerCoreFactory::GetPlayers(pvr://channels/tv/all/3.pvr)
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
00:50:08 T:140569306736800 M:3185352704   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
00:50:08 T:140569306736800 M:3185352704  NOTICE: DVDPlayer: Opening: pvr://channels/tv/all/3.pvr
00:50:08 T:140569306736800 M:3185352704 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:50:08 T:140568540579584 M:3185352704   DEBUG: thread start, auto delete: 0
00:50:08 T:140568540579584 M:3185352704  NOTICE: Creating InputStream
00:50:08 T:140569306736800 M:3185225728   DEBUG: ------ Window Init (DialogBusy.xml) ------
00:50:08 T:140569306736800 M:3185225728   DEBUG: Alloc resources: 0.00ms (0.00 ms skin load)
00:50:08 T:140569306736800 M:3185225728   DEBUG: LIRC: Update - NEW at 183925:000000008001001c 00 KEY_ENTER_UP Antec_Veris_RM200 (KEY_ENTER_UP)
00:50:08 T:140568540579584 M:3185659904   DEBUG: PVRManager - OpenLiveStream - opening live stream on channel 'WBZ-TV'
00:50:08 T:140568540579584 M:3185659904   DEBUG: Open - TV Channel has started on filename pvr://channels/tv/all/3.pvr
00:50:08 T:140568540579584 M:3185659904   DEBUG: AquireSession - Aquired existing MythTV session: 0x7fd8a403ec40
00:50:08 T:140568540579584 M:3185659904   ERROR: (cmyth)cmyth_conn_connect: asked for version 8, got version 23056
00:50:08 T:140568540579584 M:3185659904   ERROR: (cmyth)cmyth_conn_connect: asked for version 56, got version 23056
00:50:08 T:140568540579584 M:3185659904   ERROR: (cmyth)cmyth_conn_connect: failed to connect with any version
00:50:08 T:140568540579584 M:3185659904   ERROR: GetControl - unable to connect to server on 127.0.0.1:6543
00:50:08 T:140568540579584 M:3185659904   DEBUG: ReleaseSession - Releasing MythTV session: 0x7fd8a403ec40
00:50:08 T:140568540579584 M:3185659904   ERROR: CDVDInputStreamPVRManager::Open - error opening [myth://127.0.0.1/channels/4.ts]
00:50:08 T:140568540579584 M:3185659904   ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/all/3.pvr]
00:50:08 T:140568540579584 M:3185659904  NOTICE: CDVDPlayer::OnExit()
00:50:08 T:140568540579584 M:3185659904  NOTICE: CDVDPlayer::OnExit() deleting input stream
00:50:08 T:140568540579584 M:3185659904   DEBUG: Thread 140568540579584 terminating
00:50:08 T:140569306736800 M:3185659904   DEBUG: CAnnouncementManager - Announcement: PlaybackStopped from xbmc
00:50:08 T:140569306736800 M:3185659904    INFO: Loading skin file: DialogOK.xml
00:50:08 T:140569306736800 M:3185659904   DEBUG: Load DialogOK.xml: 1.21ms
00:50:08 T:140569306736800 M:3185659904   DEBUG: ------ Window Init (DialogOK.xml) ------
00:50:08 T:140569306736800 M:3185659904   DEBUG: Alloc resources: 0.02ms (0.00 ms skin load)
00:50:08 T:140569306736800 M:3185659904  NOTICE: CDVDPlayer::CloseFile()
00:50:08 T:140569306736800 M:3185659904 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:50:08 T:140569306736800 M:3185659904  NOTICE: DVDPlayer: waiting for threads to exit
00:50:08 T:140569306736800 M:3185659904  NOTICE: DVDPlayer: finished waiting
00:50:08 T:140569306736800 M:3185659904   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
00:50:08 T:140569132848896 M:3185659904   ERROR: PVR: MythTV PVR Client/http://127.0.0.1:6544 - Client returns bad error (-2) after SignalQuality
00:50:30 T:140569306736800 M:3185688576   ERROR: Previous line repeats 21 times.
00:50:30 T:140569306736800 M:3185688576   DEBUG: SECTION:UnloadDll(libcurl.so.4)
00:50:30 T:140569306736800 M:3185688576   DEBUG: Unloading: libcurl.so.4
00:50:30 T:140569132848896 M:3185688576   ERROR: PVR: MythTV PVR Client/http://127.0.0.1:6544 - Client returns bad error (-2) after SignalQuality

would it matter if I used my actual IP address 192.168.2.51 rather than 127.0.0.1? they're the same computer. also I notice that the TV channel list is getting most channels the same I see in mythfrontend, but some have names & info that are not visible to from mythfrontend. where is the addon getting this info? I notice that it appears to download some stuff


- fiveisalive - 2011-02-09 08:05

I should note that it appears to have installed the correct git snapshot, from the top of xbmc.log:

Code:
00:58:02 T:140298916075680 M:3104493568  NOTICE: Starting XBMC, Platform: Linux (Fedora release 13 (Goddard), 2.6.34.7-66.fc13.x86_64 x86_64). Built on Feb  9 2011 (Gi
t:6e0573c)

which is:

Code:
commit 6e0573c83bba571aaf1de3afbdf2199920bf8f14
Author: David Teirney <david@teirney.net>
Date:   Wed Feb 9 07:59:25 2011 +1300

    Ticket #11177: Fixed detection of Myth 0.23.1 protocol version due to protocol version number abberation.



- fiveisalive - 2011-02-09 08:37

looking at the code it appears that after the hack to set tmp_ver 23056 -> 56, tmp_ver is set again here:

Code:
if (cmyth_rcv_version(conn, &tmp_ver) < 0) {
                cmyth_dbg(CMYTH_DBG_ERROR,
                          "%s: cmyth_rcv_version() failed\n",
                          __FUNCTION__);
                goto shut;

which resets the tmp_ver back to 23056. but adding the hack after that function, also doesn't work


- dteirney - 2011-02-09 09:47

fiveisalive Wrote:nope, still no workie. Sad
would it matter if I used my actual IP address 192.168.2.51 rather than 127.0.0.1? they're the same computer. also I notice that the TV channel list is getting most channels the same I see in mythfrontend, but some have names & info that are not visible to from mythfrontend. where is the addon getting this info? I notice that it appears to download some stuff

A problem with some code logic on my side. Can you try again with the latest code on github? Still not 100% sure this patch will resolve it.


- fiveisalive - 2011-02-09 10:00

dteirney Wrote:A problem with some code logic on my side. Can you try again with the latest code on github? Still not 100% sure this patch will resolve it.

indeed it unfortunately doesn't fix it:

Code:
02:58:40 T:139934556166304 M:3194773504   ERROR: Previous line repeats 4 times.
02:58:40 T:139934556166304 M:3194773504   DEBUG: LIRC: Update - NEW at 125319:000000008001006c 00 KEY_DOWN Antec_Veris_RM200 (KEY_DOWN)
02:58:40 T:139934556166304 M:3194773504   DEBUG: OnKey: 167 (a7) pressed, action is Down
02:58:40 T:139934556166304 M:3194773504   DEBUG: LIRC: Update - NEW at 125336:000000008001006c 00 KEY_DOWN_UP Antec_Veris_RM200 (KEY_DOWN_UP)
02:58:41 T:139934556166304 M:3194781696   DEBUG: LIRC: Update - NEW at 126117:000000008001001c 00 KEY_ENTER Antec_Veris_RM200 (KEY_ENTER)
02:58:41 T:139934556166304 M:3194781696   DEBUG: OnKey: 11 (0b) pressed, action is Select
02:58:41 T:139934184756992 M:3194781696   ERROR: PVR: MythTV PVR Client/http://127.0.0.1:6544 - Client returns bad error (-2) after SignalQuality
02:58:41 T:139934556166304 M:3194781696   DEBUG: new file set audiostream:0
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerCoreFactory::GetPlayers(pvr://channels/tv/all/3.pvr)
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
02:58:41 T:139934556166304 M:3194781696   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
02:58:41 T:139934556166304 M:3194781696  NOTICE: DVDPlayer: Opening: pvr://channels/tv/all/3.pvr
02:58:41 T:139934556166304 M:3194781696 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
02:58:41 T:139934214063872 M:3194781696   DEBUG: thread start, auto delete: 0
02:58:41 T:139934214063872 M:3194781696  NOTICE: Creating InputStream
02:58:41 T:139934556166304 M:3194781696   DEBUG: ------ Window Init (DialogBusy.xml) ------
02:58:41 T:139934556166304 M:3194781696   DEBUG: Alloc resources: 0.00ms (0.00 ms skin load)
02:58:41 T:139934556166304 M:3194781696   DEBUG: LIRC: Update - NEW at 126227:000000008001001c 00 KEY_ENTER_UP Antec_Veris_RM200 (KEY_ENTER_UP)
02:58:41 T:139934214063872 M:3194822656   DEBUG: PVRManager - OpenLiveStream - opening live stream on channel 'WBZ-TV'
02:58:41 T:139934214063872 M:3194822656   DEBUG: Open - TV Channel has started on filename pvr://channels/tv/all/3.pvr
02:58:41 T:139934214063872 M:3194822656   DEBUG: AquireSession - Aquired existing MythTV session: 0x7f44f0004b90
02:58:41 T:139934214063872 M:3194822656   ERROR: (cmyth)cmyth_conn_connect: asked for version 8, got version 23056
02:58:41 T:139934214063872 M:3194822656   ERROR: (cmyth)cmyth_conn_connect: asked for version 56, got version 23056
02:58:41 T:139934214063872 M:3194822656   ERROR: (cmyth)cmyth_conn_connect: failed to connect with any version
02:58:41 T:139934214063872 M:3194822656   ERROR: GetControl - unable to connect to server on 127.0.0.1:6543
02:58:41 T:139934214063872 M:3194822656   DEBUG: ReleaseSession - Releasing MythTV session: 0x7f44f0004b90
02:58:41 T:139934214063872 M:3194822656   ERROR: CDVDInputStreamPVRManager::Open - error opening [myth://127.0.0.1/channels/4.ts]
02:58:41 T:139934214063872 M:3194822656   ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/all/3.pvr]
02:58:41 T:139934214063872 M:3194822656  NOTICE: CDVDPlayer::OnExit()
02:58:41 T:139934214063872 M:3194822656  NOTICE: CDVDPlayer::OnExit() deleting input stream
02:58:41 T:139934214063872 M:3194822656   DEBUG: Thread 139934214063872 terminating
02:58:41 T:139934556166304 M:3194822656   DEBUG: CAnnouncementManager - Announcement: PlaybackStopped from xbmc
02:58:41 T:139934556166304 M:3194822656    INFO: Loading skin file: DialogOK.xml
02:58:41 T:139934556166304 M:3194822656   DEBUG: Load DialogOK.xml: 1.08ms
02:58:41 T:139934556166304 M:3194822656   DEBUG: ------ Window Init (DialogOK.xml) ------
02:58:41 T:139934556166304 M:3194822656   DEBUG: Alloc resources: 0.02ms (0.00 ms skin load)
02:58:41 T:139934556166304 M:3194822656  NOTICE: CDVDPlayer::CloseFile()
02:58:41 T:139934556166304 M:3194822656 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
02:58:41 T:139934556166304 M:3194822656  NOTICE: DVDPlayer: waiting for threads to exit
02:58:41 T:139934556166304 M:3194822656  NOTICE: DVDPlayer: finished waiting
02:58:41 T:139934556166304 M:3194822656   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
02:58:42 T:139934184756992 M:3194875904   ERROR: PVR: MythTV PVR Client/http://127.0.0.1:6544 - Client returns bad error (-2) after SignalQuality
02:58:43 T:139933655758592 M:3194875904   ERROR: Previous line repeats 1 times.
02:58:43 T:139933655758592 M:3194875904   DEBUG: Thread 139933655758592 terminating (autodelete)
02:58:44 T:139934556166304 M:3194851328   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-x86_64-linux.so)
02:58:44 T:139934556166304 M:3194851328   DEBUG: Unloading: ImageLib-x86_64-linux.so
02:58:44 T:139934184756992 M:3194851328   ERROR: PVR: MythTV PVR Client/http://127.0.0.1:6544 - Client returns bad error (-2) after SignalQuality



- fiveisalive - 2011-02-09 10:06

problem seems to that it returns 8 on the first attempt, and 56 on the 2nd, which would eventually match but by then it's too late. maybe check out the logic in mythbox, I think it had a similar problem a while back with protocol errors


- dteirney - 2011-02-09 10:22

fiveisalive Wrote:problem seems to that it returns 8 on the first attempt, and 56 on the 2nd, which would eventually match but by then it's too late. maybe check out the logic in mythbox, I think it had a similar problem a while back with protocol errors

Can you make sure you don't have any local changes? There is no code in github that sets the connection version to 56 until right before the connection is returned.


- dekani - 2011-02-09 19:36

I have tested and generated binairies with the last changes. Livetv, recordings and tv guide are working correctly (for me). Thank you for the support of the 0.23.1 version.

MythTV Version : 26863
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1


- dteirney - 2011-02-10 08:41

dekani Wrote:I have tested and generated binairies with the last changes. Livetv, recordings and tv guide are working correctly (for me). Thank you for the support of the 0.23.1 version.

MythTV Version : 26863
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1

Thanks. dekani, are you able to post a debug log for me to review and double check.

Can anyone else also confirm that the latest code in github is working for Myth 0.23.1?

The commit is ready to push into 10.1 to support Myth 0.23.1, but I can't do that without a debug log that I can review to confirm.


- dekani - 2011-02-10 14:49

Please see a full debug file here (generated from France) : http://pastebin.com/pwVyJkZM

FYI, the EPG (from TV) hasn't been displayed correctly today. (nothing is available)
I'm also using a mythtv source (from videos), and here the EPG is correctly displayed. (not available in the debug file)

Edit:
About the EPG, I have just seen in the log file, I haven't changed the default password for the mythtv account.
I think it is the reason why the EPG doesn't work today. (but it was working yesterday, strange...)
I will do some new tests with the good password tonight.