After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687495 - Banshee hangs when I insert my Windows Phone into a USB
Banshee hangs when I insert my Windows Phone into a USB
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - MTP
2.6.0
Other Linux
: Normal major
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
: 705086 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-11-03 07:52 UTC by migsoft2
Modified: 2013-07-29 16:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Error log (3.88 KB, text/plain)
2012-11-03 07:53 UTC, migsoft2
Details

Description migsoft2 2012-11-03 07:52:45 UTC
Here is the terminal output. I also attach the log.

[Info  00:41:12.586] Running Banshee 2.6.0: [Ubuntu 12.10 (linux-gnu, i686) @ 2012-10-11 06:19:46 UTC]
[Info  00:41:13.792] Updating web proxy from GConf
[Warn  00:41:13.915] Failed to load media-player-info file for 1
[Warn  00:41:13.919] Failed to load media-player-info file for 1
[Info  00:41:13.931] All services are started 1.143958
[Info  00:41:14.460] AmazonMP3 store redirect URL: https://one.ubuntu.com/music/store/amz/
[Info  00:41:15.579] nereid Client Started
[Info  00:41:15.667] GStreamer version 0.10.36.0, gapless: True, replaygain: False
[Warn  00:41:15.679] Failed to load media-player-info file for 1
Device 0 (VID=045e and PID=04ec) is a Microsoft Windows Phone.

(Banshee:16351): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
ignoring usb_claim_interface = -6ignoring usb_claim_interface = -5PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
[Warn  00:41:15.837] Failed to load media-player-info file for 1
[Warn  00:41:17.377] Failed to load media-player-info file for 1
[Info  00:41:20.840] AppleDeviceSource is ignoring unmounted volume MyPassport
[Info  00:41:20.850] AppleDeviceSource is ignoring unmounted volume Hitachi
[Info  00:41:20.855] AppleDeviceSource is ignoring unmounted volume Lenovo_Recovery
[Info  00:41:20.901] AppleDeviceSource is ignoring unmounted volume 045e 04ec
Device 0 (VID=045e and PID=04ec) is a Microsoft Windows Phone.
[Warn  00:41:20.906] Caught an exception - System.ObjectDisposedException: The object was used after being disposed. (in `mscorlib')
  at System.Runtime.InteropServices.SafeHandle.DangerousAddRef (System.Boolean& success) [0x00000] in <filename unknown>:0 
  at (wrapper managed-to-native) Mtp.Track:LIBMTP_Get_Tracklisting_With_Callback (Mtp.MtpDeviceHandle,Mtp.ProgressFunction,intptr)
  at Mtp.Track.GetTrackListing (Mtp.MtpDeviceHandle handle, Mtp.ProgressFunction function, IntPtr data) [0x00000] in <filename unknown>:0 
  at Mtp.MtpDevice.GetAllTracks (Mtp.ProgressFunction callback) [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Mtp.MtpSource.LoadFromDevice () [0x00000] in <filename unknown>:0 
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentNullException: Argument cannot be null.
Parameter name: obj
  at System.Threading.Monitor.TryEnter (System.Object obj, Int32 millisecondsTimeout) [0x00000] in <filename unknown>:0 
  at System.Threading.Monitor.TryEnter (System.Object obj) [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Mtp.MtpSource.get_BytesUsed () [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Gui.DapInfoBar.UpdateUsage () [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Gui.DapInfoBar.BuildWidget () [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Gui.DapInfoBar..ctor (Banshee.Dap.DapSource source) [0x00000] in <filename unknown>:0 
  at Banshee.Dap.DapSource.<Initialize>m__F () [0x00000] in <filename unknown>:0 
  at Banshee.ServiceStack.Application+<Invoke>c__AnonStorey21.<>m__38 () [0x00000] in <filename unknown>:0 
  at Banshee.Gui.GtkBaseClient+<RunIdle>c__AnonStorey1D.<>m__A4 () [0x00000] in <filename unknown>:0 
  at GLib.Idle+IdleProxy.Handler () [0x00000] in <filename unknown>:0 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.Idle+IdleProxy.Handler()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Banshee.Gui.GtkBaseClient.Run()
   at Banshee.Gui.GtkBaseClient.Startup()
   at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup)
   at Banshee.Gui.GtkBaseClient.Startup()
   at Banshee.Gui.GtkBaseClient.Startup(System.String[] args)
   at Nereid.Client.Main(System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.AppDomain , System.Reflection.Assembly , System.String[] )
   at System.AppDomain.ExecuteAssemblyInternal(System.Reflection.Assembly a, System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.String assemblyFile)
   at Booter.Booter.BootClient(System.String clientName)
   at Booter.Booter.Main()
^C
mike@mike-ThinkPad-W520:~$ banshee 
[Info  00:42:12.419] Running Banshee 2.6.0: [Ubuntu 12.10 (linux-gnu, i686) @ 2012-10-11 06:19:46 UTC]
[Info  00:42:13.278] Updating web proxy from GConf
[Info  00:42:13.342] All services are started 0.713813
[Info  00:42:15.611] AmazonMP3 store redirect URL: https://one.ubuntu.com/music/store/amz/
[Warn  00:42:16.322] Forcefully breaking out of RCS loop b/c change in total_width less than 1.0
[Info  00:42:16.426] nereid Client Started
[Info  00:42:16.534] GStreamer version 0.10.36.0, gapless: True, replaygain: False
[Info  00:42:16.569] AppleDeviceSource is ignoring unmounted volume MyPassport
[Info  00:42:16.626] AppleDeviceSource is ignoring unmounted volume Hitachi
[Info  00:42:16.628] AppleDeviceSource is ignoring unmounted volume CRUZER
[Info  00:42:16.630] AppleDeviceSource is ignoring unmounted volume Windows7_OS
[Info  00:42:16.638] AppleDeviceSource is ignoring unmounted volume 4.1 GB Volume
[Info  00:42:16.640] AppleDeviceSource is ignoring unmounted volume SYSTEM_DRV
[Info  00:42:16.641] AppleDeviceSource is ignoring unmounted volume Lenovo_Recovery
[Warn  00:42:23.273] Caught an exception - System.Xml.XmlException: Multiple document element was detected.  Line 2, position 2. (in `System.Xml')
  at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000] in <filename unknown>:0 
  at Migo.Syndication.RssParser..ctor (System.String url, System.String xml) [0x00000] in <filename unknown>:0 
[Warn  00:42:23.273] Caught an exception - System.FormatException: Invalid XML document. (in `Migo')
  at Migo.Syndication.RssParser..ctor (System.String url, System.String xml) [0x00000] in <filename unknown>:0 
  at Migo.Syndication.FeedUpdateTask.OnDownloadDataReceived (System.Object sender, Migo.Net.DownloadStringCompletedEventArgs args) [0x00000] in <filename unknown>:0 
Couldn't cast 21454.26 (System.String) as System.TimeSpan for key length
Couldn't cast 21454.26 (System.String) as System.TimeSpan for key length
Couldn't cast 1756.96 (System.String) as System.TimeSpan for key length
Couldn't cast 1756.96 (System.String) as System.TimeSpan for key length
Couldn't cast 1756.96 (System.String) as System.TimeSpan for key length
Couldn't cast 1756.27 (System.String) as System.TimeSpan for key length
Couldn't cast 1756.27 (System.String) as System.TimeSpan for key length
Couldn't cast 1756.96 (System.String) as System.TimeSpan for key length
Couldn't cast 1756.27 (System.String) as System.TimeSpan for key length
Couldn't cast 1752.45 (System.String) as System.TimeSpan for key length
Couldn't cast 1752.45 (System.String) as System.TimeSpan for key length
Couldn't cast 1752.45 (System.String) as System.TimeSpan for key length
Couldn't cast 1751.84 (System.String) as System.TimeSpan for key length
Couldn't cast 1751.84 (System.String) as System.TimeSpan for key length
Couldn't cast 1752.45 (System.String) as System.TimeSpan for key length
Couldn't cast 1751.84 (System.String) as System.TimeSpan for key length
Couldn't cast 1780.37 (System.String) as System.TimeSpan for key length
Couldn't cast 1780.37 (System.String) as System.TimeSpan for key length
Couldn't cast 1780.37 (System.String) as System.TimeSpan for key length
Couldn't cast 1779.81 (System.String) as System.TimeSpan for key length
Couldn't cast 1779.81 (System.String) as System.TimeSpan for key length
Couldn't cast 1780.37 (System.String) as System.TimeSpan for key length
Couldn't cast 1779.81 (System.String) as System.TimeSpan for key length
Couldn't cast 1915.41 (System.String) as System.TimeSpan for key length
Couldn't cast 1915.41 (System.String) as System.TimeSpan for key length
Couldn't cast 1915.41 (System.String) as System.TimeSpan for key length
Couldn't cast 1914.82 (System.String) as System.TimeSpan for key length
Couldn't cast 1914.82 (System.String) as System.TimeSpan for key length
Couldn't cast 1915.41 (System.String) as System.TimeSpan for key length
Couldn't cast 1914.82 (System.String) as System.TimeSpan for key length
Couldn't cast 1956.1 (System.String) as System.TimeSpan for key length
Couldn't cast 1956.1 (System.String) as System.TimeSpan for key length
Couldn't cast 1956.1 (System.String) as System.TimeSpan for key length
Couldn't cast 1955.48 (System.String) as System.TimeSpan for key length
Couldn't cast 1955.48 (System.String) as System.TimeSpan for key length
Couldn't cast 1956.1 (System.String) as System.TimeSpan for key length
Couldn't cast 1955.48 (System.String) as System.TimeSpan for key length
Couldn't cast 1619.73 (System.String) as System.TimeSpan for key length
Couldn't cast 1619.73 (System.String) as System.TimeSpan for key length
Couldn't cast 1619.73 (System.String) as System.TimeSpan for key length
Couldn't cast 1619.2 (System.String) as System.TimeSpan for key length
Couldn't cast 1619.2 (System.String) as System.TimeSpan for key length
Couldn't cast 1619.73 (System.String) as System.TimeSpan for key length
Couldn't cast 1619.2 (System.String) as System.TimeSpan for key length
Couldn't cast 1653.9 (System.String) as System.TimeSpan for key length
Couldn't cast 1653.9 (System.String) as System.TimeSpan for key length
Couldn't cast 1653.9 (System.String) as System.TimeSpan for key length
Couldn't cast 1653.31 (System.String) as System.TimeSpan for key length
Couldn't cast 1653.31 (System.String) as System.TimeSpan for key length
Couldn't cast 1653.9 (System.String) as System.TimeSpan for key length
Couldn't cast 1653.31 (System.String) as System.TimeSpan for key length
Couldn't cast 1691.14 (System.String) as System.TimeSpan for key length
Couldn't cast 1691.14 (System.String) as System.TimeSpan for key length
Couldn't cast 1691.14 (System.String) as System.TimeSpan for key length
Couldn't cast 1690.62 (System.String) as System.TimeSpan for key length
Couldn't cast 1690.62 (System.String) as System.TimeSpan for key length
Couldn't cast 1691.14 (System.String) as System.TimeSpan for key length
Couldn't cast 1690.62 (System.String) as System.TimeSpan for key length
Couldn't cast 1861.89 (System.String) as System.TimeSpan for key length
Couldn't cast 1861.89 (System.String) as System.TimeSpan for key length
Couldn't cast 1861.89 (System.String) as System.TimeSpan for key length
Couldn't cast 1861.3 (System.String) as System.TimeSpan for key length
Couldn't cast 1861.3 (System.String) as System.TimeSpan for key length
Couldn't cast 1861.89 (System.String) as System.TimeSpan for key length
Couldn't cast 1861.3 (System.String) as System.TimeSpan for key length
Couldn't cast 1790.61 (System.String) as System.TimeSpan for key length
Couldn't cast 1790.61 (System.String) as System.TimeSpan for key length
Couldn't cast 1790.61 (System.String) as System.TimeSpan for key length
Couldn't cast 1789.97 (System.String) as System.TimeSpan for key length
Couldn't cast 1789.97 (System.String) as System.TimeSpan for key length
Couldn't cast 1790.61 (System.String) as System.TimeSpan for key length
Couldn't cast 1789.97 (System.String) as System.TimeSpan for key length
Couldn't cast 1473.16 (System.String) as System.TimeSpan for key length
Couldn't cast 1473.16 (System.String) as System.TimeSpan for key length
Couldn't cast 1473.16 (System.String) as System.TimeSpan for key length
Couldn't cast 1472.64 (System.String) as System.TimeSpan for key length
Couldn't cast 1472.64 (System.String) as System.TimeSpan for key length
Couldn't cast 1473.16 (System.String) as System.TimeSpan for key length
Couldn't cast 1472.64 (System.String) as System.TimeSpan for key length
Couldn't cast 2202.38 (System.String) as System.TimeSpan for key length
Couldn't cast 2202.38 (System.String) as System.TimeSpan for key length
Couldn't cast 2202.38 (System.String) as System.TimeSpan for key length
Couldn't cast 2201.83 (System.String) as System.TimeSpan for key length
Couldn't cast 2201.83 (System.String) as System.TimeSpan for key length
Couldn't cast 2202.38 (System.String) as System.TimeSpan for key length
Couldn't cast 2201.83 (System.String) as System.TimeSpan for key length
[Warn  00:43:29.598] Forcefully breaking out of RCS loop b/c change in total_width less than 1.0
[Warn  00:43:53.360] Failed to load media-player-info file for 1
Device 0 (VID=045e and PID=04ec) is a Microsoft Windows Phone.

(Banshee:16437): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
ignoring usb_claim_interface = -6ignoring usb_claim_interface = -5PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
[Warn  00:43:59.364] Failed to load media-player-info file for 1
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentNullException: Argument cannot be null.
Parameter name: obj
  at System.Threading.Monitor.TryEnter (System.Object obj, Int32 millisecondsTimeout) [0x00000] in <filename unknown>:0 
  at System.Threading.Monitor.TryEnter (System.Object obj) [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Mtp.MtpSource.get_BytesUsed () [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Gui.DapInfoBar.UpdateUsage () [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Gui.DapInfoBar.BuildWidget () [0x00000] in <filename unknown>:0 
  at Banshee.Dap.Gui.DapInfoBar..ctor (Banshee.Dap.DapSource source) [0x00000] in <filename unknown>:0 
  at Banshee.Dap.DapSource.<Initialize>m__F () [0x00000] in <filename unknown>:0 
  at Banshee.ServiceStack.Application+<Invoke>c__AnonStorey21.<>m__38 () [0x00000] in <filename unknown>:0 
  at Banshee.Gui.GtkBaseClient+<RunIdle>c__AnonStorey1D.<>m__A4 () [0x00000] in <filename unknown>:0 
  at GLib.Idle+IdleProxy.Handler () [0x00000] in <filename unknown>:0 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.Idle+IdleProxy.Handler()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Banshee.Gui.GtkBaseClient.Run()
   at Banshee.Gui.GtkBaseClient.Startup()
   at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup)
   at Banshee.Gui.GtkBaseClient.Startup()
   at Banshee.Gui.GtkBaseClient.Startup(System.String[] args)
   at Nereid.Client.Main(System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.AppDomain , System.Reflection.Assembly , System.String[] )
   at System.AppDomain.ExecuteAssemblyInternal(System.Reflection.Assembly a, System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.String assemblyFile)
   at Booter.Booter.BootClient(System.String clientName)
   at Booter.Booter.Main()
Comment 1 migsoft2 2012-11-03 07:53:28 UTC
Created attachment 227959 [details]
Error log
Comment 2 Shaswat Nimesh 2013-05-22 12:35:33 UTC
Hello,

Thanks for reporting this bug.

I found that this bug is reported in past as well refer: https://bugs.launchpad.net/ubuntu/+source/banshee/+bug/267922

Issue is related to LIBMTP library please create a ticket for this bug here http://sourceforge.net/p/libmtp/bugs/

Cheers,
Shaswat Nimesh

 (In reply to comment #1)
> Created an attachment (id=227959) [details]
> Error log
Comment 3 Andrés G. Aragoneses (IRC: knocte) 2013-05-22 13:55:12 UTC
(In reply to comment #2)
> I found that this bug is reported in past as well refer:
> https://bugs.launchpad.net/ubuntu/+source/banshee/+bug/267922

Are you sure Shaswat? In that bug, I can read comment #26 from Chow, which says "Jaunty should sync Banshee 1.4.x from Debian. The bug was fixed upstream
in 1.3.x."

Anyway, from the log I found an ArgumentNullException being raised, which was unhandled, which was very easy to fix, and gives me hope that it fixes the hang (Banshee may still not show the device, but then that would be a different bug, at least we would have fixed the hang). I've pushed the fix here:

master: https://git.gnome.org/browse/banshee/commit/?id=d4fbe62ad024083739c07b4f7c7d75037fba7a14
stable-2.6: https://git.gnome.org/browse/banshee/commit/?h=stable-2.6&id=4f69e71970a9db3b8e5930fc6af06718cabc11e4

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 4 Shaswat Nimesh 2013-05-26 21:34:07 UTC
Yes you are correct, issue was due to unhandeled ArgumentNullException.

Thanks for the fix.

Keep up the good work.

Cheers,
Shaswat

(In reply to comment #3)
> (In reply to comment #2)
> > I found that this bug is reported in past as well refer:
> > https://bugs.launchpad.net/ubuntu/+source/banshee/+bug/267922
> 
> Are you sure Shaswat? In that bug, I can read comment #26 from Chow, which says
> "Jaunty should sync Banshee 1.4.x from Debian. The bug was fixed upstream
> in 1.3.x."
> 
> Anyway, from the log I found an ArgumentNullException being raised, which was
> unhandled, which was very easy to fix, and gives me hope that it fixes the hang
> (Banshee may still not show the device, but then that would be a different bug,
> at least we would have fixed the hang). I've pushed the fix here:
> 
> master:
> https://git.gnome.org/browse/banshee/commit/?id=d4fbe62ad024083739c07b4f7c7d75037fba7a14
> stable-2.6:
> https://git.gnome.org/browse/banshee/commit/?h=stable-2.6&id=4f69e71970a9db3b8e5930fc6af06718cabc11e4
> 
> This problem has been fixed in our software repository. The fix will go into
> the next software release. Thank you for your bug report.
Comment 5 Andrés G. Aragoneses (IRC: knocte) 2013-07-29 16:41:03 UTC
*** Bug 705086 has been marked as a duplicate of this bug. ***