MP 1.14.0 Can't Find Server (1 Viewer)

macmr
Country flag

Portal Pro
August 21, 2011
70
8
Home Country
Hi I had this issue in 1.14.0 PR and upgraded to 1.14.0 recently but it still happens occasionally

I suspect that the problem is caused by the Harmony remote sending codes while MP is still starting and MP not being able to process in real time

Here is the problem but it doesn't always happen:

Sometimes when Mediaportal starts and you go to watch tv (previously sent Harmony codes) it can't find the tvserver. It shows the correct connection and if I press the "back" button everything works ok but it's annoying to have it happen

I have a single seat application with the loopback connection

Not a huge issue but it would be nice to find what is causing it

Thanks
 

mm1352000
Country flag

Development Group
  • Team MediaPortal
  • September 1, 2008
    21,546
    8,207
    Home Country
    New Zealand New Zealand
    Hi

    There was a regression in MP 1.14 PR that caused the message you mentioned to be shown on resume sometimes. That issue was fixed for 1.14 [final], so you should at least see the message less often now.

    For the 1.14 example shown in your log files (thanks for those (y) ), I think it may be a timing issue.
    Steps are as follows...

    1. TV plugin resumes and initiates connection to server:
    [2016-05-01 07:40:15,739] [Log ] [MPMain ] [DEBUG] - TVHome.OnResume()
    [2016-05-01 07:40:15,739] [Log ] [MPMain ] [DEBUG] - TVHome: HeartBeat Transmitter started.
    [2016-05-01 07:40:15,744] [Log ] [MPMain ] [INFO ] - TvNotify: start

    2. You enter the TV section:
    [2016-05-01 07:40:16,549] [Log ] [31 ] [DEBUG] - KeyboardInputPlugin: OnKeyDown: Ctrl+Shift+T (11084), Handled: True
    ...
    [2016-05-01 07:40:16,978] [Log ] [MPMain ] [DEBUG] - Window: TvPlugin.TVHome init
    [2016-05-01 07:40:16,978] [Log ] [MPMain ] [INFO ] - TVHome:OnPageLoad

    3. The connection to server is established:
    [2016-05-01 07:40:17,230] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [DEBUG] - RemoteControl: TCP connect took : 1486
    [2016-05-01 07:40:17,231] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - RemoteControl - Connected
    [2016-05-01 07:40:17,232] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - TVHome: OnRemotingConnected, recovered from a disconnection
    [2016-05-01 07:40:17,232] [Log ] [TvClient-TvHome: HeartBeat transmitter thread] [INFO ] - RemoteControl - Connected

    4. Connection setup screen/message is shown:
    [2016-05-01 07:40:17,553] [Log ] [MPMain ] [DEBUG] - Window: TvPlugin.TVHome deinit
    [2016-05-01 07:40:17,554] [Log ] [MPMain ] [DEBUG] - TextureManager: CleanupThumbs()
    [2016-05-01 07:40:17,557] [Log ] [MPMain ] [DEBUG] - Window: TvPlugin.TvSetup init

    In order to avoid seeing the message, step 3 has to happen before step 2. In other words: if you'd waited less than half a second more before attempting to enter the TV section, the connection would have been established and the message wouldn't have been shown.

    I don't know if we can really do anything about this, but I'll have a think...

    Kind regards,
    mm
     

    macmr
    Country flag

    Portal Pro
    August 21, 2011
    70
    8
    Home Country
    Yes as I expected it appears as though my Harmony remote is sending codes while MP is going through the startup phase but MP is acting on them later. I will change my remote timings and I'm pretty confident that will fix it. Having said that if there were a change to the MP code in the next release that may prevent it happening to other people. Thanks for your time.
     

    macmr
    Country flag

    Portal Pro
    August 21, 2011
    70
    8
    Home Country
    Hi just wondering if this issue has been changed in 1.15.0

    Thanks
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom