← Back to team overview

desktop-packages team mailing list archive

[Bug 1299846] Re: Unhandled exception in UpnpService causes crashes

 

Cannot browse UPnP / DLNA servers, only list of servers is shown but
they're greyed out (cannot be clicked):

[18 Debug 06:52:46.679] UPnPService "Plex Media Server: hadi.dev" Implements urn:schemas-upnp-org:service:ConnectionManager:1
[22 Debug 06:52:46.685] Content directory is not searchable, let's browse recursively
[20 Warn  06:52:46.694] Caught an exception - Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.DeserializationException: The DIDL-Lite element has no proper children. (in `Mono.Upnp.Dcp.MediaServer1')
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory+<Deserialize>c__Iterator6`1[Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Object].MoveNext () [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.Deserialize[Object] (System.String xml) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.GetChildren[Object] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, ResultsSettings settings) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.GetChildren[Object] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.ParseContainer (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, Int32 depth, System.Collections.Generic.List`1 music_tracks, System.Collections.Generic.List`1 video_tracks) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource+<ParseContainer>c__AnonStorey2.<>m__0 (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Results`1 chunk) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.HandleResults[Object] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Results`1 results, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Banshee.UPnPClient.ChunkHandler`1 chunkHandler) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.ParseContainer (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, Int32 depth, System.Collections.Generic.List`1 music_tracks, System.Collections.Generic.List`1 video_tracks) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource+<ParseContainer>c__AnonStorey2.<>m__0 (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Results`1 chunk) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.HandleResults[Object] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Results`1 results, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Banshee.UPnPClient.ChunkHandler`1 chunkHandler) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.ParseContainer (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, Int32 depth, System.Collections.Generic.List`1 music_tracks, System.Collections.Generic.List`1 video_tracks) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.TraverseContainer (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, System.String[] hierarchy, Int32 position, System.Collections.Generic.List`1 music_tracks, System.Collections.Generic.List`1 video_tracks) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.Parse (Mono.Upnp.Device device, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.ContentDirectoryController content_directory) [0x00000] in <filename unknown>:0 
[20 Debug 06:52:46.694] Found all items on the service, took 00:00:00.0825070
[22 Warn  06:52:46.703] Caught an exception - System.Reflection.TargetException: Non-static method requires a target. (in `mscorlib')
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateArrayItemElementDeserializer>c__AnonStorey1E.<>m__31 (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateElementAutoDeserializer>c__AnonStorey12.<>m__1A (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Xml.XmlDeserializer.AutoDeserializeElement[PlaylistContainer] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.AV.PlaylistContainer obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Xml.XmlDeserializationContext.AutoDeserializeElement[PlaylistContainer] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.AV.PlaylistContainer obj) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.AV.PlaylistContainer.DeserializeElement (Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Xml.XmlDeserializable.Mono.Upnp.Xml.IXmlDeserializable.DeserializeElement (Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler.<CreateSubElementDeserializer>m__18 (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Xml.Compilation.DelegateDeserializationCompiler+<CreateElementDeserializer>c__AnonStorey11.<>m__17 (System.Object obj, Mono.Upnp.Xml.XmlDeserializationContext context, Int32 depth) [0x00000] in <filename unknown>:0 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. (in `mscorlib')
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory+<Deserializers>c__Iterator5`1[Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Object].<>m__51 (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory+<Deserialize>c__Iterator6`1[Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Object].MoveNext () [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.GetChildren[Object] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, ResultsSettings settings) [0x00000] in <filename unknown>:0 
  at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.GetChildren[Object] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.ParseContainer (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, Int32 depth, System.Collections.Generic.List`1 music_tracks, System.Collections.Generic.List`1 video_tracks) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource+<ParseContainer>c__AnonStorey2.<>m__0 (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Results`1 chunk) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.HandleResults[Object] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Results`1 results, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Banshee.UPnPClient.ChunkHandler`1 chunkHandler) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.ParseContainer (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, Int32 depth, System.Collections.Generic.List`1 music_tracks, System.Collections.Generic.List`1 video_tracks) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.TraverseContainer (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory remote_dir, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, System.String[] hierarchy, Int32 position, System.Collections.Generic.List`1 music_tracks, System.Collections.Generic.List`1 video_tracks) [0x00000] in <filename unknown>:0 
  at Banshee.UPnPClient.UPnPServerSource.Parse (Mono.Upnp.Device device, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.ContentDirectoryController content_directory) [0x00000] in <filename unknown>:0 
[22 Debug 06:52:46.703] Found all items on the service, took 00:00:00.0234600

Same issue as : http://banshee-media-player.2283330.n4.nabble.com
/Cannot-access-UPNP-servers-td4650634.html

Banshee Version: 2.6.2~linuxmint1

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to banshee in Ubuntu.
https://bugs.launchpad.net/bugs/1299846

Title:
  Unhandled exception in UpnpService causes crashes

Status in Banshee Music Player:
  New
Status in “banshee” package in Ubuntu:
  Confirmed

Bug description:
  With Upnp enabled, Banshee constantly crashes somewhere between 20-45
  minutes of activity. The log tells me it is always the same exception:

  [16 Debug 13:09:04.704] Found all items on the service, took 00:08:51.6255600
  [12 Debug 13:10:12.987] UPnPService.DeviceRemoved (urn:schemas-wifialliance-org:device:WFADevice:1) uuid:42587efc-c9aa-5111-590f-e0bfefa8b34e
  [33 Debug 13:19:37.107] UPnPService.DeviceAdded (urn:schemas-wifialliance-org:device:WFADevice:1) uuid:42587efc-c9aa-5111-590f-e0bfefa8b34e
  [1 Debug 13:28:02.212] Player state change: Paused -> Playing
  [12 Debug 13:30:12.394] UPnPService.DeviceRemoved (urn:schemas-upnp-org:device:InternetGatewayDevice:1) uuid:a83944f0-8930-3089-f044-39a839f0300000
  [12 Debug 13:30:12.983] UPnPService.DeviceRemoved (urn:schemas-upnp-org:device:WANDevice:1) uuid:a83944f0-8930-3089-f044-39a839f0300001

  Unhandled Exception: Mono.Upnp.UpnpDeserializationException: The type description version number could not be parsed: .
    at Mono.Upnp.TypeInfo.Parse (System.String typeDescription, System.String& domainName, System.String& type, System.Version& version) [0x00000] in <filename unknown>:0
    at Mono.Upnp.ServiceType.Parse (System.String serviceType) [0x00000] in <filename unknown>:0
    at Mono.Upnp.Client.ClientServiceEvent (Mono.Ssdp.ServiceArgs args, System.Action`1 deviceHandler, System.Action`1 serviceHandler) [0x00000] in <filename unknown>:0
    at Mono.Upnp.Client.ClientServiceRemoved (System.Object sender, Mono.Ssdp.ServiceArgs args) [0x00000] in <filename unknown>:0
    at Mono.Ssdp.Client.OnServiceRemoved (System.String usn) [0x00000] in <filename unknown>:0
    at Mono.Ssdp.Client.CacheServiceRemoved (System.String usn) [0x00000] in <filename unknown>:0
    at Mono.Ssdp.Internal.ServiceCache.Remove (System.String usn, Boolean fromTimeout) [0x00000] in <filename unknown>:0
    at Mono.Ssdp.Internal.ServiceCache.TimeoutHandler (System.Object state, System.TimeSpan& interval) [0x00000] in <filename unknown>:0
    at Mono.Ssdp.Internal.TimeoutDispatcher.TimerThread (System.Object state) [0x00000] in <filename unknown>:0

  Additionally, this exception is also thrown at intervals but does not
  cause Banshee to crash:

  [16 Warn  13:09:04.703] Caught an exception - Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.DeserializationException: The DIDL-Lite element has no proper children. (in `Mono.Upnp.Dcp.MediaServer1')
    at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory+<Deserialize>c__Iterator6`1[Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Object].MoveNext () [0x00000] in <filename unknown>:0
    at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.Deserialize[VideoItem] (System.String xml) [0x00000] in <filename unknown>:0
    at Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.RemoteContentDirectory.Search[VideoItem] (Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.Container container, System.Action`1 query, ResultsSettings settings) [0x00000] in <filename unknown>:0
    at Banshee.UPnPClient.UPnPServerSource.Parse (Mono.Upnp.Device device, Mono.Upnp.Dcp.MediaServer1.ContentDirectory1.ContentDirectoryController content_directory) [0x00000] in <filename unknown>:0

  Ubuntu 13.10
  banshee 2.6.1-2ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/banshee/+bug/1299846/+subscriptions