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

    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films that have deafening sound effects and music, combined with inaudible dialogue. I have never noticed the problem that you have described, but I also use the EVR renderer, and not the Madvr renderer. So...
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films...
    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
    27
    Views
    3K
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    I used to run the TVService under the "NT Service\TVService" account to follow least privileges principal (not exposing my whole...
    Replies
    3
    Views
    1K
    MP1 MP2 Picture-in-picture DE
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many tries, and it’s not clear what I am doing that makes it work on those occasions when it does. Cannot find guidance on the site. Thanks, N. Again, if anyone knows how to do this, would be much...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Replies
    0
    Views
    1K
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    I haven't tested it. I use MP1, but sometimes I try to help with MP2 :).
    This happened immediately after my Windows 11 x64 monthly update for November. The update included also cumulative update to .NET...
    Replies
    9
    Views
    1K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    784
    Top Bottom