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

+- Kodi Community Forum (http://forum.kodi.tv)
+-- 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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


- outleradam - 2010-10-29 00:05

Is there any way to speed the build and testing procedure? Can Eclipse do a smart build of only the components needed? When I write a java program it only rebuilds the classes required. it takes a long time to clean, svn up, patch, build, test. What do you pros use?


- PhracturedBlue - 2010-10-29 01:21

outleradam Wrote:Is there any way to speed the build and testing procedure? Can Eclipse do a smart build of only the components needed? When I write a java program it only rebuilds the classes required. it takes a long time to clean, svn up, patch, build, test. What do you pros use?

I use ccache.

Once you've installed it,just rerun ./configure and make as usual. It will cache object files and reuse them when the inputs haven't changed (it actually uses a checksum of some sort rather than timestamps, so adding/removing patches doesn't affect it like it does make)

Also 'make -j5' on my quad-core system (where j = processor count + 1) makes things much faster.


- outleradam - 2010-10-29 18:16

What needs to be tested, and what has been added to the SVN?

I can start building and testing tonight when I get home in 6 hours.

I'm interested in reducing the amount of network traffic.


- dteirney - 2010-10-30 00:47

outleradam Wrote:What needs to be tested, and what has been added to the SVN?

I can start building and testing tonight when I get home in 6 hours.

I'm interested in reducing the amount of network traffic.

I've just checked in the patches to trunk to at least receive all of the BACKEND_MESSAGES that mythbackend generates.

I think that the proginfo_fill method still needs a patch generating so the proginfo structure matches the changes that were made for Myth 0.24. This will need some more if statements based on the connection version.

I'd be interested in having a look at someones log if LiveTV is not working for anyone using trunk.

I'll be spending some of today putting in parts of tafypz's work on the libmythxml library.


- PhracturedBlue - 2010-10-30 01:08

dteirney Wrote:I think that the proginfo_fill method still needs a patch generating so the proginfo structure matches the changes that were made for Myth 0.24.
From murph's logs, it is clear that the 'fail' has been there since before 0.24, since it only fails here:
Code:
cmyth_proginfo_fill: proginfo length was 0
which is a case that has been in the code for a while. (Note that message is extra debugging I had murph add, not a message in the code, but the actual error handling was already there)

There still is the ulong processing '-1' issue which we need to locate though.


- outleradam - 2010-10-30 01:14

I just tested with all patches in the ticket referenced above (3 patch files) and I created 2 patch files from post number 240 and 245

So this is where I stand now... Everything seems to "work", but livetv is spitting out traces.

http://pastebin.com/Tz3FM3VW


- outleradam - 2010-10-30 01:17

phractured blue. A bit of a tip, to make things easier. Not that I know what I'm doing in c++, but when comparing the data from what should be in proginfo.c and what is... OpenOffice spreadsheet makes for an easy cut-n-paste action and you can see what's there and what should be there in nice neat columns. I hope that helps.


- dteirney - 2010-10-30 01:21

outleradam Wrote:I just tested with all patches in the ticket referenced above (3 patch files) and I created 2 patch files from post number 240 and 245

So this is where I stand now... Everything seems to "work", but livetv is spitting out traces.

http://pastebin.com/Tz3FM3VW

Those trace things getting spat out are because your log level is set to 3. As long as LiveTV is working we'll move onto other things. You can change your log level back to 1. Log level 3 is only needed to further identify what is causing problems when there are problems.


- outleradam - 2010-10-30 03:26

Hey, did we get the latest cMyth git repo before starting this project? I just did that and merged it into our repo. Live TV, Playing recordings... they all work...

Dunno if this is valuable information or not... It seems that everything works well in the latest cMyth update from
Code:
git clone git://git.mvpmc.org/repos/cmyth.git
I'm just seeing a few messages which are not understood in the backend messages...

These errors are from the guide.

Code:
(cmyth)cmyth_conn_connect: asked for version 63, got version 63
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT CLIENT_CONNECTED HOSTNAME adam-desktop SENDER XBMC-live'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT_RESULT CLIENT_DISCONNECTED SENDER XBMC-live RESULT 127'
(cmyth)cmyth_conn_connect: asked for version 8, got version 63
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT_RESULT CLIENT_CONNECTED SENDER XBMC-live RESULT 0'
(cmyth)cmyth_conn_connect: asked for version 63, got version 63
(cmyth)__cmyth_rcv_proginfo: got recording info
(cmyth)__cmyth_rcv_proginfo: got recording info
Code:
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'UPDATE_FILE_SIZE 1947 2010-10-29T20:17:13 13944900'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'UPDATE_FILE_SIZE 1947 2010-10-29T20:17:13 18246152'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'UPDATE_FILE_SIZE 1947 2010-10-29T20:17:13 22501908'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'UPDATE_FILE_SIZE 1947 2010-10-29T20:17:13 26778532'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'UPDATE_FILE_SIZE 1947 2010-10-29T20:17:13 31070196'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT SLAVE_CONNECTED HOSTNAME adam-desktop SENDER XBMC-live'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT SLAVE_DISCONNECTED HOSTNAME adam-desktop SENDER XBMC-live'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'UPDATE_FILE_SIZE 1947 2010-10-29T20:17:13 35357536'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT SLAVE_CONNECTED HOSTNAME adam-desktop SENDER XBMC-live'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT SLAVE_CONNECTED HOSTNAME adam-desktop SENDER XBMC-live'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT SLAVE_DISCONNECTED HOSTNAME adam-desktop SENDER XBMC-live'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'UPDATE_FILE_SIZE 1947 2010-10-29T20:17:13 39607840'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT REC_EXPIRED HOSTNAME XBMC-live CHANID 1947 STARTTIME 2010-10-29T20:17:11 SENDER XBMC-live'
(cmyth)cmyth_event_get: unknown mythtv BACKEND_MESSAGE 'SYSTEM_EVENT REC_DELETED CHANID 1947 STARTTIME 2010-10-29T20:17:11 SENDER XBMC-live'
It's got the same basic functionality as we have.

Is this old news?


- PhracturedBlue - 2010-10-30 03:50

I have posted a fix for the ulong issue murph was seeing here (sorry, I missed the backtrace in his post until today)
http://trac.xbmc.org/ticket/10597

It will only happen while watching LiveTV, and since I can't test that, he'll have to test it.
@outleradam, feel free to test as well, but since you haven't seen the '-1' message, it'll be mostly to prove I didn't introduce any regressions.


- PhracturedBlue - 2010-10-30 03:57

outleradam Wrote:Hey, did we get the latest cMyth git repo before starting this project? I just did that and merged it into our repo. Live TV, Playing recordings... they all work...
Are you sure you merged it properly?
It looks like the code hasn't changed since March:
Code:
git log | head
commit 1ee13499865af12fe0532de51fb8a8c109f5a4ea
Author: Jon Gettler <gettler@mvpmc.org>
Date:   Sun Mar 7 21:19:43 2010 -0600

    Just build the static libraries under MacOS X.

Edit: and in case you are wondering, the latest myth protocol changes are much more recent than that. And wouldn't be backwards compatible with code from March.


- dteirney - 2010-10-30 04:21

outleradam Wrote:Hey, did we get the latest cMyth git repo before starting this project? I just did that and merged it into our repo. Live TV, Playing recordings... they all work...

Is this old news?

Yes, old news. http://trac.xbmc.org/ticket/8003

Does this statement imply that the current libcmyth content in XBMC is not working in some areas for you?

Please provide facts that help progress the PVR Addon development in XBMC please.


- outleradam - 2010-10-30 05:11

I did a git, I dropped the entire cmyth library into the xbmc/lib/cmyth folder, then I ./configure'd and make -j5 on my desktop, then I tested. It worked.

Anyways...

I'm trying to get the guide working. I can't schedule shows and it says "failed to playback" when I select something on the XBMC version, in the terminal it just says "Success". When running the git version, it does not say anything in XBMC. It just generated some backend messages which I had never seen before.

Are we maintaining Lib-cMyth? Is there anything I can do? Can I add some documentation patches? Should we port the changes to Lib-cMyth back upstream?

My wife has some interest in this project, so I'd really like to help and get her program guide working.


- PhracturedBlue - 2010-10-30 05:22

outleradam Wrote:I did a git, I dropped the entire cmyth library into the xbmc/lib/cmyth folder, then I ./configure'd and make -j5 on my desktop, then I tested. It worked.
I can't explain it, but that really shouldn't be possible.

Quote:I'm trying to get the guide working. I can't schedule shows and it says "failed to playback" when I select something on the XBMC version, in the terminal it just says "Success". When running the git version, it does not say anything in XBMC. It just generated some backend messages which I had never seen before.
When using log-level 3, I would want to see the logs (using xbmc's cmyth) of trying to query the guide. I have no idea how to use the guide in xbmc, so if someone wants to give instructions, this is something I can test myself (actually, I just got an hdhomerun so I'll soon be able to try out livetv too)

Quote:Are we maintaining Lib-cMyth? Is there anything I can do? Can I add some documentation patches? Should we port the changes to Lib-cMyth back upstream?
dteirney needs to answer this, but my understanding is that (a) we are effectively supporting it ourselves, (b) dteirney has been pushing patches upstream.


- outleradam - 2010-10-30 05:39

I set up favorites of live tv and guide... In this example I selected the guide and followed it through until I got to a program. When I select a program, each time it says Sucess.

I realize it does not look like it's doing a level 3, but it is.
terminal: http://pastebin.com/CTpMArAg
log http://pastebin.com/GR57YwnC


just for shits and giggles, here is the git version I downloaded earlier http://pastebin.com/ywEMnzP9 It's slightly different.