Docky crashes when right clicking and selecting open

Bug #581074 reported by Benjamin Gruenbaum
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Docky
Fix Released
Low
Robert Dyer

Bug Description

Running Ubuntu 10.04, Gnome 2.30, Docky 1343r ppa

Right, so I run docky, go over a torrent file it sees for some reason... docky does not really identify it or something and does not open it, when I right click it and select open- docky crashes

Gnome panel does not see a file/process called myTorrent at all.

inglor@inglor-desktop:~$ docky --debug
[Info 22:53:14.254] Docky version: 2.1.0 bzr docky r1343 ppa
[Info 22:53:14.270] Kernel version: 2.6.32.22
[Info 22:53:14.272] CLR version: 2.0.50727.1433
[Debug 22:53:14.873] [UserArgs] BufferTime = 10
[Debug 22:53:14.873] [UserArgs] MaxSize = 2147483647
[Debug 22:53:14.873] [UserArgs] NetbookMode = False
[Debug 22:53:14.873] [UserArgs] NoPollCursor = False
[Info 22:53:15.027] [DockController] Setting theme: Glass
[Debug 22:53:15.149] [WindowMatcher] Initialize WindowMatcher
[Debug 22:53:15.173] [WindowMatcher] Loading /home/inglor/.cache/docky/docky.desktop.en_US.utf8.cache
[Error 22:53:15.953] [NativeInterop] Failed to query info for '/home/inglor/Desktop/myTorrent.torrent': Error stating file '/home/inglor/Desktop/myTorrent.torrent': No such file or directory
[Info 22:53:15.957] [NativeInterop] at Docky.Services.NativeInterop+<GFileQueryInfo>c__AnonStorey18.<>m__2F () [0x00000]
  at Docky.Services.NativeInterop.NativeHelper[IntPtr] (System.Func`1 act, IntPtr errorReturn, System.String notFound, System.String error) [0x00000]
[Fatal 22:53:15.957] [GLib-GIO] g_file_info_get_attribute_string: assertion `G_IS_FILE_INFO (info)' failed
[Error 22:53:15.957] [NativeInterop] Failed to query info for '/home/inglor/Desktop/myTorrent.torrent': Error stating file '/home/inglor/Desktop/myTorrent.torrent': No such file or directory
[Info 22:53:15.957] [NativeInterop] at Docky.Services.NativeInterop+<GFileQueryInfo>c__AnonStorey18.<>m__2F () [0x00000]
  at Docky.Services.NativeInterop.NativeHelper[IntPtr] (System.Func`1 act, IntPtr errorReturn, System.String notFound, System.String error) [0x00000]
[Fatal 22:53:15.957] [GLib-GIO] g_file_info_get_attribute_byte_string: assertion `G_IS_FILE_INFO (info)' failed
[Error 22:53:15.958] [NativeInterop] Failed to query info for '/home/inglor/Desktop/myTorrent.torrent': Error stating file '/home/inglor/Desktop/myTorrent.torrent': No such file or directory
[Info 22:53:15.958] [NativeInterop] at Docky.Services.NativeInterop+<GFileQueryInfo>c__AnonStorey18.<>m__2F () [0x00000]
  at Docky.Services.NativeInterop.NativeHelper[IntPtr] (System.Func`1 act, IntPtr errorReturn, System.String notFound, System.String error) [0x00000]
[Fatal 22:53:15.958] [GLib-GIO] g_file_info_get_attribute_stringv: assertion `G_IS_FILE_INFO (info)' failed
[Error 22:53:15.958] [NativeInterop] Failed to query info for '/home/inglor/Desktop/myTorrent.torrent': Error stating file '/home/inglor/Desktop/myTorrent.torrent': No such file or directory
[Info 22:53:15.958] [NativeInterop] at Docky.Services.NativeInterop+<GFileQueryInfo>c__AnonStorey18.<>m__2F () [0x00000]
  at Docky.Services.NativeInterop.NativeHelper[IntPtr] (System.Func`1 act, IntPtr errorReturn, System.String notFound, System.String error) [0x00000]
[Fatal 22:53:15.959] [GLib-GIO] g_file_info_get_icon: assertion `G_IS_FILE_INFO (info)' failed
[Fatal 22:53:15.959] [GLib-GObject] g_object_ref: assertion `G_IS_OBJECT (object)' failed
[Info 22:53:15.999] [PluginManager] Loaded "Docky.Widgets,1.0".
[Info 22:53:15.999] [PluginManager] Loaded "Docky.Widgets,1.0".
[Info 22:53:16.000] [PluginManager] Loaded "Weather".
[Info 22:53:16.023] [PluginManager] Loaded "Trash".
[Info 22:53:16.045] [PluginManager] Loaded "Desktop".
[Info 22:53:16.048] [PluginManager] Loaded "GMail".
[Info 22:53:16.056] [PluginManager] Loaded "Recent Documents".
[Info 22:53:17.172] [AbstractWeatherSource] Weather Underground: Reloading weather data
[Info 22:53:17.174] [GMailAtom] Fetching Atom feed: https://mail.google.com/mail/feed/atom/Inbox
[Info 22:53:17.179] [GMailAtom] Fetching Atom feed: https://mail.google.com/mail/feed/atom/Inglor
[Debug 22:53:17.188] [AbstractWeatherSource] Weather Underground: Fetching XML file 'http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=Jerusalem%2c+Israel'
[Info 22:53:17.214] [Helper] Starting deluge_badge.py
[Info 22:53:17.273] [Helper] Starting gtg_menus.py
[Info 22:53:17.306] [Helper] Starting open_terminal_here.py
[Info 22:53:17.344] [Helper] Starting pidgin_control.py
[Info 22:53:17.381] [Helper] Starting rhythmbox_control.py
[Info 22:53:17.553] [DrawingService] Could not find 'banshee', using fallback of 'extension'.
[Info 22:53:17.624] [DrawingService] Could not find 'emesene', using fallback of 'extension'.
[Info 22:53:17.671] [DrawingService] Could not find 'gajim', using fallback of 'extension'.
[Info 22:53:17.711] [DrawingService] Could not find 'gtg', using fallback of 'extension'.
[Info 22:53:17.761] [DrawingService] Could not find 'liferea', using fallback of 'extension'.
[Info 22:53:18.028] [Helper] deluge_badge.py :: cannot import name sclient
[Info 22:53:18.069] [Helper] deluge_badge.py has exited (Code 0).
[Debug 22:53:23.587] [AbstractWeatherSource] Weather Underground: Fetching XML file 'http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=Jerusalem%2c+Israel'
[Debug 22:53:24.714] [AbstractWeatherSource] Weather Underground: reload success
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
GLib.GException: Error stating file '/home/inglor/Desktop/myTorrent.torrent': No such file or directory
  at GLib.FileAdapter.QueryDefaultHandler (GLib.Cancellable cancellable) [0x00000]
  at Docky.Services.SystemService.Launch (AppInfo app, IEnumerable`1 files) [0x00000]
  at Docky.Services.SystemService.Open (AppInfo app, IEnumerable`1 files) [0x00000]
  at Docky.Services.SystemService.Open (IEnumerable`1 files) [0x00000]
  at Docky.Services.SystemService.Open (File file) [0x00000]
  at Docky.Items.FileDockItem.Open () [0x00000]
  at Docky.Items.FileDockItem.<OnGetMenuItems>m__2A (System.Object o, System.EventArgs a) [0x00000]
  at Docky.Menus.MenuItem.SendClick () [0x00000]
  at Docky.Menus.MenuItemWidget.OnButtonReleaseEvent (Gdk.EventButton evnt) [0x00000]
  at Gtk.Widget.buttonreleaseevent_cb (IntPtr widget, IntPtr evnt) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at Gtk.Widget.buttonreleaseevent_cb(IntPtr widget, IntPtr evnt)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Docky.Docky.Main(System.String[] args)
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
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
inglor@inglor-desktop:~$ ^C
inglor@inglor-desktop:~$ docky --debug

Revision history for this message
Benjamin Gruenbaum (benjamingr) wrote :

Come to think about it I forgot about it, but this bug was caused after dragging myTorrent.torrent to the trashcan docklet...

I think the problem is that on one hand docky thinks it is adding a new item/link to the dock and deleting it w/ the trashcan at the same time...

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

Ok so as I see it there are (possibly) 3 bugs here:

1) it added the torrent to your dock when you dragged it to trash - this might not be a bug, you might have accidentally added it to the dock and then when it failed to delete you dragged a 2nd time and actually trashed it - please try to confirm/deny this

2) a file that was added to the dock was later deleted, but still shows up in the dock

3) it crashes when trying to open a file that doesnt exist (somewhat related to #2, but slightly different)

Changed in docky:
importance: Undecided → Low
assignee: nobody → Robert Dyer (psybers)
Revision history for this message
Benjamin Gruenbaum (benjamingr) wrote :

I'm not sure, but option 3 is completely recreatable

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

Fixed in rev 1349.

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

Note that there isn't much I can do about #1, if in fact that is what happened to you. That is 'intended' behavior and if that is what occurred basically you just dropped in the wrong spot. :-)

#3 is definitely fixed, it won't crash now on that.

#2 is fixed from the viewpoint of restarting Docky, that item will no longer show. It will show until you restart it. I might fix the behavior so you won't have to restart it too but for now it is fine.

Revision history for this message
Benjamin Gruenbaum (benjamingr) wrote :

Thanks :)

Changed in docky:
milestone: none → 2.0.4
Changed in docky:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted docky into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

When dragging a normal file to the dock it gets added. If you now delete/rename this file and click on its representation docky crashes on trying to access it without checking for its existence. This is fixed.

tags: added: verification-done
removed: verification-needed
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.