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 628388 - Can create playlist, but then can't unplug device
Can create playlist, but then can't unplug device
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - MTP
git master
Other Linux
: Normal critical
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-31 05:51 UTC by Coudy
Modified: 2010-09-01 03:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Coudy 2010-08-31 05:51:50 UTC
When I create playlist, then I can't unplug MTP device Samsung YP-U3. 
Banshee show me error message : Value is greater than Int32.MaxValue or less than Int32.MinValue

Here is log:

[Info  07:46:21.007] Running Banshee 1.7.4: [Ubuntu 10.04.1 LTS (linux-gnu, i486) @ 2010-08-13 15:58:49 UTC]
[Info  07:46:23.318] Updating web proxy from GConf
[Info  07:46:23.516] All services are started 2.104141
[Info  07:46:24.894] nereid Client Started
Device 0 (VID=04e8 and PID=507d) is a Samsung YP-U3.
[Warn  07:47:04.631] Caught an exception - System.OverflowException: Value is greater than Int32.MaxValue or less than Int32.MinValue (in `mscorlib')
  at System.Convert.ToInt32 (Int64 value) [0x00000] 
  at System.Int64.System.IConvertible.ToInt32 (IFormatProvider provider) [0x00000] 
  at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] 
  at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] 
  at Hyena.Data.Sqlite.SqliteUtils.FromDbFormat (System.Type type, System.Object value) [0x00000] 
  at Hyena.Data.Sqlite.HyenaSqliteConnection+<QueryEnumerable>c__Iterator0`1[System.Int32].MoveNext () [0x00000] 
  at Banshee.Dap.Mtp.MtpSource.SyncPlaylists () [0x00000] 
  at Banshee.Dap.DapSource.Eject () [0x00000] 
  at Banshee.Dap.Mtp.MtpSource.Eject () [0x00000] 
  at Banshee.Dap.RemovableSource.<Unmap>m__B (System.Object ) [0x00000] 
Full thread dump:

"Main Thread" tid=0x0xb726f0 this=0x0x2fed8 thread handle 0x404 state : not waiting owns ()
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x0000a>
  at Banshee.Gui.GtkBaseClient.Run () <0x00054>
  at Banshee.Gui.GtkBaseClient.Startup () <0x00044>
  at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.CleanRoomStartup/StartupInvocationHandler) <0x00089>
  at Banshee.Gui.GtkBaseClient.Startup<Nereid.Client> () <0x0004d>
  at Banshee.Gui.GtkBaseClient.Startup<Nereid.Client> (string[]) <0x000ca>
  at Nereid.Client.Main (string[]) <0x00015>
  at (wrapper runtime-invoke) Nereid.Client.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.AppDomain.ExecuteAssembly (System.Reflection.Assembly,string[]) <0x00004>
  at (wrapper managed-to-native) System.AppDomain.ExecuteAssembly (System.Reflection.Assembly,string[]) <0xffffffff>
  at System.AppDomain.ExecuteAssemblyInternal (System.Reflection.Assembly,string[]) <0x0002b>
  at System.AppDomain.ExecuteAssembly (string,System.Security.Policy.Evidence,string[]) <0x00025>
  at (wrapper remoting-invoke-with-check) System.AppDomain.ExecuteAssembly (string,System.Security.Policy.Evidence,string[]) <0xffffffff>
  at System.AppDomain.ExecuteAssembly (string) <0x00019>
  at (wrapper remoting-invoke-with-check) System.AppDomain.ExecuteAssembly (string) <0xffffffff>
  at Booter.Booter.BootClient (string) <0x00069>
  at Booter.Booter.Main () <0x00187>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

"<unnamed thread>" tid=0x0x35c7b70 this=0x0x3cd2bb8 thread handle 0x5ba state : interrupted state owns ()
  at (wrapper managed-to-native) System.IO.InotifyWatcher.ReadFromFD (intptr,byte[],intptr) <0x00004>
  at (wrapper managed-to-native) System.IO.InotifyWatcher.ReadFromFD (intptr,byte[],intptr) <0xffffffff>
  at System.IO.InotifyWatcher.Monitor () <0x00055>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"HyenaSqliteConnection (/home/rchovan/.config/banshee-1/banshee.db)" tid=0x0x47cbb70 this=0x0x2f708 thread handle 0x41a state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005b>
  at Hyena.Data.Sqlite.HyenaSqliteConnection.ProcessQueue () <0x001e9>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x45edb70 this=0x0x3d52a28 thread handle 0x567 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],System.TimeSpan,bool) <0x000f8>
  at System.Threading.RegisteredWaitHandle.Wait (object) <0x00094>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x4005b70 this=0x0x3d52bb8 thread handle 0x523 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],System.TimeSpan,bool) <0x000f8>
  at System.Threading.RegisteredWaitHandle.Wait (object) <0x00094>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"LibraryWatcher for Videa" tid=0x0x32dfb70 this=0x0x2d4c000 thread handle 0x5b8 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005b>
  at Banshee.LibraryWatcher.SourceWatcher.Watch () <0x002b6>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x436db70 this=0x0x3d52af0 thread handle 0x539 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],System.TimeSpan,bool) <0x000f8>
  at System.Threading.RegisteredWaitHandle.Wait (object) <0x00094>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x48ccb70 this=0x0x3cd2960 thread handle 0x5d8 state : interrupted state owns ()
  at (wrapper managed-to-native) Mono.Unix.Native.Syscall.read (int,intptr,ulong) <0x00004>
  at (wrapper managed-to-native) Mono.Unix.Native.Syscall.read (int,intptr,ulong) <0xffffffff>
  at Mono.Unix.Native.Syscall.read (int,void*,ulong) <0x00021>
  at Mono.Unix.UnixStream.Read (byte[],int,int) <0x00089>
  at NDesk.DBus.Connection.ReadMessage () <0x00041>
  at NDesk.DBus.Connection.Iterate () <0x0001c>
  at Mono.Zeroconf.Providers.AvahiDBus.DBusManager.IterateThread (object) <0x0005e>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"DAAP Proxy" tid=0x0x4d9cb70 this=0x0x3cd27d0 thread handle 0x5eb state : interrupted state owns ()
  at (wrapper managed-to-native) System.Net.Sockets.Socket.Accept_internal (intptr,int&,bool) <0x00004>
  at (wrapper managed-to-native) System.Net.Sockets.Socket.Accept_internal (intptr,int&,bool) <0xffffffff>
  at System.Net.Sockets.Socket.Accept () <0x00077>
  at Banshee.Web.BaseHttpServer.ServerLoop () <0x00138>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"LibraryWatcher for Hudba" tid=0x0x3191b70 this=0x0x2d4c0c8 thread handle 0x5b5 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005b>
  at Banshee.LibraryWatcher.SourceWatcher.Watch () <0x002b6>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>
Full thread dump:

"LibraryWatcher for Hudba" tid=0x0x3191b70 this=0x0x2d4c0c8 thread handle 0x5b5 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005b>
  at Banshee.LibraryWatcher.SourceWatcher.Watch () <0x002b6>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"HyenaSqliteConnection (/home/rchovan/.config/banshee-1/banshee.db)" tid=0x0x47cbb70 this=0x0x2f708 thread handle 0x41a state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005b>
  at Hyena.Data.Sqlite.HyenaSqliteConnection.ProcessQueue () <0x001e9>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"Main Thread" tid=0x0xb726f0 this=0x0x2fed8 thread handle 0x404 state : not waiting owns ()
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x0000a>
  at Banshee.Gui.GtkBaseClient.Run () <0x00054>
  at Banshee.Gui.GtkBaseClient.Startup () <0x00044>
  at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.CleanRoomStartup/StartupInvocationHandler) <0x00089>
  at Banshee.Gui.GtkBaseClient.Startup<Nereid.Client> () <0x0004d>
  at Banshee.Gui.GtkBaseClient.Startup<Nereid.Client> (string[]) <0x000ca>
  at Nereid.Client.Main (string[]) <0x00015>
  at (wrapper runtime-invoke) Nereid.Client.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.AppDomain.ExecuteAssembly (System.Reflection.Assembly,string[]) <0x00004>
  at (wrapper managed-to-native) System.AppDomain.ExecuteAssembly (System.Reflection.Assembly,string[]) <0xffffffff>
  at System.AppDomain.ExecuteAssemblyInternal (System.Reflection.Assembly,string[]) <0x0002b>
  at System.AppDomain.ExecuteAssembly (string,System.Security.Policy.Evidence,string[]) <0x00025>
  at (wrapper remoting-invoke-with-check) System.AppDomain.ExecuteAssembly (string,System.Security.Policy.Evidence,string[]) <0xffffffff>
  at System.AppDomain.ExecuteAssembly (string) <0x00019>
  at (wrapper remoting-invoke-with-check) System.AppDomain.ExecuteAssembly (string) <0xffffffff>
  at Booter.Booter.BootClient (string) <0x00069>
  at Booter.Booter.Main () <0x00187>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x45edb70 this=0x0x3d52a28 thread handle 0x567 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],System.TimeSpan,bool) <0x000f8>
  at System.Threading.RegisteredWaitHandle.Wait (object) <0x00094>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"<unnamed thread>" tid=0x0x35c7b70 this=0x0x3cd2bb8 thread handle 0x5ba state : interrupted state owns ()
  at (wrapper managed-to-native) System.IO.InotifyWatcher.ReadFromFD (intptr,byte[],intptr) <0x00004>
  at (wrapper managed-to-native) System.IO.InotifyWatcher.ReadFromFD (intptr,byte[],intptr) <0xffffffff>
  at System.IO.InotifyWatcher.Monitor () <0x00055>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"LibraryWatcher for Videa" tid=0x0x32dfb70 this=0x0x2d4c000 thread handle 0x5b8 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (intptr,int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitOne () <0x0005b>
  at Banshee.LibraryWatcher.SourceWatcher.Watch () <0x002b6>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x436db70 this=0x0x3d52af0 thread handle 0x539 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],System.TimeSpan,bool) <0x000f8>
  at System.Threading.RegisteredWaitHandle.Wait (object) <0x00094>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x48ccb70 this=0x0x3cd2960 thread handle 0x5d8 state : interrupted state owns ()
  at (wrapper managed-to-native) Mono.Unix.Native.Syscall.read (int,intptr,ulong) <0x00004>
  at (wrapper managed-to-native) Mono.Unix.Native.Syscall.read (int,intptr,ulong) <0xffffffff>
  at Mono.Unix.Native.Syscall.read (int,void*,ulong) <0x00021>
  at Mono.Unix.UnixStream.Read (byte[],int,int) <0x00089>
  at NDesk.DBus.Connection.ReadMessage () <0x00041>
  at NDesk.DBus.Connection.Iterate () <0x0001c>
  at Mono.Zeroconf.Providers.AvahiDBus.DBusManager.IterateThread (object) <0x0005e>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

"<threadpool thread>" tid=0x0x4005b70 this=0x0x3d52bb8 thread handle 0x523 state : interrupted state owns ()
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0x00004>
  at (wrapper managed-to-native) System.Threading.WaitHandle.WaitAny_internal (System.Threading.WaitHandle[],int,bool) <0xffffffff>
  at System.Threading.WaitHandle.WaitAny (System.Threading.WaitHandle[],System.TimeSpan,bool) <0x000f8>
  at System.Threading.RegisteredWaitHandle.Wait (object) <0x00094>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>
Comment 1 Gabriel Burt 2010-08-31 22:41:44 UTC
Looks like track item IDs are uint
Comment 2 Gabriel Burt 2010-09-01 03:44:48 UTC
Fixed in master:

commit 433488d3ff738cf516f1aba4eae5f6474f84d8d6
Author: Gabriel Burt <gabriel.burt@gmail.com>
Date:   Tue Aug 31 22:43:17 2010

    [Mtp] Fix overflow bug with playlists (bgo#628388)