Docky crashes when disconnect or reconnect power adapter to laptop

Bug #1309706 reported by Christer
66
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Docky
New
Undecided
Unassigned

Bug Description

This is my first time reporting a bug so hopefully I get this right.

Docky crashes when I disconnect (or reconnect) the power adapter from a Lenovo ThinkPad Edge S430 with the Intel graphics activated on a fresh install of Ubuntu 14.04 x64 Desktop (Trusty Thar).

This happens when I start Docky in the terminal with the command "dock --debug" and disconnect the power adapter after a short while :

christer@thinkpad-u:~$ docky --debug
[Info 19:52:15.882] Docky version: 2.2.0 Release
[Info 19:52:15.887] Kernel version: 3.13.0.24
[Info 19:52:15.888] CLR version: 4.0.30319.17020
[Debug 19:52:16.067] [UserArgs] BufferTime = 0
[Debug 19:52:16.067] [UserArgs] MaxSize = 2147483647
[Debug 19:52:16.067] [UserArgs] NetbookMode = False
[Debug 19:52:16.067] [UserArgs] NoPollCursor = False
[Error 19:52:16.084] [SystemService] Could not initialize power manager dbus: 'org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.UPower" doesn't exist
'
[Info 19:52:16.086] [SystemService] at Docky.Services.SystemService+IUPowerProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
  at Docky.Services.SystemService.HandleUPowerChanged () [0x00000] in <filename unknown>:0
  at Docky.Services.SystemService.InitializeBattery () [0x00000] in <filename unknown>:0
[Info 19:52:16.104] [ThemeService] Setting theme: Matte
[Debug 19:52:16.119] [DesktopItemService] Loading remap file '/usr/share/docky/remaps.ini'.
[Debug 19:52:16.123] [DesktopItemService] Remapping 'Picasa3.exe' to 'picasa'.
[Debug 19:52:16.123] [DesktopItemService] Remapping 'nbexec' to 'netbeans'.
[Debug 19:52:16.123] [DesktopItemService] Remapping 'deja-dup-preferences' to 'deja-dup'.
[Debug 19:52:16.123] [DesktopItemService] Remapping 'VirtualBox' to 'virtualbox'.
[Warn 19:52:16.123] [DesktopItemService] Could not find remap file '/home/christer/.local/share/docky/remaps.ini'!
[Debug 19:52:16.124] [DesktopItemService] Loading desktop item cache '/home/christer/.cache/docky/docky.desktop.sv_SE.UTF-8.cache'.
[Info 19:52:16.199] [DockServices] Dock services initialized.
[Debug 19:52:16.214] [DBusManager] DBus Registered: org.gnome.Docky
[Debug 19:52:16.217] [DBusManager] DBus Registered: net.launchpad.DockManager
[Debug 19:52:16.279] [PluginManager] Plugin manager initialized.
[Debug 19:52:16.285] [PluginManager] Processing config file for "Battery Monitor".
[Debug 19:52:16.342] [PluginManager] Processing config file for "Bookmarks".
[Debug 19:52:16.342] [PluginManager] Processing config file for "CPU Monitor".
[Debug 19:52:16.343] [PluginManager] Processing config file for "Clippy".
[Debug 19:52:16.343] [PluginManager] Processing config file for "Clock".
[Debug 19:52:16.343] [PluginManager] Processing config file for "Desktop".
[Debug 19:52:16.344] [PluginManager] Processing config file for "Gmail".
[Debug 19:52:16.344] [PluginManager] Processing config file for "Mounter".
[Debug 19:52:16.344] [PluginManager] Processing config file for "NPR".
[Debug 19:52:16.345] [PluginManager] Processing config file for "Network Manager".
[Debug 19:52:16.345] [PluginManager] Processing config file for "Network Monitor".
[Debug 19:52:16.345] [PluginManager] Processing config file for "Recent Documents".
[Debug 19:52:16.346] [PluginManager] Processing config file for "Session Manager".
[Debug 19:52:16.346] [PluginManager] Processing config file for "Timer".
[Debug 19:52:16.346] [PluginManager] Processing config file for "Trash".
[Debug 19:52:16.347] [PluginManager] Processing config file for "Weather".
[Debug 19:52:16.347] [PluginManager] Processing config file for "Workspace Switcher".
[Info 19:52:16.375] [PluginManager] Loaded "Trash".
[Fatal 19:52:16.589] [GLib] Source ID 85 was not found when attempting to remove it
[Fatal 19:52:16.589] [GLib] Source ID 89 was not found when attempting to remove it
[Fatal 19:52:16.590] [GLib] Source ID 86 was not found when attempting to remove it
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/banshee_control.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/deluge_badge.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/emesene_control.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/gajim_badge.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/gtg_menus.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/liferea_badge.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/mpd_control.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/open_terminal_here.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/pidgin_control.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/pithos_control.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/rhythmbox_control.py
[Info 19:52:18.119] [HelperService] Helper added: /usr/share/dockmanager/scripts/skype_control.py
[Info 19:52:18.120] [HelperService] Helper added: /usr/share/dockmanager/scripts/tomboy_menus.py
[Info 19:52:18.120] [HelperService] Helper added: /usr/share/dockmanager/scripts/transmission_badge.py
[Info 19:52:18.120] [HelperService] Helper added: /usr/share/dockmanager/scripts/tsclient_menus.py
[Info 19:52:18.120] [HelperService] Helper added: /usr/share/dockmanager/scripts/workrave_helper.py
[Info 19:52:18.120] [HelperService] Helper added: /usr/share/dockmanager/scripts/zeitgeist_journal.py
[Info 19:52:18.120] [HelperService] Helper added: /usr/share/dockmanager/scripts/zeitgeist_menus.py
[Info 19:52:18.124] [DrawingService] Could not find 'banshee', using fallback of 'extension'.
[Info 19:52:18.127] [DrawingService] Could not find 'deluge', using fallback of 'extension'.
[Info 19:52:18.130] [DrawingService] Could not find 'emesene', using fallback of 'extension'.
[Info 19:52:18.133] [DrawingService] Could not find 'gajim', using fallback of 'extension'.
[Info 19:52:18.136] [DrawingService] Could not find 'gtg', using fallback of 'extension'.
[Info 19:52:18.138] [DrawingService] Could not find 'liferea', using fallback of 'extension'.
[Info 19:52:18.143] [DrawingService] Could not find 'pidgin', using fallback of 'extension'.
[Warn 19:52:18.146] [DrawingService] Error loading icon from file '/usr/share/pithos/media/icon.svg': Misslyckades med att öppna filen "/usr/share/pithos/media/icon.svg": Filen eller katalogen finns inte
[Debug 19:52:18.147] [DrawingService] at Gdk.Pixbuf..ctor (System.String filename, Int32 width, Int32 height, Boolean preserve_aspect_ratio) [0x00000] in <filename unknown>:0
  at Docky.Services.DrawingService.IconFromFile (System.String name, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
[Info 19:52:18.147] [DrawingService] Could not find '/usr/share/pithos/media/icon.svg', using fallback of 'extension'.
[Info 19:52:18.151] [DrawingService] Could not find 'skype', using fallback of 'extension'.
[Info 19:52:18.153] [DrawingService] Could not find 'tomboy', using fallback of 'extension'.
[Warn 19:52:18.161] [DrawingService] Error loading icon from file '/usr/share/pixmaps/workrave/workrave.xpm': Misslyckades med att öppna filen "/usr/share/pixmaps/workrave/workrave.xpm": Filen eller katalogen finns inte
[Debug 19:52:18.161] [DrawingService] at Gdk.Pixbuf..ctor (System.String filename, Int32 width, Int32 height, Boolean preserve_aspect_ratio) [0x00000] in <filename unknown>:0
  at Docky.Services.DrawingService.IconFromFile (System.String name, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
[Info 19:52:18.161] [DrawingService] Could not find '/usr/share/pixmaps/workrave/workrave.xpm', using fallback of 'extension'.
[Fatal 19:52:34.209] [GLib] Source ID 140 was not found when attempting to remove it
[Fatal 19:52:34.209] [GLib] Source ID 201 was not found when attempting to remove it
[Fatal 19:52:34.209] [GLib] Source ID 141 was not found when attempting to remove it
[Fatal 19:52:34.209] [GLib] Source ID 145 was not found when attempting to remove it
[Fatal 19:52:34.209] [GLib] Source ID 155 was not found when attempting to remove it
[Fatal 19:52:34.209] [GLib] Source ID 252 was not found when attempting to remove it
[Fatal 19:52:34.209] [GLib] Source ID 161 was not found when attempting to remove it
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
[Fatal 19:52:34.210] [GLib] Source ID 159 was not found when attempting to remove it
[Fatal 19:52:34.210] [GLib] Source ID 149 was not found when attempting to remove it
[Fatal 19:52:34.210] [GLib] Source ID 147 was not found when attempting to remove it
[Fatal 19:52:34.210] [GLib] Source ID 139 was not found when attempting to remove it
[Fatal 19:52:34.210] [GLib] Source ID 157 was not found when attempting to remove it
[Fatal 19:52:34.210] [GLib] Source ID 203 was not found when attempting to remove it
[Fatal 19:52:34.210] [GLib] Source ID 153 was not found when attempting to remove it
[Fatal 19:52:34.210] [GLib] Source ID 251 was not found when attempting to remove it
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
[Fatal 19:52:34.211] [GLib] Source ID 266 was not found when attempting to remove it
Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces
[Fatal 19:52:34.211] [GLib] Source ID 151 was not found when attempting to remove it
[Fatal 19:52:34.211] [GLib] Source ID 137 was not found when attempting to remove it
[Fatal 19:52:34.211] [GLib] Source ID 163 was not found when attempting to remove it
[Fatal 19:52:34.211] [GLib] Source ID 138 was not found when attempting to remove it
[Fatal 19:52:34.211] [GLib] Source ID 143 was not found when attempting to remove it

Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.UPower" doesn't exist

  at Docky.Services.SystemService+IUPowerProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
  at Docky.Services.SystemService.HandleUPowerChanged () [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,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] in <filename unknown>:0
  --- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00137>
at System.Reflection.MethodBase.Invoke (object,object[]) <0x00032>
at System.Delegate.DynamicInvokeImpl (object[]) <0x00203>
at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
at System.Delegate.DynamicInvoke (object[]) <0x00020>
at DBus.Connection.HandleSignal (DBus.Protocol.Message) <0x0031f>
at DBus.Connection.DispatchSignals () <0x00067>
at DBus.Connection.Iterate () <0x0002f>
at DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,DBus.GLib.IOCondition,intptr) <0x0003b>
at (wrapper native-to-managed) DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,DBus.GLib.IOCondition,intptr) <0x0008a>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00054>
at Gtk.Application.Run () <0x0000b>
at Docky.Docky.Main (string[]) <0x005cb>

[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.UPower" doesn't exist

  at Docky.Services.SystemService+IUPowerProxy.Get (System.String interface, System.String propname) [0x00000] in <filename unknown>:0
  at Docky.Services.SystemService.HandleUPowerChanged () [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,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] in <filename unknown>:0
  --- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00137>
at System.Reflection.MethodBase.Invoke (object,object[]) <0x00032>
at System.Delegate.DynamicInvokeImpl (object[]) <0x00203>
at System.MulticastDelegate.DynamicInvokeImpl (object[]) <0x0003b>
at System.Delegate.DynamicInvoke (object[]) <0x00020>
at DBus.Connection.HandleSignal (DBus.Protocol.Message) <0x0031f>
at DBus.Connection.DispatchSignals () <0x00067>
at DBus.Connection.Iterate () <0x0002f>
at DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,DBus.GLib.IOCondition,intptr) <0x0003b>
at (wrapper native-to-managed) DBus.BusG/<Init>c__AnonStorey0.<>m__0 (intptr,DBus.GLib.IOCondition,intptr) <0x0008a>
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00054>
at Gtk.Application.Run () <0x0000b>
at Docky.Docky.Main (string[]) <0x005cb>

Docky version: 2.2.0 Release (installed from Ubuntu Software Center)
Distro: Linux 3.2.0-37-generic x86_64 Ubuntu (Ubuntu 14.04 x64 Desktop)
X.Org X Server: 1.15.1
Video Card: Intel HD Ivybridge Mobile (active), NVIDIA N13P-GLP Optimus Graphics (inactive)

$ mono --version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
 TLS: __thread
 SIGSEGV: altstack
 Notifications: epoll
 Architecture: amd64
 Disabled: none
 Misc: softdebug
 LLVM: supported, not enabled.
 GC: sgen

Revision history for this message
Jerko Steiner (jerko-steiner) wrote :

I have the same problem. As I do not use the Battery Monitor plugin, I do not need Docky to be able to react to UPower DBUS events so I downloaded the source code, commented out the SystemService#HandleUPowerChanged method body, compiled the code and now it does not crash. The reason why does it crash is still unknown to me, but at least now I can use it the same way as I used to.

Revision history for this message
Weston Bustraan (wbustraan) wrote :

I was able to fix it without commenting out the code.

In Docky.Services/Docky.Services/SystemService.cs, I changed:

[Interface(UPowerName)]
interface IUPower : org.freedesktop.DBus.Properties

to

[Interface("org.freedesktop.DBus.Properties")]
interface IUPower : org.freedesktop.DBus.Properties

I'm not a .NET programmer (Java), but I would hazard a guess that the proxy object that dbus-sharp is generating will only respond to the interface described by the Interface attribute. The 'Get' method is a part of org.freedesktop.DBus.Properties D-Bus interface, not org.freedesktop.UPower.

The other thing I did was to add a try/catch block around the code in HandleUPowerChanged() similar to the one in InitializeBattery(), so that even if the the D-Bus call fails, it doesn't crash all of Docky.

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.