docky crashes after a "recent document" is deleted

Bug #464358 reported by Bernhard
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Docky
Fix Released
Medium
Chris S.

Bug Description

Docky crash and I would think it has to do with the fact that one of the documents from the "recent documents" docklet was recently deleted.

Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle
the exception.
GLib.GException: Error stating file '/home/bkoenig/Desktop/Decaf/Decaf.jar': No
such file or directory
  at GLib.FileAdapter.QueryInfo (System.String attributes, FileQueryInfoFlags fl
ags, GLib.Cancellable cancellable) [0x00000]
  at Docky.Services.GLibFileExtension.Icon (File file) [0x00000] in /home/bkoeni
g/tarballs/docky/Docky.Services/Docky.Services/Extensions/GLibFileExtension.cs:3
3
  at RecentDocuments.RecentDocumentsItem.GetMenuItems () [0x0002f] in /home/bkoe
nig/tarballs/docky/StandardPlugins/RecentDocuments/src/RecentDocumentsItem.cs:11
4
  at Docky.Items.AbstractDockItemProvider.GetMenuItems (Docky.Items.AbstractDock
Item item) [0x00000] in /home/bkoenig/tarballs/docky/Docky.Items/Docky.Items/Abs
tractDockItemProvider.cs:124
  at Docky.Interface.DockWindow.OnButtonPressEvent (Gdk.EventButton evnt) [0x000
3a] in /home/bkoenig/tarballs/docky/Docky/Docky/Interface/DockWindow.cs:703
  at Gtk.Widget.buttonpressevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean
is_terminal)
   at Gtk.Widget.buttonpressevent_cb(IntPtr widget, IntPtr evnt)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Docky.Docky.Main(System.String[] args) in /home/bkoenig/tarballs/docky/Doc
ky/Docky/Docky.cs:line 79

Bernhard (b.a.koenig)
summary: - docky crashes when after a "recent document" is deleted
+ docky crashes after a "recent document" is deleted
Robert Dyer (psybers)
Changed in docky:
assignee: nobody → Chris S. (cszikszoy)
importance: Undecided → Medium
Chris S. (cszikszoy)
Changed in docky:
status: New → Confirmed
Chris S. (cszikszoy)
Changed in docky:
status: Confirmed → Fix Committed
Robert Dyer (psybers)
Changed in docky:
status: Fix Committed → Fix Released
Revision history for this message
Dag Odenhall (dag.odenhall) wrote :
Download full text (6.4 KiB)

In Ubuntu Lucid, with the PPA version; I get this stack trace as Docky crashes when I clear recent documents.

$ docky
[Info 11:46:36.393] Docky version: 2.1.0 bzr docky r1332 ppa
[Info 11:46:36.494] Kernel version: 2.6.32.22
[Info 11:46:36.497] CLR version: 2.0.50727.1433
Marshaling changed 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.InvalidOperationException: Operation is not valid due to the current state of the object
  at System.Linq.Enumerable.First[FileDockItem] (IEnumerable`1 source) [0x00000]
  at RecentDocuments.RecentDocumentsItem.UpdateInfo () [0x00000]
  at RecentDocuments.RecentDocumentsItem.RefreshRecentDocs () [0x00000]
  at RecentDocuments.RecentDocumentsItem.<RecentDocumentsItem>m__2 (System.Object , System.EventArgs ) [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.RecentManager.gtk_recent_manager_purge_items(IntPtr , IntPtr ByRef )
   at Gtk.RecentManager.PurgeItems()
   at RecentDocuments.RecentDocumentsItemProvider+<ClearRecent>c__AnonStorey0.<>m__0(System.Object o, Gtk.ResponseArgs args)
   at System.Reflection.MonoMethod.InternalInvoke(System.Object , System.Object[] , System.Exception ByRef )
   at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters)
   at System.Delegate.DynamicInvokeImpl(System.Object[] args)
   at System.MulticastDelegate.DynamicInvokeImpl(Sy...

Read more...

Changed in docky:
status: Fix Released → Confirmed
Revision history for this message
Dag Odenhall (dag.odenhall) wrote :

I should mention that I have the AlwaysShowRecent gconf setting enabled.

Revision history for this message
Dag Odenhall (dag.odenhall) wrote :

I realise now I should maybe have made a new bug, mine is not a duplicate of this. My crash happens as I *clear* recent documents, not when deleting a file present in the recent documents list (haven't tried that). Should I make a new bug?

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

That is a different bug, file a different bug report.

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

Do not reopen this bug, this is a different bug that is fixed.

Changed in docky:
status: Confirmed → Fix Released
Revision history for this message
Robert Dyer (psybers) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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