Mounter docklet crash

Bug #536915 reported by Rico Tzschichholz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Docky
Fix Released
Medium
Rico Tzschichholz

Bug Description

Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Mounter.MountProvider.IsTrash (Mount m) [0x00000]
  at Mounter.MountProvider.HandleMountAdded (System.Object o, GLib.MountAddedArgs args) [0x00000]
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000]
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000]
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Docky.Docky.Main(System.String[] args)

Changed in docky:
importance: Undecided → Low
assignee: nobody → Rico Tzschichholz (ricotz)
status: New → Fix Committed
Robert Dyer (psybers)
Changed in docky:
importance: Low → Medium
Changed in docky:
status: Fix Committed → Fix Released
Revision history for this message
Claudio Melis (mebitek) wrote :

which version should have the fix? not r1189?

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

@mebitek: r1176 should have taken care of this. Could you provide a new error output with r1189.

Revision history for this message
Claudio Melis (mebitek) wrote :

Marshaling mount-added signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Mounter.MountProvider.IsTrash (Mount m) [0x00000] in /home/mebitek/docky/StandardPlugins/Mounter/src/MountProvider.cs:109
  at Mounter.MountProvider.HandleMountAdded (System.Object o, GLib.MountAddedArgs args) [0x00013] in /home/mebitek/docky/StandardPlugins/Mounter/src/MountProvider.cs:83
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000]
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000]
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Docky.Docky.Main(System.String[] args) in /home/mebitek/docky/Docky/Docky/Docky.cs:line 86
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose

Revision history for this message
Robert Dyer (psybers) wrote :

@Rico: Your fix did not cover all paths. I added in a check for null inside the IsTrash method, to be super-safe.

This should now be fixed (for real!) in rev 1190

Changed in docky:
status: Fix Released → Fix Committed
Revision history for this message
Claudio Melis (mebitek) wrote :
Download full text (3.6 KiB)

not work on bluetooth

Marshaling mount-added signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Mounter.MountProvider.IsTrash (Mount m) [0x00000] in /home/mebitek/docky/StandardPlugins/Mounter/src/MountProvider.cs:109
  at Mounter.MountProvider.HandleMountAdded (System.Object o, GLib.MountAddedArgs args) [0x00013] in /home/mebitek/docky/StandardPlugins/Mounter/src/MountProvider.cs:83
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000]
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000]
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000]
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000]
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Docky.Docky.Main(System.String[] args) in /home/mebitek/docky/Docky/Docky/Docky.cs:line 86
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Cairo.Context: called from finalization thread, programmer is missing a call to Dispose
Ca...

Read more...

Revision history for this message
Robert Dyer (psybers) wrote :

Ok then rev 1191 fixes it, again.

Revision history for this message
Claudio Melis (mebitek) wrote :

I have installed rev 1193.
when I mount my usb mobile phone. Nothing happens. No debug info received.
Also when I mount bluetooth device. No debug info. SD card works fine:

mebitek@marmidha:~/Scrivania$ docky --debug
[Info 10:12:09.940] Docky version: 2.1.0 bzr docky r1193
[Info 10:12:09.981] Kernel version: 2.6.31.20
[Info 10:12:09.983] CLR version: 2.0.50727.1433
[Warn 10:12:10.461] [GLib] g_set_prgname() called multiple times
[Debug 10:12:11.119] [SystemService] Using org.freedesktop.DeviceKit.Power for battery information
[Info 10:12:11.573] [DockServices] Dock services initialized.
[Info 10:12:11.797] [DockController] Setting theme: Classic
[Info 10:12:12.259] [PluginManager] Loaded "Docky.Widgets,1.0".
[Info 10:12:12.259] [PluginManager] Loaded "Docky.Widgets,1.0".
[Info 10:12:12.260] [PluginManager] Loaded "Weather".
[Info 10:12:12.278] [PluginManager] Loaded "Trash".
[Info 10:12:12.316] [PluginManager] Loaded "Mounter".
[Info 10:12:12.364] [PluginManager] Loaded "Recent Documents".
[Info 10:12:13.144] [AbstractWeatherSource] Weather Underground: Reloading weather data
[Debug 10:12:13.215] [AbstractWeatherSource] Weather Underground: Fetching XML file 'http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=bologna'
[Info 10:12:13.712] [Helper] Starting open_terminal_here.py
[Info 10:12:13.738] [Helper] Starting pidgin_control.py
[Info 10:12:13.743] [Helper] Starting rhythmbox_control.py
[Info 10:12:13.828] [Helper] Starting zeitgeist_docky.py
[Info 10:12:13.883] [Helper] Starting zeitgeist_journal.py
[Info 10:12:14.096] [DrawingService] Could not find 'banshee', using fallback of 'extension'.
[Info 10:12:14.109] [DrawingService] Could not find 'deluge', using fallback of 'extension'.
[Info 10:12:14.156] [DrawingService] Could not find 'emesene', using fallback of 'extension'.
[Info 10:12:14.199] [DrawingService] Could not find 'gajim', using fallback of 'extension'.
[Info 10:12:14.244] [DrawingService] Could not find 'gtg', using fallback of 'extension'.
[Info 10:12:14.284] [DrawingService] Could not find 'liferea', using fallback of 'extension'.
[Info 10:12:14.493] [DrawingService] Could not find 'tomboy', using fallback of 'extension'.
[Info 10:12:14.524] [DrawingService] Could not find 'transmission', using fallback of 'extension'.
[Debug 10:12:14.638] [AbstractWeatherSource] Weather Underground: Fetching XML file 'http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=bologna'
[Debug 10:12:15.379] [AbstractWeatherSource] Weather Underground: reload success
[Info 10:12:40.207] [MountProvider] HP_E330 mounted.
[Debug 10:12:40.445] Key MountItem__1261540864 does not exist, creating.

Revision history for this message
Robert Dyer (psybers) wrote :

But it doesnt crash! :)

Revision history for this message
Robert Dyer (psybers) wrote :

Try out rev 1194 for me. Hopefully it still does not crash, but maybe it also fixes your new problems.

Revision history for this message
Claudio Melis (mebitek) wrote :

yes!!! now not crash and mount correctly usb mobile device. But this time it show 2 istances:

[Info 15:36:55.917] [MountProvider] Samsung B5310 mounted.
[Debug 15:36:56.042] Key MountItem_160513120 does not exist, creating.
[Info 15:36:56.118] [MountProvider] Samsung B5310 mounted.
[Debug 15:36:56.260] Key MountItem_160954368 does not exist, creating.

Bluetooth device is show correctly. just one istance!!! great job man!

[Info 15:38:37.432] [MountProvider] GT-B5310 mounted.
[Debug 15:38:37.560] Key MountItem_164135168 does not exist, creating.

Revision history for this message
Robert Dyer (psybers) wrote :

Ya I get the 2 icon thing with my ipod. Thats another open bug that Chris supposedly thinks he knows what is wrong but hasnt fixed. :-)

Changed in docky:
status: Fix Committed → Fix Released
Changed in docky:
milestone: none → 2.0.2
milestone: 2.0.2 → 2.0.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.