Occasional delay when entering TV home (1 Viewer)

JBravo

MP Donator
  • Premium Supporter
  • November 11, 2007
    269
    27
    Home Country
    Sweden Sweden
    MediaPortal Version: 1.2.2
    MediaPortal Skin: StreamedMP
    Windows Version: Windows 7 x64 Pro SP1 (Server and Client)
    CPU Type: Intel Pentium Dualcore E5200
    HDD: QNAP 439 Pro, 4x2TB, RAID5
    Memory: DDRII 4GB
    Motherboard: ASUS P5N7A-VM
    Video Card: Geforce 9300 mGPU
    Video Card Driver: -
    Sound Card: onboard
    Sound Card AC3: optical out
    Sound Card Driver: -
    1. TV Card: Twinhan Mantis 3030
    1. TV Card Type: DVB-T
    1. TV Card Driver: 1.1.2.700
    2. TV Card: Twinhan Mantis 3030
    2. TV Card Type: DVB-T
    2. TV Card Driver: 1.1.2.700
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: MS DTV-DVD
    MPEG2 Audio Codec: MS DTV-DVD
    h.264 Video Codec: MS DTV-DVD
    Satelite/CableTV Provider: Boxer
    HTPC Case: Antec
    Cooling: Boxed
    Power Supply: Antec Earthwatts 380w
    Remote: MCE Remote + Keyboard
    TV: Sony 52" W5500 LCD-TV
    TV - HTPC Connection: HDMI via NADT785HD AVR

    I have a strange issue, sometimes it takes about 30s to load TV home (select TV on main menu). This happen once and only after start of MP. In other cases loading of TV home is instant, but I have noticed that the actual start of MP takes longer time...

    In the logs I have observed the following;

    Delay when loading TV home.
    2012-01-10 21:19:44.231800 [Info.][MPMain(1)]: TexturePacker: fontengine add texure:1981
    2012-01-10 21:19:44.241800 [Debug][MPMain(1)]: Window: TvPlugin.TVHome init
    2012-01-10 21:19:44.246800 [Info.][MPMain(1)]: TVHome:OnPageLoad
    2012-01-10 21:19:57.716800 [Info.][(6)]: PowerScheduler: Keep server alive
    2012-01-10 21:20:05.296800 [Info.][MPMain(1)]: ChannelNavigator::Reload()
    2012-01-10 21:20:05.300800 [Info.][MPMain(1)]: get channels from database
    2012-01-10 21:20:05.476800 [Info.][MPMain(1)]: found:46 tv channels
    2012-01-10 21:20:05.479800 [Info.][MPMain(1)]: TvNotify:OnNotifiesChanged
    2012-01-10 21:20:05.547800 [Info.][MPMain(1)]: Done.


    Delay when starting MP (no delay when starting TV home).

    012-01-10 21:16:32.441800 [Debug][MPMain(1)]: Common.IsSingleSeat: Checking against fe80::dc:2fdb:3f57:fe8f%11 - result=False
    2012-01-10 21:16:32.443800 [Debug][MPMain(1)]: Common.IsSingleSeat: Checking against 192.168.1.112 - result=False
    2012-01-10 21:16:32.445800 [Debug][MPMain(1)]: Common.IsSingleSeat: Checking against 2001:0:5ef5:79fb:dc:2fdb:3f57:fe8f - result=False
    2012-01-10 21:16:53.702800 [Info.][MPMain(1)]: TVHome V1.2.2.0:ctor
    2012-01-10 21:16:53.706800 [Info.][MPMain(1)]: TvNotify: start
    2012-01-10 21:16:53.754800 [Info.][MPMain(1)]: newsearch ctor
    2012-01-10 21:16:53.759800 [Info.][MPMain(1)]: newsearch init
    2012-01-10 21:16:53.762800 [Info.][MPMain(1)]: newsearch init result:True
    2012-01-10 21:16:53.767800 [Info.][MPMain(1)]: newsearch ctor

    It looks like the main thread, in both cases, is occupied in ~21sec by something, any ideas what?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hi JBravo

    It is trying to connect to your TV Server machine. The 30 seconds sounds like the Remoting connection timeout.

    mm
     

    JBravo

    MP Donator
  • Premium Supporter
  • November 11, 2007
    269
    27
    Home Country
    Sweden Sweden
    Hmm, well I don't see any indications that the connection to the TV server actually fails (neither on server/client). TV is working ok once started. The TV server is on 24/7.

    I swapped to Win 7 x64 from XP on the TV server some days ago, can't remember that I noticed this delay before. However I have also installed some new plugins on the client(s).

    Any suggestions what to check/fix? I will disable/remove some of the plugins and to some more testing.
     

    JBravo

    MP Donator
  • Premium Supporter
  • November 11, 2007
    269
    27
    Home Country
    Sweden Sweden
    mm is right (as usual).

    The problem seems to be that the client can't connect to port 31456 directly. However the connection is eventually established, and the client works as normal.

    Did some logging with SysInternal TCPView, it looks like the client first tries to connect to port 31456 using TCPv6. The connection times out and then the client successfully establishes an connection to port 31456 using TCP instead. I also see this behaviour when connecting to port 31457. The connection to MySQL server, port 3306, is however established directly.

    The standard Win 7 Firewall on the TV servers is correctly configured, and I can't see that any packages are dropped.

    However, if I disable the Win 7 Firewall the connection is established instantly.

    I can't believe that I'm the only one having this issue since Win 7 comes with IPv6 enabled out of the box.

    A screenshot of TCPView when MP is stared is attached.
     

    Attachments

    • port.png
      port.png
      218.5 KB

    Meier

    Portal Pro
    November 1, 2006
    242
    30
    Home Country
    Germany Germany
    AW: Occasional delay when entering TV home

    Hello.

    I don't think you're the only person with this problem because it is (normaly) suggested to disable TCP/IP V6 on Client and Server.
     

    JBravo

    MP Donator
  • Premium Supporter
  • November 11, 2007
    269
    27
    Home Country
    Sweden Sweden

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hi again

    Just to note: I think that fix is just to hide IPv6 addresses in TV Server configuration. The compatibility with IPv6 itself was not covered by that issue.

    I'm glad you were able to find a workaround. :)

    mm
     

    JBravo

    MP Donator
  • Premium Supporter
  • November 11, 2007
    269
    27
    Home Country
    Sweden Sweden
    Hi,

    I think this problem should be addressed, as Win7 comes with IPv6 enabled by default. Furthermore there are no errors logged and MP just seems to be unresponsive for no particular reason.

    The Win 7 firewalls seems to silently drop IPv6 packages going to MP TV server causing the connection to timeout, if the firewall is disabled there is no delay in establishing an connection (IPv4).

    The problem doesn't exist when connecting to MySQL. One difference I noted is that MySql listens on all interfaces (0.0.0.0:3306) and TV server listens to a specific interface (192.168.1.10:xxx).

    Cheers.
     

    Users who are viewing this thread

    Top Bottom