dlech/Keebuntu

Keepass hangs when installing application indicator

ppattard opened this issue · 7 comments

Hello,

I'm running Ubuntu 16.04 Beta. As soon as I install the keepass2-plugin-application-indicator, I get problems with Keepass. All right clicks make the GUI hang. Same if I double click on an entry to copy password to clipboard.

I get this exception:

System.NullReferenceException: Object reference not set to an instance of an object
  at KeePass.Forms.MainForm.OnPwListMouseDoubleClick (System.Object sender, System.Windows.Forms.MouseEventArgs e) <0x407c1050 + 0x0030d> in <filename unknown>:0 
  at System.Windows.Forms.Control.OnMouseDoubleClick (System.Windows.Forms.MouseEventArgs e) <0x407c0fc0 + 0x00065> in <filename unknown>:0 
  at System.Windows.Forms.ListView+ItemControl.HandleClicks (System.Windows.Forms.MouseEventArgs me) <0x407c00b0 + 0x00053> in <filename unknown>:0 
  at System.Windows.Forms.ListView+ItemControl.ItemsMouseUp (System.Object sender, System.Windows.Forms.MouseEventArgs me) <0x407bfb60 + 0x00067> in <filename unknown>:0 
  at System.Windows.Forms.Control.OnMouseUp (System.Windows.Forms.MouseEventArgs e) <0x407bfad0 + 0x00065> in <filename unknown>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) <0x407bf7f0 + 0x00118> in <filename unknown>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0x405c6c00 + 0x00217> in <filename unknown>:0 
  at System.Windows.Forms.ListView+ItemControl.WndProc (System.Windows.Forms.Message& m) <0x40676350 + 0x000ff> in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0x405c6bd0 + 0x00024> in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0x405c6b90 + 0x00036> in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0x405c54d0 + 0x0031c> in <filename unknown>:0 

I tried reproducing in a freshly built VM but I don't reproduce there :-(. However, on my laptop where I have the problem, it is well reproducible: uninstalling the package and dependencies fixes the problem. Reinstalling reintroroduces the issue.

For info the dependencies that come when I install are the following:
keepass2-plugin-libdbus keepass2-plugin-libimagemagick libappindicator0.1-cil libdbus-glib2.0-cil libdbus2.0-cil

Note: I have seen this stack trace appear in a Keepass bug regarding mono version. But of course I have a recent mono, and have installed mono-complete.

Could you please help ? It is annoying I can't get the tray icon on this machine while used to it.

Tell me if you need more.

dlech commented

Do you have any other plugins installed?

Which version of KeePass are you using?

Which version of keepass2-plugin-application-indicator are you using?

Hello,

  • Yes I have the KeePassRPC plugin for KeeFox Firefox plugin
  • I use Ubuntu's packaged version i.e. 2.31
  • I use the version packaged for Xenial i.e. a version called "0.4.7+0.5.7"

I forgot to mention that I have everything else up-to-date on the system.

It seems they pushed version 2.32 on the repo since yesterday (they call it 2.32+dfsg-1). I've just tried again with this version and get the same problem.

dlech commented

Unfortunately, I don't see how the application indicator could cause the crash. It does not have anything to do even remotely close to any of the functions shown in the stack trace.

I also use KeePassRPC, so I am fairly sure this is not the problem either. However, you could try removing it as well and see if the crash goes away also.

Or maybe it has to do with your settings or a specific database file. If you find a way to reproduce or have other different stack traces from a crash then we can dig a bit deeper, but for now I really don't have any good ideas about what could be wrong.

dlech commented

One more thing I forgot to mention is that I just released a new version to the beta ppa yesterday. There are some small changes to the application indicator plugin. I don't expect that it will make a difference but it would be good to try anyway.

Hello,

Indeed, the stack is only about the double click event... That's all I could get. Something I get one a bit different with a few more frames.

I tried the beta without more success.

I also noticed one thing: uninstalling the application-indicator but leaving the other dependencies works. So it's really coupled to this package.

Still need to try without the other plugin...

Good news ...

I removed the RPC plugin and, as astonishing as it can be, it started to work. Then I put back the RPC, it broke again.

But this time, I clicked on "Clear plugin cache", so at the next startup it forced the recompilation of the plugins. And don't ask me why but now it seems to work with both plugins active...