Docky dies when emptying trash via Trash Docklet

Bug #604234 reported by mrtwister
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Docky
Fix Released
Medium
Robert Dyer

Bug Description

Docky 2.1.0 r1572

When right clicked on the trash docklet, I get the following error, but the menu opens without any problems:

[Error 12:01:00.154] [NativeInterop] Failed to query info for '': Unbekannte Datei oder unbekannter Ordner
[Info 12:01:00.154] [NativeInterop] at Docky.Services.NativeInterop+<GFileQueryInfo>c__AnonStorey1E.<>m__37 () [0x000ab] in /build/buildd/docky-2.1.0~bzr1572/Docky.Services/Docky.Services/NativeInterop.cs:210
  at Docky.Services.NativeInterop.NativeHelper[IntPtr] (System.Func`1 act, IntPtr errorReturn, System.String notFound, System.String error) [0x00000] in /build/buildd/docky-2.1.0~bzr1572/Docky.Services/Docky.Services/NativeInterop.cs:311
[Fatal 12:01:00.154] [GLib-GIO] g_file_info_get_attribute_string: assertion `G_IS_FILE_INFO (info)' failed

Then, when I click on "empty trash", docky closes and I get the following output on my terminal:

[Error 12:01:09.402] [NativeInterop] Failed to query info for '': Unbekannte Datei oder unbekannter Ordner
[Info 12:01:09.402] [NativeInterop] at Docky.Services.NativeInterop+<GFileQueryInfo>c__AnonStorey1E.<>m__37 () [0x000ab] in /build/buildd/docky-2.1.0~bzr1572/Docky.Services/Docky.Services/NativeInterop.cs:210
  at Docky.Services.NativeInterop.NativeHelper[IntPtr] (System.Func`1 act, IntPtr errorReturn, System.String notFound, System.String error) [0x00000] in /build/buildd/docky-2.1.0~bzr1572/Docky.Services/Docky.Services/NativeInterop.cs:311
[Fatal 12:01:09.402] [GLib-GIO] g_file_info_get_attribute_string: assertion `G_IS_FILE_INFO (info)' failed
Marshaling response 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. ---> GLib.GException: Unbekannte Datei oder unbekannter Ordner
  at GLib.FileAdapter.Delete (GLib.Cancellable cancellable) [0x00000]
  at Docky.Services.GLibFileExtension.Delete_Recurse (File file) [0x00049] in /build/buildd/docky-2.1.0~bzr1572/Docky.Services/Docky.Services/Extensions/GLibFileExtension.cs:201
  at Trash.TrashDockItem.<PerformEmptyTrash>m__6 () [0x00000] in /build/buildd/docky-2.1.0~bzr1572/StandardPlugins/Trash/src/TrashDockItem.cs:255
  at Docky.Services.SystemService.RunOnMainThread (System.Action action) [0x00021] in /build/buildd/docky-2.1.0~bzr1572/Docky.Services/Docky.Services/SystemService.cs:481
  at Trash.TrashDockItem.PerformEmptyTrash () [0x00017] in /build/buildd/docky-2.1.0~bzr1572/StandardPlugins/Trash/src/TrashDockItem.cs:254
  at Trash.TrashDockItem+<EmptyTrash>c__AnonStorey1.<>m__5 (System.Object o, Gtk.ResponseArgs args) [0x0000d] in /build/buildd/docky-2.1.0~bzr1572/StandardPlugins/Trash/src/TrashDockItem.cs:239
  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 /build/buildd/docky-2.1.0~bzr1572/Docky/Docky/Docky.cs:line 104
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

Robert Dyer (psybers)
Changed in docky:
assignee: nobody → Chris S. (cszikszoy)
importance: Undecided → Low
importance: Low → Medium
Revision history for this message
Chris S. (cszikszoy) wrote :

I can fix this, but I really wish I knew what exactly was causing this. That error message in German, translated I think means "unknown file or folder". Is there something abnormal about the files in your trash? If possible can you give me a ls -la of the trash folder? I can understand if you don't want to, I am asking for possibly private data, but it will greatly help me in finding out the root cause of this error.

Revision history for this message
mrtwister (mrtwister) wrote :

Yes, it means "unknown file or folder". I hadn't any problems with this issue lately, and I can not reproduce it anymore. The installed version now is r1620. Unfortunately I can't remember what files I had in my trash, but there wasn't anything abnormal about them. This seem already to be fixed, probably it was caused by something else, e.g. Nautilus.

Revision history for this message
Seung Soo, Ha (sungsuha-deactivatedaccount) wrote :

@Chris S.

It happens for me regardless of the file type.

Revision history for this message
Chris S. (cszikszoy) wrote :

@Seung

What happens? This exact same error? Can you give me the stacktrace? It also would help if you could give me some more information about the files in your trash as well. ls -Rla on the trash directory would be very helpful.

Revision history for this message
Seung Soo, Ha (sungsuha-deactivatedaccount) wrote :

@Chris S.
'Then, when I click on "empty trash", docky closes :' is describes what I'm experiencing.
Also I can't seem to be able to empty trash through docky when this happens.

The problem appears to be sporadic.
For me, when it happens, I try openning the trash can in nautilus.

It just becomes busy without showing anything actually inside!!

Nautilus menu ->file ->empty trash does seem to work.

I'll try ls -Rla on the trash directory the next time it happens

PS. How can I do a stacktrace?

Revision history for this message
Chris S. (cszikszoy) wrote : Re: [Bug 604234] Re: Docky dies when emptying trash via Trash Docklet

@Seung

You need to run docky from the terminal with the -d flag, eg. $ docky -d

Revision history for this message
Jonathan Lumb (jonolumb) wrote :

This is also happening for me, docky version 2.0.7 on Ubuntu Maverick 10.10

Linux jonoxps 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux

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

Fixed in rev 1675.

Changed in docky:
assignee: Chris S. (cszikszoy) → Robert Dyer (psybers)
status: New → Fix Committed
Revision history for this message
Robert Dyer (psybers) wrote :

And by 'fixed' I mean it wont crash. If this problem occurs now, Docky shouldn't crash but your trash will not actually empty! There isn't much more we can do.

Robert Dyer (psybers)
Changed in docky:
milestone: none → 2.0.8
Changed in docky:
status: Fix Committed → Fix Released
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

Bug attachments

Remote bug watches

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