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

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,223
    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

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,223
    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

    Similar threads

    Ok I could solve my problem by myself. The logs said that the delimiter of that song is not in text form. Although it was already in text form and I deleted the music database, the title information was still not available. I ripped the song again and now it works. I think that something went wrong the first time.
    Ok I could solve my problem by myself. The logs said that the delimiter of that song is not in text form. Although it was already...
    Hi, After the update from 1.25 to 1.26 the replay gain functionality appears to be broken. I had no sound on all audio files (TV...
    Replies
    12
    Views
    1K
    I get the error below when I exit mediaportal after I've minimized MP to the taskbar and then right clicked the icon to select Exit. I've used SMP for years with no real problems until this issue. My two other clients do not have this issue. It is a new install on my TV server, about 2 weeks old. Titan and DefaultWide skins texit...
    I get the error below when I exit mediaportal after I've minimized MP to the taskbar and then right clicked the icon to select...
    I get the error below when I exit mediaportal after I've minimized MP to the taskbar and then right clicked the icon to select...
    Replies
    0
    Views
    687
    Sorry for the late response. In my experience, the EPG grabbing of a single transponder takes 2 to 3 minutes. Afterwards it takes 1 to 2 minutes to write the data to disk. To speed up the EPG stuff (not only writing but also reading the EPG guide in MediaPortal), I changed the program table (and only that table) from InnoDB to...
    Sorry for the late response. In my experience, the EPG grabbing of a single transponder takes 2 to 3 minutes. Afterwards it takes...
    I get a few "Continuity error..." after the EPG scan finished: [2021-01-30 18:56:10,278] [4c45530] [18c8] - mhw reset [2021-01-30...
    Replies
    2
    Views
    1K
    It worked! Thank you! MePo2 Configuration window instantly came up and is running after installing the Windows Server Essentials Experience role and the Essentials Media Pack. I am guessing the Media Pack is all that is needed, but it's installation is dependent on the having Essentials Experience role installed. *One downside is...
    It worked! Thank you! MePo2 Configuration window instantly came up and is running after installing the Windows Server Essentials...
    New install of MP2.2.1 (TV-Server Only) on Windows Server 2012 R2. MP2 completes the initial install with no errors (I get the...
    Replies
    10
    Views
    2K
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the DefaultWide skin. It really messes up the overlays though.
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the...
    For the past year or so I have not been able to get into my TV recordings menu. MediaPortal wont crash, but it just hangs and...
    Replies
    1
    Views
    710
    Top Bottom