SSDPServerController.OnExpirationTimerElapsed: Cannot acquire synchronization lock. Maybe a deadlock (1 Viewer)

MrTechno

Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    The service has started but the error log is full of these (one per second)
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    If it's any help I'm running on WHS 2011. Not seen the error before and the only thing I've done recently is enable remote access VPN. I'll turn it off and see if it helps.
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    Already tried a vanilla reinstall just in case it was SlimTV causing the issue. Still seeing the error
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    This lock really is locked! Service wouldn't stop, couldn't kill the process. Had to put it in manual mode, then reboot, then turn off VPN. Another reboot and everything is fine again. SSDP is running at the moment. Going to try turning VPN on again now
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    I took already a look into code, the affected object is "_cpData.SyncObj", which is used in many places for synchronization.

    So there could one process hanging during any network action, which would lock out other callers from the CpData object.

    Can you please describe more in detail what lead to the lock? Did MP2-Server worked once and suddenly hung? Or did it never work until you deactivated VPN? I could imagine that VPN network could be a cause for the problem.
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    When the VPN is active MP2-Server doesn't start properly. From a cold boot Services reports it as "Started" but MP2 ServiceMonitor status is "Disconnected from server".

    Comparing successful logs with VPN disabled and unsuccessful logs with VPN enabled there's an extra network interface in the unsuccessful log:

    [2014-01-05 17:40:43,546] [5218 ] [Main ] [DEBUG] - UPnPServer: Initializing IP endpoint '169.254.0.20'
    [2014-01-05 17:40:43,546] [5218 ] [Main ] [INFO ] - UPnPServerController: SSDP enabled for IP endpoint '169.254.0.20', search port is 1900

    According to ipconfig that address belongs to "PPP adapter RAS (Dial In) Interface"
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    Can you please upload both logfiles so we can compare them also?

    MP2 currently starts its UPnP services on each available network adapter. Maybe we need to introduce a setting to limit it to one or more chosen network adapters.
    Another way would be to add timeouts for service creation.
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    Here's a successful startup with VPN disabled
     

    Users who are viewing this thread

    Similar threads

    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For the first example, I highlighted the example text and eventually found the location in the menus where I could select the CODE macro to have the example text formatted as a code example. So far, so good...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    I made some updates to the Wiki page describing the <import> and <include> tags, including adding a couple of new xml examples. For...
    Replies
    0
    Views
    516
    maybe setting loglevel to debug might pinpoint the difference between normal and stuck? Preferable with as much disabled as possible also try to see if anything is happening during stuck for the mediaportal process(resource monitor, disk activity, cpu usage, anything) maybe other programs competing for resouces?
    maybe setting loglevel to debug might pinpoint the difference between normal and stuck? Preferable with as much disabled as...
    Since over a year my MP sometimes stucks while showing the welcome screen. It started once a week now it happens every second time...
    Replies
    4
    Views
    1K
    Your timing is great.....I just got home myself!! :) A little confusion for me here! There are 2 x files in the folder......one is x86, and other is x64 Wondering if I should be selecting the x64.....since I'm installing the 64bit version? UPDATE Transferred both files to the destination folder, and labelled appropriately. This way...
    Your timing is great.....I just got home myself!! :) A little confusion for me here! There are 2 x files in the folder......one is...
    Am a long time MP1 user, and have successfully been running the x64 version since it first appeared. Recently, problem of black...
    Replies
    10
    Views
    2K
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
    I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
    Replies
    7
    Views
    1K
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching live TV. I've now ticked the box to "Use EVR for LiveTV", with a default display refresh rate of 50Hz. In combination with tweaking some of the Nvidia 3D settings for the MP executable only, I now have a...
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    30
    Views
    8K
    Top Bottom