[confirm] Development issues (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Ok, then please also test the mentioned power menu from MP2 gui to see if this makes a difference
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    It works with the mp menu but does not when pressing the power button or using the Windows start menu.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    What if mp2 prevents standby and than initiate it in it's own?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Every OS since Windows 7 (or even Vista) does no longer permit applications to prevent standby. An application only has 2 seconds to end its operations.

    Our main problem here is, when the "Suspend" message arrives, we have no guarantee that the network adapter isn't deactivated before we could send the "StopTimeshift" properly. I searched a while in internet, but could not find a solution for this yet.

    In meantime I moved the suspend/resume code to the SlimTvClientModel and added an automatic switch on of TV when resuming (if setting is activated). Problem here for my devPC (single seat): the StartTimeshift call doesn't work at this time yet, as the server network interface is also not yet ready :(

    Client:
    [2016-01-02 17:18:12,417] [40758 ] [17 ] [INFO ] - SlimTvClientModel: System resuming, autotune: True
    [2016-01-02 17:18:12,417] [40758 ] [17 ] [DEBUG] - SlimTvHandler: StartTimeshift slot 0 for channel '3sat HD'

    Server:
    [2016-01-02 17:18:12,417] [2139680] [118 ] [INFO ] - Controller: find free card for channel 3sat HD
    ...
    [2016-01-02 17:18:12,432] [2139696] [118 ] [INFO ] - Controller: card:8 type:DvbC is available
    [2016-01-02 17:18:12,432] [2139696] [118 ] [ERROR] - card: unable to connect to slave controller at:Morpheus8 (caused by missing NIC)
    [2016-01-02 17:18:12,448] [2139712] [118 ] [INFO ] - Controller: Local-0 8 -1
    [2016-01-02 17:18:12,448] [2139712] [118 ] [ERROR] - Starting timeshifting failed with result UnknownError

    I pushed my change into the Weekly_20160101 branch. Can you test the behavior for your case?
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    Will test in 3 hours. Just a note it works absolutely fine and reliable with mp1 on the same client.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    With your new code it does not even work through the MP2 menu.

    What about sleeping 1000ms in the code which stops / disables SSDP before it does it?

    Log:
    Code:
    [2016-01-02 20:04:51,002] [283396 ] [InputMgr ] [INFO ] - SystemStateService: Suspending
    [2016-01-02 20:04:51,004] [283398 ] [AMQ 'SlimTvClientModel'] [INFO ] - SlimTvClientModel: System suspending, stopping all SlimTV players
    [2016-01-02 20:04:51,358] [283752 ] [124 ] [INFO ] - UPnPServerController: SSDP disabled for IP endpoint '10.8.0.105'
    [2016-01-02 20:04:51,393] [283787 ] [105 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '10.8.0.105'
    [2016-01-02 20:04:51,393] [283787 ] [102 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '10.8.0.105'
    [2016-01-02 20:04:51,605] [283999 ] [124 ] [INFO ] - UPnPServerController: SSDP disabled for IP endpoint '10.8.0.105'
    [2016-01-02 20:04:51,625] [284019 ] [122 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '10.8.0.105'
    [2016-01-02 20:04:51,626] [284020 ] [103 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '10.8.0.105'
    [2016-01-02 20:04:51,637] [284031 ] [AMQ 'SlimTvClientModel'] [INFO ] - Releasing filter System.__ComObject, remaining references: 1
    [2016-01-02 20:04:51,721] [284114 ] [120 ] [INFO ] - UPnPServerController: SSDP disabled for IP endpoint '192.168.178.201'
    [2016-01-02 20:04:51,730] [284124 ] [105 ] [INFO ] - UPnPServerController: SSDP disabled for IP endpoint '192.168.178.201'
    [2016-01-02 20:04:51,733] [284127 ] [AMQ 'SlimTvClientModel'] [ERROR] - Error writing action call document: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
    [2016-01-02 20:04:51,738] [284131 ] [124 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '192.168.178.201'
    [2016-01-02 20:04:51,742] [284136 ] [AMQ 'SlimTvClientModel'] [INFO ] - SlimTvClientModel: System suspending, stopping all SlimTV players
    [2016-01-02 20:04:51,743] [284137 ] [AMQ 'SlimTvClientModel'] [INFO ] - SlimTvClientModel: System suspending, stopping all SlimTV players
    [2016-01-02 20:04:51,745] [284139 ] [AMQ 'SlimTvClientModel'] [INFO ] - SlimTvClientModel: System suspending, stopping all SlimTV players
    [2016-01-02 20:04:51,735] [284129 ] [122 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '192.168.178.201'
    [2016-01-02 20:04:51,736] [284129 ] [102 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '192.168.178.201'
    [2016-01-02 20:04:51,737] [284131 ] [103 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '192.168.178.201'
    [2016-01-02 20:04:51,744] [284137 ] [AMQ 'SynchronizeToPrimaryPlayer'] [INFO ] - SkinEngine MainForm: SynchronizeToVideoPlayerFramerate: Restore default rendering, no new Player!
    
    Power on again:
    
    [2016-01-02 20:09:28,806] [561200 ] [37 ] [INFO ] - UPnPServerController: GENA disabled for IP endpoint '192.168.178.201'
    [2016-01-02 20:09:28,822] [561215 ] [97 ] [INFO ] - UPnPServerController: GENA disabled for IP endpoint '192.168.178.201'
    [2016-01-02 20:09:28,822] [561215 ] [97 ] [INFO ] - ImporterWorker: Suspension requested...
    [2016-01-02 20:09:28,822] [561215 ] [113 ] [INFO ] - ImporterWorker: Suspended (0 ImportJobs pending)
    [2016-01-02 20:09:28,837] [561231 ] [97 ] [INFO ] - ImporterWorker: Suspension requested...
    [2016-01-02 20:09:28,978] [561372 ] [Thread31 ] [ERROR] - Service 'schemas-team-mediaportal-com:device:MP2-Server:1.schemas-team-mediaportal-com:service:SlimTv:1' is not connected to a UPnP network service
    [2016-01-02 20:09:33,370] [565764 ] [AMQ 'HomeServerModel'] [WARN ] - SystemName: Could not retrieve host alias/address list from DNS
    System.Net.Sockets.SocketException (0x80004005): Der angegebene Host ist unbekannt
     bei System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6)
     bei System.Net.Dns.GetHostEntry(String hostNameOrAddress)
     bei MediaPortal.Common.General.SystemName.InitializeAliases(String hostName)
    [2016-01-02 20:09:33,858] [566252 ] [120 ] [INFO ] - UPnPServerController: SSDP enabled for IP endpoint '192.168.178.201', search port is 1900
    [2016-01-02 20:09:34,582] [566975 ] [87 ] [INFO ] - SSDPServerController: Stopping listening for multicast messages at IP endpoint '127.0.0.1'
    [2016-01-02 20:09:34,970] [567364 ] [97 ] [INFO ] - SlimTvClientModel: System resuming, autotune: False
    [2016-01-02 20:09:34,981] [567375 ] [120 ] [INFO ] - UPnPServerController: SSDP enabled for IP endpoint '192.168.178.201', search port is 1900
    [2016-01-02 20:09:39,233] [571627 ] [103 ] [INFO ] - UPnPServerController: SSDP enabled for IP endpoint '10.8.0.105', search port is 1900
    [2016-01-02 20:09:39,863] [572257 ] [102 ] [INFO ] - SSDPClientController: Stopping listening for multicast messages at IP endpoint '192.168.178.201'
    [2016-01-02 20:09:40,033] [572427 ] [103 ] [INFO ] - UPnPServerController: SSDP enabled for IP endpoint '10.8.0.105', search port is 1900
    [2016-01-02 20:09:42,477] [574871 ] [59 ] [INFO ] - ServerConnectionManager: Connected to home server '01af7439-c452-4e1a-9183-08325a311c0c' at host 'tvserver-VM.fritz.box' (IP address: '192.168.178.100')
    [2016-01-02 20:09:42,748] [575142 ] [Thread125] [INFO ] - ServerConnectionManager: Synchronizing shares with home server
    [2016-01-02 20:09:42,830] [575224 ] [AMQ 'SettingsChangeWatcher`1'] [INFO ] - NetworkNeighborhoodResourceProvider: No credential registered for the root path; using Network Service account as fallback
    [2016-01-02 20:09:43,023] [575416 ] [Thread125] [INFO ] - ServerConnectionManager: Checking for unregistered media item aspect types at home server
    [2016-01-02 20:09:43,244] [575637 ] [Thread125] [INFO ] - ImporterWorker: Activation requested...
    [2016-01-02 20:09:43,245] [575639 ] [53 ] [INFO ] - ImporterWorker: Activated (0 ImportJobs pending)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Just in time. I have pushed another change which executes the shutdown of players synchronously.

    Can you test if the timeshifting on server gets safely stopped now? In theory this should solve the problem.

    The "power on" after resume will need more work, but one step after the other
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Yes :D Such a small change, asynchronous handling is not always better ;)
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    @morpheus_xx regarding my problems with the upnp / ssdp not advertising after resume. Can't we just call:
    Code:
            UpdateInterfaceConfiguration();
            _serverData.SSDPController.Advertise();

    on resume in source\core\upnp\infrastructure\dv\upnpserver.cs ?
     

    Users who are viewing this thread

    Top Bottom