Mac + Xbmc 12.1/12.2 - Live TV problems
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
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!
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
@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.
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!
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
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.
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
Well guys, you owe me 30+ hours of my life, but I have created a Mountain Lion Hackintosh on Virtual Box:
, on Flickr
, on Flickr
, 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



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!
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
You totally rule man 

Re: Mac + Xbmc 12.1/12.2 - Live TV problems
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
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!
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
That's brilliant, thanks Fred!
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
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?
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
A bit confused, the pull request was created 2 months ago? Yet you discovered what was wrong only a few days ago?
Re: Mac + Xbmc 12.1/12.2 - Live TV problems
Hehehe, beware of the power of the pull request.....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?

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

Growing old is inevitable. Growing up is optional!
Who is online
Users browsing this forum: No registered users and 1 guest