Mac + Xbmc 12.1/12.2 - Live TV problems

Access your ARGUS TV system from your sofa using Kodi or XBMC (http://kodi.tv/)
Red_F
Posts: 533
Joined: Wed May 19, 2010 10:31 pm
Location: The Netherlands

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by Red_F » Sun Apr 06, 2014 8:40 pm

Thank you for the log files guys. I'll be looking through them one of the upcoming evenings after work.
Growing old is inevitable. Growing up is optional!

Red_F
Posts: 533
Joined: Wed May 19, 2010 10:31 pm
Location: The Netherlands

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by Red_F » Tue Apr 15, 2014 11:36 pm

@discerr, @Scottland

okay, your logfiles definitely show a problem with the keepalive thread.

For your reference I have made a log on a Linux system watching live TV, see: http://xbmclogs.com/show.php?id=174331.

When you go to line 944 in that file you see a message about '.... OpenLiveStream ...' that is XBMC starting Live TV. Below that you find output from the addon that it is trying to tune, and then trying to open the video file returned by ARGUS.

Line 960 contains an important message: CKeepAliveThread:: thread started.

From that moment this thread within the addon will tell the ARGUS server every ten seconds 'hey I'm still alive and watching'. See lines 972, 1181, 1204, 1222 etc. etc.

In your log, there is no activity from the KeepAliveThread. It gets constructed at startup of XBMC and is destroyed with XBMC exits, but it is never started (or stopped). ARGUS TV will stop streaming when it receives no keep alive signal for more than thirty seconds.

And that is exactly what you are experiencing.

After looking in the code I can see there is a test that starts the keep alive thread when it is not already running. It appears this test test is failing on OSX.

I need to think about what to do next.
Growing old is inevitable. Growing up is optional!

discerr
Posts: 4
Joined: Thu Apr 03, 2014 5:11 am

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by discerr » Wed Apr 16, 2014 6:48 am

Hey, no worries; I'm just glad it was easy to track down. If you need us to test anything, I'm sure we'd both be happy to do it.

Red_F
Posts: 533
Joined: Wed May 19, 2010 10:31 pm
Location: The Netherlands

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by Red_F » Mon Apr 21, 2014 9:36 pm

Well guys, you owe me 30+ hours of my life, but I have created a Mountain Lion Hackintosh on Virtual Box:

Image, on Flickr

Image, on Flickr

Image, on Flickr

As you can see from the last screenshot, Live TV is working. And, even better, it also stops after roughly 30 seconds. This gives me an excellent starting point to start detecting what is going wrong and why.

Cheers,
Fred
Growing old is inevitable. Growing up is optional!

User avatar
dot-i
Site Admin
Posts: 5848
Joined: Mon Oct 01, 2012 3:40 pm

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by dot-i » Mon Apr 21, 2014 10:10 pm

You totally rule man ;)
I have the heart of a child. I keep it in a jar on my shelf. -- Robert Bloch
Image

Red_F
Posts: 533
Joined: Wed May 19, 2010 10:31 pm
Location: The Netherlands

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by Red_F » Tue Apr 22, 2014 10:22 pm

Good news, I've fixed the problem and issued a pull request to Team XBMC for version 1.9.176 of the addon.

If you're interested, here is a xbmc.log from OS X with working live tv: http://xbmclogs.com/show.php?id=183419

The goodness starts at line 1334 with the message "CKeepAliveThread:: thread started". Then, starting from line 1338 .. 1496 etc., there will be a keep alive message sent to ARGUS every ten seconds.

So watch this pull request https://github.com/opdenkamp/xbmc-pvr-addons/pull/272, once this is merged with the main repository then new builds should work on your OS X.

Cheers,
Fred
Growing old is inevitable. Growing up is optional!

Scottland
Posts: 16
Joined: Tue Nov 05, 2013 1:16 am

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by Scottland » Tue Apr 22, 2014 10:31 pm

That's brilliant, thanks Fred!

discerr
Posts: 4
Joined: Thu Apr 03, 2014 5:11 am

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by discerr » Sat Apr 26, 2014 3:35 am

Thank you!! Looks like the pull request was accepted today. Any idea how long it usually takes xbmc.org to rebuild and host the new version?

User avatar
dot-i
Site Admin
Posts: 5848
Joined: Mon Oct 01, 2012 3:40 pm

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by dot-i » Sat Apr 26, 2014 8:13 am

A bit confused, the pull request was created 2 months ago? Yet you discovered what was wrong only a few days ago?
I have the heart of a child. I keep it in a jar on my shelf. -- Robert Bloch
Image

Red_F
Posts: 533
Joined: Wed May 19, 2010 10:31 pm
Location: The Netherlands

Re: Mac + Xbmc 12.1/12.2 - Live TV problems

Post by Red_F » Sat Apr 26, 2014 2:10 pm

dot-i wrote:A bit confused, the pull request was created 2 months ago? Yet you discovered what was wrong only a few days ago?
Hehehe, beware of the power of the pull request..... ;)

As long as the PR hasn't been accepted you can add new commits, rebase and squash it and so sneak new fixes into an old PR :D
Growing old is inevitable. Growing up is optional!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest