Kodi Community Forum

Full Version: Problem with Tuner in use not recognized by ServerWMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
First I would like to thank all the people that have developed ServerWMC as this is a great tool and it works well in most cases.

I think I have found a problem with it in my environment when I try to view live tv from xbmc on Raspberry PI or windows clients, Xbmc
reports "all tuners for this channel are busy" when I know that another pc has the tuner in use.

Configuration:
3 Windows Media Center 7 Home Premium PCs running WMC (also running XMBC Gotham 13.2 at times)
2 Silicondust HDHomerun Prime (6 tuners total) running latest 20140604 stable firmware.
1 Raspberry PI running latest stable OpenElec 4.0.7

It looks like there is a problem on my system with ServerWMC showing tuners are available when they are really used by WMC.

ServerWMC correctly detects all 6 tuners and reports them in the "Tuners" tab.

When I try to view a channel from xbmc, ServerWMC tries the first available tuner (usually 13106DFF-1).
When that tuner is already used (by a WMC session from another pc) it does not recognize that the tuner is busy and fails to get the tuner for its own purpose.
In that event, it does not try to get another tuner (although all 5 remaining tuners are available).
As soon as I stop WMC on the other pc and I try again, it works as all 6 tuners were available.

I can recreate the problem.
If I start a WMC on one pc and then go to the "Tuners" tab of the ServerWMC that tuner shows up as available which is not right.
If I use Network Tuner Monitor 5.3 (a good utility to show which tuners are being used), it shows up as in-use.
Also if I use the official hdhomerun_config way of checking the status of the tuners, it reports as busy...
So, that seem to point at a bug in ServerWMC not getting the proper status of a tuner.

Here is the part of the log in question:
2014/09/05 06:10:53.016 OpenLiveStream> -----------------start------------------------
2014/09/05 06:10:53.016 OpenLiveStream> client: OpenELEC requesting live stream
2014/09/05 06:10:53.019 StreamProc> live-tv started
2014/09/05 06:10:53.043 SetChannel> Channel: 2 : KJWP - 7F8D8EF = { (2 : KJWP - 7F8D8E4) + [ 2 : KJWP - 7F8D8E7] }
2014/09/05 06:10:53.045 SetChannel> Tuners available for this channel: 6
2014/09/05 06:10:53.045 SetChannel> Attempt: 0, Tuner: HDHomeRun Prime Tuner 13106DFF-1 / 2f8f90ae-02b7-42da-bf4b-70879594a54b
2014/09/05 06:10:53.045 SetChannel> > Digital: True
2014/09/05 06:10:53.045 SetChannel> > Encrypted: False
2014/09/05 06:10:53.047 SetChannel> > RecorderInfo found: True
2014/09/05 06:10:53.047 SetChannel> > Recorder Content Protection: PROT_COPY_FREE
2014/09/05 06:10:53.049 SetChannel > busy: False, client: none
2014/09/05 06:10:53.049 SetChannel> > tuner is available => stopping search
2014/09/05 06:10:53.051 SetChannel> Recorder acquired: True
2014/09/05 06:10:53.054 SetChannel> TuneRequest set
2014/09/05 06:10:53.067 StreamProc> wtv recording started in 0.05 sec
2014/09/05 06:10:53.068 StreamProc> stream output file: LiveTV_OpenELEC_Digital Cable_2_2014_09_05_06_10_53.ts
2014/09/05 06:10:53.068 StreamProc> started remux thread: 'KJWP-2: 133748975'
2014/09/05 06:10:53.123 Remux::FindDescriptors> Scanning wtv for streams...
2014/09/05 06:10:53.275 Parse> Guid: 0 took 0.15 sec, it was attempted 75 times
2014/09/05 06:10:53.276 Parse> Next 4 Guids: 0.00 sec, 0.00 sec, 0.00 sec, 0.00 sec,
2014/09/05 06:10:53.276 GetNextGuid> end of stream is coming, next empty guid will terminate
2014/09/05 06:10:53.276 GetNextGuid> wtv file size: 524,288 (0x80000)
2014/09/05 06:10:53.278 WtvToPesDemuxer:Tonguearse> Guid header detects stream end
2014/09/05 06:10:53.278 Parse> Descriptor pass done, using 15 guids in 0.00 sec
2014/09/05 06:10:53.278 Parse> Total Descriptor parse time: 0.16 sec
2014/09/05 06:10:53.278 Pass 'Descriptor':
2014/09/05 06:10:53.278 > WtvToPesDemuxer:Tonguearse> total guid headers processed: 15
2014/09/05 06:10:53.278 > WtvToPesDemuxer:Tonguearse> total data packets processed: 0
2014/09/05 06:10:53.328 Remux::FindDescriptors> no streams descriptors were found.
2014/09/05 06:10:53.328 Remux::FindDescriptors> error: no audio or video stream found - aborting remux
2014/09/05 06:10:53.756 Remux> error: System.Exception: FindDescriptors failed
at Remuxer.Remux.Start(String clientName, String outFullFileName)
2014/09/05 06:10:53.756 Remuxer::Start> warning: no MuxFilter output in list during remux shutdown.
2014/09/05 06:10:54.789 Remux> requesting C:\Users\Public\Recorded TV\TempSWMC\LiveTV_OpenELEC_Digital Cable_2_2014_09_05_06_10_53.wtv be saved from deletion
This problem is supposed to be fixed in the newest rev of serverwmc. Do you have the hdhomerun prime software installed on the pc that is running serverwmc?

When you can, please restart serverwmc and recreate the problem, then put the entire log on pastebin.com and post a link to it here.
I recreated the problem this morning and here is the link for the log: http://pastebin.com/jgBUF0YZ

Yes the HDHomerun Prime software is installed on the PC that runs serverwmc (denmonta-pc)

I hope this is all you need.

Thanks for looking into this.
In my environment, I noticed that the problem happens when 13106DFF-1 is already busy,
but it works fine if it is not busy before the openelec client requests a channel.
Ah, I think I know what the problem is. I will PM you a test build of serverwmc, when you have time please see if it corrects this problem and let me know the result in this thread. Thanks for recreating the bug for us.
Hi Krusty.

It looks like your fix is working for me. I have not been able to re-create the problem after I applied the new build.
The tuner tab seems to accurately report busy tuners now.

Thanks a lot for your quick response.
I am willing to help if you need something else tested with my config.
Good. Thanks for following up.
(2014-09-09, 16:46)krustyreturns Wrote: [ -> ]Good. Thanks for following up.

I am getting this issue too now, is there a new version incorporating the fixes you did in this thread?
It hasn't been released yet. If you can't wait I can pm you the test build I sent Delmonta if you want. Also, its worth mentioning this fix only works with hdhomeruns.
(2014-09-11, 06:01)krustyreturns Wrote: [ -> ]It hasn't been released yet. If you can't wait I can pm you the test build I sent Delmonta if you want. Also, its worth mentioning this fix only works with hdhomeruns.

Ok thanks, I will wait, but its running on Windows 8.1 not hdmoeruns
I seem to be having the same issue with my hdhomerun as demonta. I get the tuner busy error. Is there an update or patch that I can apply to get things running?

Thanks in advance, I really appreciate all the hard work you have put into this!

-------------------------------------------------------
Got it figured out, I have some channels that are not being received at all by my hdhomerun that were giving me the error. Thanks for all the work! Everything is running smoothly.
- deleted - I just noticed you got the problem resolved.
I'm experiencing all tuners are busy for an error
This happens with my local fox channel, trying to watch football now and get "All Tuners Are Busy"
Log is located here

channel works in MCE but not in XBMC
I need to see the serverwmc log after a fail (see debug tab).
Here is the Log
The fact that it is reporting that the tuners are all busy is a known bug that will fix in the next rev, the problem is not that the turner is busy but rather that no data is was found on channel 725, I can't tell why it failed, but there is something weird with your setup, it shows four hdhr-prime tuners. Do you have two hdhrs primes? If you do, there should be six tuners (if running tunersalad or equivalent), if you don't, there should only be three tuners.
Pages: 1 2