GNOME Bugzilla – Bug 635501
Crash when performing Library Scan (gio-sharp git, related to Rico's FileAdapter leak fixes)
Last modified: 2011-09-03 22:21:23 UTC
The latest version of Banshee (pulled from Git just now) crash when I am trying to rescan the library in order to detect the latest file I added on the drive, see below the terminal output [1 Debug 10:09:55.667] Starting (Nereid:11946): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (Nereid:11946): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (Nereid:11946): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (Nereid:11946): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed Stacktrace: at (wrapper managed-to-native) GLib.ObjectManager.gtksharp_get_type_id (intptr) <0x00003> at (wrapper managed-to-native) GLib.ObjectManager.gtksharp_get_type_id (intptr) <0x00003> at GLib.ObjectManager.GetTypeOrParent (intptr) <IL 0x00001, 0x00013> at GLib.ObjectManager.CreateObject (intptr) <IL 0x00013, 0x0003d> at GLib.Object.GetObject (intptr,bool) <IL 0x0008f, 0x00149> at GLib.FileAdapter.Dispose () [0x00012] in /home/sweetth/libpod/gio-sharp-git/src/gio-sharp-build/gio/generated/FileAdapter.custom:58 at GLib.FileAdapter.Finalize () [0x0000b] in /home/sweetth/libpod/gio-sharp-git/src/gio-sharp-build/gio/generated/FileAdapter.custom:67 at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <IL 0x0001b, 0x0003d> Native stacktrace: /usr/bin/mono() [0x80da1e0] /usr/bin/mono() [0x81174bb] [0x4001e40c] [0x430fd224] [0x430fd0be] [0x430fcfa2] [0x52e5789b] [0x52e57845] [0x42955b3e] /usr/bin/mono() [0x811d039] /usr/bin/mono() [0x8214870] /usr/bin/mono() [0x811d24c] /usr/bin/mono() [0x81e2493] /usr/bin/mono() [0x81edcbf] /usr/bin/mono() [0x8219095] /lib/libpthread.so.0(+0x5e60) [0x40074e60] /lib/libc.so.6(clone+0x5e) [0x40158fbe] Debug info from gdb: ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= /bin/sh: line 1: 11946 Aborted /usr/bin/mono --debug Nereid.exe --debug --uninstalled make: *** [run] Error 134
It appears that you are using gio-sharp from git. can you try to revert: https://github.com/mono/gio-sharp/commit/d264425e9a89ffcde80c9561eb6290ceafa44083 https://github.com/mono/gio-sharp/commit/73442d0ea8d4ef7026c40303dad9048d9f894807 https://github.com/mono/gio-sharp/commit/86bde46eff37d855766dbc4360dd11e28cebbf3a
What do you mean by revert? to an older version?
Not being a big git wizard I believe the syntax is: git revert 86bde46eff37d855766dbc4360dd11e28cebbf3a git revert 73442d0ea8d4ef7026c40303dad9048d9f894807 git revert d264425e9a89ffcde80c9561eb6290ceafa44083 Alternatively you could use the gio-sharp 0.1 release as packaged by your distribution. We are just looking to test with a version without the FileAdapter leak fixes since it looks like they may be involved.
Hello again, I downgrade the gio-sharp version to this one https://github.com/mono/gio-sharp/commit/86bde46eff37d855766dbc4360dd11e28cebbf3a But banshee still crash while rescanning the library (see below terminal output: [sweetth@myhost /]$ cd ~/banshee/ [sweetth@myhost banshee]$ make run --debug GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i686-pc-linux-gnu Reading makefiles... Updating goal targets.... File `run' does not exist. File `check-bootstrap-env' does not exist. Must remake target `check-bootstrap-env'. Successfully remade target file `check-bootstrap-env'. Must remake target `run'. [Info 11:44:55.664] Running Banshee 1.9.0: [git-checkout (linux-gnu, i686) @ 2010-11-21 22:41:03 GMT] [1 Debug 11:44:55.939] Initializing GTK [1 Debug 11:44:57.395] Post-Initializing GTK [1 Debug 11:44:57.442] Configuration client extension loaded (Banshee.GnomeBackend.GConfConfigurationClient) [1 Debug 11:44:57.447] Using default gconf-base-key [1 Debug 11:44:57.808] Bus.Session.RequestName ('org.bansheeproject.Banshee') replied with PrimaryOwner [1 Debug 11:44:57.888] Core service started (DBusServiceManager, 0.000813) [1 Debug 11:44:57.890] Registering remote object /org/bansheeproject/Banshee/DBusCommandService (Banshee.ServiceStack.DBusCommandService) on org.bansheeproject.Banshee [1 Debug 11:44:57.893] Core service started (DBusCommandService, 0.004824) [1 Debug 11:44:58.369] Opened SQLite (version 3.7.3) connection to /home/sweetth/.config/banshee-1/banshee.db [1 Debug 11:44:58.369] Core service started (DbConnection, 0.475728) [1 Debug 11:44:58.371] Database version 43 is up to date [1 Debug 11:44:58.425] Core service started (PreferenceService, 0.013799) [1 Warn 11:44:58.427] Cannot connect to NetworkManager or Wicd - An available, working network connection will be assumed [1 Debug 11:44:58.427] Core service started (Network, 0.002414) [1 Debug 11:44:58.428] Registering remote object /org/bansheeproject/Banshee/SourceManager (Banshee.Sources.SourceManager) on org.bansheeproject.Banshee [1 Debug 11:44:58.428] Core service started (SourceManager, 0.000377) [1 Debug 11:44:58.433] Core service started (MediaProfileManager, 0.000172) [1 Debug 11:44:58.439] Registering remote object /org/bansheeproject/Banshee/PlayerEngine (Banshee.MediaEngine.PlayerEngineService) on org.bansheeproject.Banshee [1 Debug 11:44:58.441] Core service started (PlayerEngine, 0.007805) [1 Debug 11:44:58.679] Registering remote object /org/bansheeproject/Banshee/PlaybackController (Banshee.PlaybackController.PlaybackControllerService) on org.bansheeproject.Banshee [1 Debug 11:44:58.680] Core service started (PlaybackController, 0.001937) [1 Debug 11:44:58.684] Starting - Startup Job [1 Debug 11:44:58.684] Core service started (JobScheduler, 0.004419) [1 Debug 11:44:58.702] IO provider extension loaded (Banshee.IO.Gio.Provider) [1 Debug 11:44:59.584] Loaded HardwareManager backend: Banshee.Hardware.Gio [1 Debug 11:44:59.599] Core service started (HardwareManager, 0.914418) [1 Debug 11:44:59.600] Bus.Session.RequestName ('org.bansheeproject.CollectionIndexer') replied with PrimaryOwner [1 Debug 11:44:59.600] Registering remote object /org/bansheeproject/Banshee/CollectionIndexerService (Banshee.Collection.Indexer.CollectionIndexerService) on org.bansheeproject.CollectionIndexer [1 Debug 11:44:59.602] Core service started (CollectionIndexerService, 0.002577) [1 Debug 11:44:59.602] Core service started (SaveTrackMetadataService, 0.000858) /home/sweetth/.themes/Dust/gtk-2.0/gtkrc:84: Murrine configuration option "gradients" is no longer supported and will be ignored. [1 Debug 11:44:59.628] Adding icon theme search path: /home/sweetth/banshee/bin/share/banshee-1/icons [1 Debug 11:44:59.628] Core service started (GtkElementsService, 0.025755) [1 Debug 11:44:59.629] Core service started (InterfaceActionService, 0.000968) [1 Debug 11:44:59.722] Extension actions loaded: MetadataFixActions [1 Debug 11:44:59.722] Registering remote object /org/bansheeproject/Banshee/GlobalUIActions (Banshee.Gui.GlobalActions) on org.bansheeproject.Banshee [1 Debug 11:44:59.735] Album artwork path set to /home/sweetth/.cache/media-art [1 Debug 11:44:59.773] Core service started (ArtworkManager, 0.050952) [1 Debug 11:44:59.773] Core service started (BookmarksService, 8.6E-05) [1 Debug 11:45:00.109] Adding context page lastfm-recommendations [1 Debug 11:45:00.133] Adding context page wikipedia [1 Debug 11:45:02.124] Constructed Nereid interface: 2.310489 [1 Debug 11:45:02.441] Creating new surface cache for 90px images, capped at 0.62 MiB (20 items) [1 Debug 11:45:02.524] Registering remote object /org/bansheeproject/Banshee/ClientWindow (Nereid.PlayerInterface) on org.bansheeproject.Banshee [1 Debug 11:45:02.524] Core service started (NereidPlayerInterface, 2.723269) [1 Debug 11:45:02.713] Extension service started (GStreamerCoreService, 0.188067) [1 Debug 11:45:02.763] Extension service started (BpmService, 0.0496) [1 Warn 11:45:02.779] Caught an exception - System.ApplicationException: No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys') at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x000be] in /home/sweetth/banshee/src/Extensions/Banshee.MultimediaKeys/Banshee.MultimediaKeys/MultimediaKeysService.cs:123 at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00034] in /home/sweetth/banshee/src/Core/Banshee.Services/Banshee.ServiceStack/ServiceManager.cs:210 [1 Warn 11:45:02.779] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached. [1 Debug 11:45:02.780] Extension service started (DapService, 0.000343) [1 Debug 11:45:02.800] Extension service started (PodcastService, 0.019969) [1 Debug 11:45:02.880] Audioscrobbler state: connected [1 Debug 11:45:02.882] Extension service started (AudioscrobblerService, 0.081758) [1 Debug 11:45:02.894] Extension service started (LastfmStreamingService, 0.012329) [1 Debug 11:45:02.905] Extension service started (DaapService, 0.011441) [1 Info 11:45:02.907] Updating web proxy from GConf [1 Debug 11:45:02.909] Direct connection, no proxy in use [1 Debug 11:45:02.925] Extension service started (GnomeService, 0.019885) [1 Debug 11:45:02.932] Extension service started (AmazonMp3DownloaderService, 0.006971) [1 Debug 11:45:02.934] Extension service started (CoverArtService, 0.001316) [1 Debug 11:45:02.966] Extension service started (AudioCdService, 0.032167) [1 Warn 11:45:02.967] Caught an exception - System.ApplicationException: No support GNOME Settings Daemon could be reached. (in `Banshee.MultimediaKeys') at Banshee.MultimediaKeys.MultimediaKeysService.Banshee.ServiceStack.IExtensionService.Initialize () [0x000be] in /home/sweetth/banshee/src/Extensions/Banshee.MultimediaKeys/Banshee.MultimediaKeys/MultimediaKeysService.cs:123 at Banshee.ServiceStack.ServiceManager.StartExtension (Mono.Addins.TypeExtensionNode node) [0x00034] in /home/sweetth/banshee/src/Core/Banshee.Services/Banshee.ServiceStack/ServiceManager.cs:210 [1 Warn 11:45:02.967] Extension `Banshee.MultimediaKeys.MultimediaKeysService' not started: No support GNOME Settings Daemon could be reached. [1 Info 11:45:02.967] All services are started 5.158597 [1 Debug 11:45:03.755] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.760] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.766] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.766] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.767] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.767] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.767] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.767] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.767] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.768] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.768] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.768] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.771] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.771] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.771] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.771] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.772] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.772] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.772] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.772] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.772] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.773] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.773] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.773] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.773] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.773] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.774] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.774] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.774] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.774] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.774] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.774] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.775] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.775] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.775] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.775] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.775] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.776] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.776] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:03.776] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:04.257] Registering remote object /org/bansheeproject/Banshee/SourceManager/PlayQueue (Banshee.PlayQueue.PlayQueueSource) on org.bansheeproject.Banshee [1 Debug 11:45:04.257] Extension source loaded: Play Queue [1 Debug 11:45:04.258] Extension source loaded: Now Playing [1 Debug 11:45:04.287] Extension source loaded: Last.fm [1 Debug 11:45:04.307] Extension source loaded: Radio [1 Debug 11:45:04.358] Extension source loaded: File System Queue [1 Debug 11:45:04.367] Extension source loaded: Amazon MP3 Store [1 Debug 11:45:04.370] Extension source loaded: Miro Guide [1 Debug 11:45:04.380] Extension source loaded: Internet Archive [1 Debug 11:45:04.425] Extension source loaded: Audiobooks [1 Debug 11:45:04.428] Starting GTK main loop [1 Debug 11:45:04.540] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:04.553] Creating Pango.Layout, configuring Cairo.Context [1 Debug 11:45:04.612] Creating Pango.Layout, configuring Cairo.Context [1 Info 11:45:05.027] nereid Client Started [1 Debug 11:45:05.028] Delayed Initializating Banshee.MediaEngine.PlayerEngineService [1 Debug 11:45:05.064] (libbanshee:player) Stream volume supported: YES [1 Debug 11:45:05.093] (libbanshee:player) Audiosink has volume: NO [1 Debug 11:45:05.173] (libbanshee:player) Using system (gst-plugins-good) equalizer element [1 Debug 11:45:05.235] Player state change: NotReady -> Ready [1 Debug 11:45:05.237] Loaded equalizer presets: 0.000143 [1 Debug 11:45:05.239] Selected equalizer: Pop [1 Debug 11:45:05.242] Player state change: Ready -> Idle [1 Debug 11:45:05.244] (libbanshee:player) Disabled ReplayGain [1 Debug 11:45:05.246] Delayed Initializating Banshee.Dap.DapService [1 Debug 11:45:05.257] Dap support extension loaded: Banshee.Dap.MassStorage [1 Debug 11:45:05.257] Dap support extension loaded: Banshee.Dap.Ipod [1 Debug 11:45:05.263] Dap support extension loaded: Banshee.Dap.AppleDevice [1 Debug 11:45:05.264] Dap support extension loaded: Banshee.Dap.Mtp [1 Debug 11:45:05.269] Delayed Initializating Banshee.Podcasting.PodcastService [2 Info 11:45:05.348] AppleDeviceSource is ignoring unmounted volume fl [2 Warn 11:45:05.348] Caught an exception - System.InvalidOperationException: Operation is not valid due to the current state of the object (in `Banshee.Dap.AppleDevice') at Banshee.Dap.AppleDevice.AppleDeviceSource.DeviceInitialize (IDevice device) [0x0022e] in /home/sweetth/banshee/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs:118 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/sweetth/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 [2 Warn 11:45:05.376] Caught an exception - System.ArgumentNullException: Argument cannot be null. Parameter name: s (in `mscorlib') at System.Int32.Parse (System.String s) [0x00014] in /home/ise/svn-packages/mono/trunk/src/mono-2.8.1/mcs/class/corlib/System/Int32.cs:625 at Banshee.Hardware.Gio.UsbDevice.GetBusNumber (IUsbDevice device) [0x00007] in /home/sweetth/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:76 at Banshee.Hardware.Gio.UsbDevice.get_BusNumber () [0x00000] in /home/sweetth/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:143 at Banshee.Hardware.Gio.Device.ResolveUsbPortInfo () [0x0000d] in /home/sweetth/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/Device.cs:91 at Banshee.Dap.Mtp.MtpSource.DeviceInitialize (IDevice device) [0x00007] in /home/sweetth/banshee/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpSource.cs:68 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/sweetth/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 [1 Debug 11:45:05.423] Delayed Initializating Banshee.Daap.DaapService [3 Debug 11:45:05.424] Refreshing any podcasts that haven't been updated in over an hour [2 Warn 11:45:05.443] Caught an exception - System.ArgumentNullException: Argument cannot be null. (in `mscorlib') at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00016] in /home/ise/svn-packages/mono/trunk/src/mono-2.8.1/mcs/class/corlib/System/Int32.cs:636 at System.Int32.Parse (System.String s, NumberStyles style) [0x00000] in /home/ise/svn-packages/mono/trunk/src/mono-2.8.1/mcs/class/corlib/System/Int32.cs:206 at Banshee.Hardware.Gio.UsbDevice.GetVendorId (IUsbDevice device) [0x00007] in /home/sweetth/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:99 at Banshee.Hardware.Gio.UsbDevice.get_VendorId () [0x00000] in /home/sweetth/banshee/src/Backends/Banshee.Gio/Banshee.Hardware.Gio/UsbDevice.cs:184 at Banshee.Dap.MassStorage.DeviceMapper.Map (Banshee.Dap.MassStorage.MassStorageSource source) [0x00028] in /home/sweetth/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/DeviceMapper.cs:44 at Banshee.Dap.MassStorage.MassStorageSource.DeviceInitialize (IDevice device) [0x0003d] in /home/sweetth/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:69 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/sweetth/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 [2 Info 11:45:05.466] AppleDeviceSource is ignoring unmounted volume 37 GB Filesystem [2 Warn 11:45:05.466] Caught an exception - System.InvalidOperationException: Operation is not valid due to the current state of the object (in `Banshee.Dap.AppleDevice') at Banshee.Dap.AppleDevice.AppleDeviceSource.DeviceInitialize (IDevice device) [0x0022e] in /home/sweetth/banshee/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs:118 at Banshee.Dap.DapService.FindDeviceSource (IDevice device) [0x00025] in /home/sweetth/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs:162 System.ApplicationException: Could not find org.freedesktop.Avahi at Mono.Zeroconf.Providers.AvahiDBus.DBusManager.Initialize () [0x000aa] in /build/src/mono-zeroconf-0.9.0/src/Mono.Zeroconf.Providers.AvahiDBus/Mono.Zeroconf.Providers.AvahiDBus/DBusManager.cs:101 at Mono.Zeroconf.Providers.AvahiDBus.ZeroconfProvider.Initialize () [0x00000] in /build/src/mono-zeroconf-0.9.0/src/Mono.Zeroconf.Providers.AvahiDBus/Mono.Zeroconf.Providers.AvahiDBus/ZeroconfProvider.cs:40 at Mono.Zeroconf.Providers.ProviderFactory.GetProviders () [0x001c3] in /build/src/mono-zeroconf-0.9.0/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs:102 [4 Warn 11:45:05.674] Failed to start DAAP client - System.Exception: No Zeroconf providers could be found or initialized. Necessary daemon may not be running. (in `Mono.Zeroconf') at Mono.Zeroconf.Providers.ProviderFactory.GetProviders () [0x0024c] in /build/src/mono-zeroconf-0.9.0/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs:120 at Mono.Zeroconf.Providers.ProviderFactory.get_DefaultProvider () [0x0000a] in /build/src/mono-zeroconf-0.9.0/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs:44 at Mono.Zeroconf.Providers.ProviderFactory.get_SelectedProvider () [0x00000] in /build/src/mono-zeroconf-0.9.0/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs:52 at Mono.Zeroconf.ServiceBrowser..ctor () [0x00006] in /build/src/mono-zeroconf-0.9.0/src/Mono.Zeroconf/Mono.Zeroconf/ServiceBrowser.cs:41 at Daap.ServiceLocator.Start () [0x00011] in /home/sweetth/banshee/src/Extensions/Banshee.Daap/Daap/ServiceLocator.cs:112 at Banshee.Daap.DaapService.ThreadedInitialize () [0x00066] in /home/sweetth/banshee/src/Extensions/Banshee.Daap/Banshee.Daap/DaapService.cs:175 [1 Debug 11:45:06.423] Finished - Startup Job [1 Debug 11:45:07.891] Starting [5 Debug 11:45:11.282] Core service started (LibraryImportManager, 0.00132) (Nereid:2279): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed Stacktrace: at (wrapper managed-to-native) GLib.ObjectManager.gtksharp_get_type_id (intptr) <0x00003> at (wrapper managed-to-native) GLib.ObjectManager.gtksharp_get_type_id (intptr) <0x00003> at GLib.ObjectManager.GetTypeOrParent (intptr) <IL 0x00001, 0x00013> at GLib.ObjectManager.CreateObject (intptr) <IL 0x00013, 0x0003d> at GLib.Object.GetObject (intptr,bool) <IL 0x0008f, 0x00149> at GLib.FileAdapter.Dispose () [0x00012] in /home/sweetth/libpod/gio-sharp-git/src/gio-sharp-build/gio/generated/FileAdapter.custom:58 at GLib.FileAdapter.Finalize () [0x0000b] in /home/sweetth/libpod/gio-sharp-git/src/gio-sharp-build/gio/generated/FileAdapter.custom:67 at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <IL 0x0001b, 0x0003d> Native stacktrace: /usr/bin/mono() [0x80da690] /usr/bin/mono() [0x8117cab] [0x4001e40c] [0x42b75d54] [0x42b75bee] [0x42b75ad2] [0x52e76dcb] [0x52e76d75] [0x427d9686] /usr/bin/mono() [0x811d829] /usr/bin/mono() [0x8215440] /usr/bin/mono() [0x811da3c] /usr/bin/mono() [0x81e2db3] /usr/bin/mono() [0x81ee6df] /usr/bin/mono() [0x8219c75] /lib/libpthread.so.0(+0x5e60) [0x40074e60] /lib/libc.so.6(clone+0x5e) [0x40158f9e] Debug info from gdb: ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= /bin/sh: line 1: 2279 Aborted /usr/bin/mono --debug Nereid.exe --debug --uninstalled make: *** [run] Error 134
You downgraded to the last commit in the FileAdapter leak fix, you need to go prior to this being committed, e.g. https://github.com/mono/gio-sharp/commit/99cdb9c4bad171b6f987a3969112dbcd986bd0bd
Yes that did work!! Thanks,
The following 3 commits appear to be the problem: https://github.com/mono/gio-sharp/commit/d264425e9a89ffcde80c9561eb6290ceafa44083 https://github.com/mono/gio-sharp/commit/73442d0ea8d4ef7026c40303dad9048d9f894807 https://github.com/mono/gio-sharp/commit/86bde46eff37d855766dbc4360dd11e28cebbf3a Since gio-sharp has no bugtracker it is adviced that we keep this bug here.
Confirming, downgrading gio-sharp to 0.2 fixes the issue.
The 2cd commit is just remove whitespace and the third is adding a regular test on dispose to avoid duplication of dispose. So I guess, isssue is on the first commit: https://github.com/mono/gio-sharp/commit/d264425e9a89ffcde80c9561eb6290ceafa44083 I ma pretty sure that it is because must call GLib.Object.GetObject (Handle, true); to replace: GLib.Object.GetObject (Handle, false);
I performed that change and got this on startup. [1 Debug 12:51:45.467] Album artwork path set to /home/david/.cache/media-art ** GLib-GObject:ERROR:/build/buildd/glib2.0-2.27.93/gobject/gobject.c:2484:toggle_refs_notify: assertion failed: (tstack.n_toggle_refs == 1) Stacktrace: at (wrapper managed-to-native) GLib.ToggleRef.g_object_unref (intptr) <IL 0x0000f, 0x0005b> at (wrapper managed-to-native) GLib.ToggleRef.g_object_unref (intptr) <IL 0x0000f, 0x0005b> at GLib.ToggleRef..ctor (GLib.Object) <IL 0x00046, 0x00087> at GLib.Object.set_Raw (intptr) <IL 0x00072, 0x000f7> at GLib.Object..ctor (intptr) <IL 0x00008, 0x00018> at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___intptr (object,intptr,intptr,intptr) <IL 0x0001f, 0x0005f> at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (object,object[],System.Exception&) <IL 0x0001c, 0x00068> at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (object,object[],System.Exception&) <IL 0x0001c, 0x00068> at System.Reflection.MonoCMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <IL 0x0011f, 0x001c3> at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <IL 0x00007, 0x00040> at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) <IL 0x001be, 0x003f0> at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <IL 0x0000c, 0x00047> at GLib.ObjectManager.CreateObject (intptr) <IL 0x00036, 0x000c3> at GLib.Object.GetObject (intptr,bool) <IL 0x0008f, 0x00197> at GLib.FileAdapter.Dispose () [0x00012] in /home/david/Projekter/gio-sharp/gio/generated/FileAdapter.custom:58 at GLib.FileAdapter.Finalize () [0x0000b] in /home/david/Projekter/gio-sharp/gio/generated/FileAdapter.custom:67 at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <IL 0x0001b, 0x00053> Native stacktrace: banshee-1() [0x489031] /lib/libpthread.so.0(+0xfc80) [0x7f8b84e6bc80] /lib/libc.so.6(gsignal+0x35) [0x7f8b84889b45] /lib/libc.so.6(abort+0x186) [0x7f8b8488d496] /lib/libglib-2.0.so.0(g_assertion_message+0x12d) [0x7f8b854ee7cd] /lib/libglib-2.0.so.0(+0x68d60) [0x7f8b854eed60] /usr/lib/libgobject-2.0.so.0(+0xfb3f) [0x7f8b8031bb3f] [0x4126604b] Debug info from gdb: [1 Debug 12:51:45.813] Core service started (ArtworkManager, 0,350292) [1 Debug 12:51:45.815] Core service started (BookmarksService, 0,000902) Could not attach to process. If your uid matches the uid of the target process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf ptrace: Operationen er ikke tilladt. ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
ok gone further. Handle is a GFile. GFile seems inherited from GInterface not GObject. From that, I search on internet and seems not the only one with this question: http://www.mail-archive.com/geany-devel@uvena.de/msg02640.html http://library.gnome.org/devel/gobject/unstable/gtype-non-instantiable-classed.html So seems that we have not to unregistered it the last unref of instance will free interface.
Rico, being the author of the patch in question, do you have any input on this? Should we just revert the patch, or do you know how to fix it?
This should be fixed now in gio-sharp git master. Testing very welcome.
(In reply to comment #8) > Confirming, downgrading gio-sharp to 0.2 fixes the issue. Hey Alex, as you seemed to reproduce the bug in the past, can you answer to comment #13 to confirm that this bug was fixed? If you don't have time to test, can you tell me how can I reproduce the bug please? Thanks
The bug should occur using gio# git prior to gabaugs fixes to ricotz leak fix simply doing import. I havent retested in a while but I cannot recall triggering this after the fix went in.
we wait test to close this bug so put change it to needinfo...
I tested this extensively a while ago, consider this fixed.