DLNA stops working after sleep / hibernate

Post Reply
iHomeWHS
Posts: 21
Joined: Sun Jun 22, 2014 9:41 am

DLNA stops working after sleep / hibernate

Post by iHomeWHS »

Hello,

after my WHS 2011 goes to sleep/hibernate and resumes, the DNLA of iHomeserver stops working.

=> Restart of iTunes doesn't help.
=>DNLA starts working after disable/enable in the settings.

Tested with several DNLA clients.

Thanks for supporting!
bizmodeller
Posts: 458
Joined: Thu Nov 14, 2013 8:40 pm

Re: DNLA stopps working after sleep hibernate

Post by bizmodeller »

Hi,

thanks for the report - we have done some further testing and agree there's an issue here. It appears to work intermittently at best.

I have raised a bug report for it and it should get fixed shortly. You can track the status of the bug here:

http://bugs.bizmodeller.com/view.php?id=288

thanks
iHomeWHS
Posts: 21
Joined: Sun Jun 22, 2014 9:41 am

Re: DLNA stops working after sleep / hibernate

Post by iHomeWHS »

I've checked with V3.1.66) several times. After my WHS comes up from sleeping (suspend to RAM) the DNLA ist still dead (tested with Microsoft Media Player).

After switching the DNLA option off/on, it's working again.

Here ist the log around the wake up at 5pm

Code: Select all

05/08/2014 16:59:48.734 1712:0 23 iHomeServer.DLNA.Device.Device::: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:b4b9456e-758c-4bb9-85c3-8e1a75498f83
05/08/2014 16:59:48.734 1712:0 23 iHomeServer.DLNA.Device.Device::: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:b4b9456e-758c-4bb9-85c3-8e1a75498f83
05/08/2014 16:59:48.735 1712:0 23 iHomeServer.DLNA.Device.Device::: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:b4b9456e-758c-4bb9-85c3-8e1a75498f83
05/08/2014 16:59:48.735 1712:0 23 iHomeServer.DLNA.Device.Device::: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:b4b9456e-758c-4bb9-85c3-8e1a75498f83
05/08/2014 16:59:48.736 1712:0 15 iHomeServer.DLNA.Device.Device::   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at OpenSource.UPnP.MiniWebServer..ctor(IPEndPoint local)
   at OpenSource.UPnP.UPnPDevice.(NetworkInfo , IPAddress ): System.Net.Sockets.SocketException

 Additional Info: UPnPDevice: SERVER iHomeServer for iTunes: 1 @192.168.1.32
The requested address is not valid in its context
05/08/2014 16:59:48.736 1712:0 15 iHomeServer.DLNA.Device.Device::   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at OpenSource.UPnP.MiniWebServer..ctor(IPEndPoint local)
   at OpenSource.UPnP.UPnPDevice.(NetworkInfo , IPAddress ): System.Net.Sockets.SocketException

 Additional Info: UPnPDevice: SERVER iHomeServer for iTunes: 1 @192.168.1.32
The requested address is not valid in its context
05/08/2014 16:59:48.770 1712:0 15 iHomeServer.DLNA.Device.Device::   at OpenSource.UPnP.UPnPDevice.(String , Int32 , UPnPDevice& )
   at OpenSource.UPnP.UPnPDevice.Parse(String XML, Uri source, IPAddress Intfce): OpenSource.UPnP.XMLParsingException : System.Net.Sockets.SocketException

 Additional Info: 
Line: 22, Position: 14
URL: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:e0e97dac-fbfb-4934-bbec-b08db4e3930e
XML:
    <?xml version="1.0"?>
    <root xmlns="urn:schemas-upnp-org:device-1-0">
    	<specVersion>
    		<major>1</major>
    		<minor>0</minor>
    	</specVersion>
    	<device>
    		<URLBase>http://go.microsoft.com/fwlink/?LinkId=162046</URLBase>
    		<deviceType>urn:microsoft-com:device:HSBSServer:1</deviceType>
    		<friendlyName>SERVER</friendlyName>
    		<manufacturer>Microsoft Corporation</manufacturer>
    		<manufacturerURL>http://go.microsoft.com/fwlink/?LinkId=162046</manufacturerURL>
    		<modelName>Windows Server</modelName>
    		<modelURL>http://go.microsoft.com/fwlink/?LinkId=162046</modelURL>
    		<UDN>uuid:e0e97dac-fbfb-4934-bbec-b08db4e3930e</UDN>
    		<serviceList>
    			<service>
    				<serviceType>urn:microsoft-com:service:DiscoveryService:1</serviceType>
    				<serviceId>urn:microsoft-com:serviceId:DiscoveryService</serviceId>
    				<controlURL>/upnphost/udhisapi.dll?control=uuid:e0e97dac-fbfb-4934-bbec-b08db4e3930e+urn:microsoft-com:serviceId:DiscoveryService</controlURL>
    				<eventSubURL></eventSubURL>
--->				<SCPDURL>/upnphost/udhisapi.dll?content=uuid:eabbcd33-8ec9-4154-9284-d5fe95622ffe</SCPDURL>
                 ^
    			</service>
    		</serviceList>
    		<presentationURL>http://SERVER/Connect?</presentationURL>
    	</device>
    </root>
    

Invalid Device XML

InnerException #0:
Message: The requested name is valid, but no data of the requested type was found
Source: System
StackTrace:    at System.Net.Dns.GetAddrInfo(String name)
   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
   at OpenSource.UPnP.SSDP.ParseURL(String ServiceURL, String& WebIP, Int32& Port, String& ServiceName)
   at OpenSource.UPnP.UPnPDevice.AddService(UPnPService service)
   at OpenSource.UPnP.UPnPDevice.(String , Int32 , UPnPDevice& )
05/08/2014 16:59:48.771 1712:0 15 iHomeServer.DLNA.Device.Device::   at OpenSource.UPnP.UPnPDevice.(String , Int32 , UPnPDevice& )
   at OpenSource.UPnP.UPnPDevice.Parse(String XML, Uri source, IPAddress Intfce): OpenSource.UPnP.XMLParsingException : System.Net.Sockets.SocketException

 Additional Info: 
Line: 22, Position: 14
URL: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:e0e97dac-fbfb-4934-bbec-b08db4e3930e
XML:
    <?xml version="1.0"?>
    <root xmlns="urn:schemas-upnp-org:device-1-0">
    	<specVersion>
    		<major>1</major>
    		<minor>0</minor>
    	</specVersion>
    	<device>
    		<URLBase>http://go.microsoft.com/fwlink/?LinkId=162046</URLBase>
    		<deviceType>urn:microsoft-com:device:HSBSServer:1</deviceType>
    		<friendlyName>SERVER</friendlyName>
    		<manufacturer>Microsoft Corporation</manufacturer>
    		<manufacturerURL>http://go.microsoft.com/fwlink/?LinkId=162046</manufacturerURL>
    		<modelName>Windows Server</modelName>
    		<modelURL>http://go.microsoft.com/fwlink/?LinkId=162046</modelURL>
    		<UDN>uuid:e0e97dac-fbfb-4934-bbec-b08db4e3930e</UDN>
    		<serviceList>
    			<service>
    				<serviceType>urn:microsoft-com:service:DiscoveryService:1</serviceType>
    				<serviceId>urn:microsoft-com:serviceId:DiscoveryService</serviceId>
    				<controlURL>/upnphost/udhisapi.dll?control=uuid:e0e97dac-fbfb-4934-bbec-b08db4e3930e+urn:microsoft-com:serviceId:DiscoveryService</controlURL>
    				<eventSubURL></eventSubURL>
--->				<SCPDURL>/upnphost/udhisapi.dll?content=uuid:eabbcd33-8ec9-4154-9284-d5fe95622ffe</SCPDURL>
                 ^
    			</service>
    		</serviceList>
    		<presentationURL>http://SERVER/Connect?</presentationURL>
    	</device>
    </root>
    

Invalid Device XML

InnerException #0:
Message: The requested name is valid, but no data of the requested type was found
Source: System
StackTrace:    at System.Net.Dns.GetAddrInfo(String name)
   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
   at OpenSource.UPnP.SSDP.ParseURL(String ServiceURL, String& WebIP, Int32& Port, String& ServiceName)
   at OpenSource.UPnP.UPnPDevice.AddService(UPnPService service)
   at OpenSource.UPnP.UPnPDevice.(String , Int32 , UPnPDevice& )
05/08/2014 16:59:49.675 1712:0 21 iHomeServer.DLNA.Device.Device::: 127.0.0.1:1900
05/08/2014 16:59:49.675 1712:0 21 iHomeServer.DLNA.Device.Device::: 127.0.0.1:1900
05/08/2014 16:59:49.733 1712:0 21 iHomeServer.DLNA.Device.Device::   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OpenSource.Utilities.WeakEvent.Fire(Object[] args): System.Reflection.TargetInvocationException : System.NullReferenceException

 Additional Info: 
Exception has been thrown by the target of an invocation.

InnerException #0:
Message: Object reference not set to an instance of an object.
Source: UPnP
StackTrace:    at OpenSource.UPnP.UPnPDevice.(String , IPEndPoint , IPEndPoint )
05/08/2014 16:59:49.733 1712:0 21 iHomeServer.DLNA.Device.Device::   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OpenSource.Utilities.WeakEvent.Fire(Object[] args): System.Reflection.TargetInvocationException : System.NullReferenceException

 Additional Info: 
Exception has been thrown by the target of an invocation.

InnerException #0:
Message: Object reference not set to an instance of an object.
Source: UPnP
StackTrace:    at OpenSource.UPnP.UPnPDevice.(String , IPEndPoint , IPEndPoint )
05/08/2014 16:59:50.114 1712:0 23 iHomeServer.DLNA.Device.Device::: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:b4b9456e-758c-4bb9-85c3-8e1a75498f83
05/08/2014 16:59:50.114 1712:0 23 iHomeServer.DLNA.Device.Device::: http://127.0.0.1:2869/upnphost/udhisapi.dll?content=uuid:b4b9456e-758c-4bb9-85c3-8e1a75498f83

hope this helps.
bizmodeller
Posts: 458
Joined: Thu Nov 14, 2013 8:40 pm

Re: DLNA stops working after sleep / hibernate

Post by bizmodeller »

Sorry to be a pain, but could you zip and email us your full log files again?

many thanks
Post Reply