Menu

#1360 Keepass crashes with NullReferenceException when run with sux / gksu

KeePass_2.x
closed
nobody
None
5
2015-03-29
2015-03-26
No

I have two accounts on my laptop, one for personal use and one for work. Both have separate password safe files. Occasionally, I need to access the personal password safe while logged in with the work account.

Previously (on Linux Mint 14, so probably using Keepass 2.18) I was able to do this using "sux sampo keepass2", which would prompt my personal account password and run keepass2 under it. However, after upgrading keepass2 has started to crash. I've also tried "gksu -w -u sampo keepass2", but to no avail.

I'm currently running Linux Mint 17.1 with Keepass version 2.25 from the repositories. I also tried upgrading to version 2.28 from Ubuntu vivid release, but it still crashes.

Below is the stack trace of the crash when running version 2.28 with sux / gksu:

$ sux sampo keepass2
Password:
SendMessage (69206058, 0x112c, 0x4, 0x4)

(process:941): dconf-CRITICAL **: unable to create directory '/run/user/1001/dconf': Permission denied. dconf will not work properly.

(process:941): dconf-CRITICAL **: unable to create directory '/run/user/1001/dconf': Permission denied. dconf will not work properly.
SendMessage (69206052, 0x101f, (nil), (nil))
SendMessage (0, 0x1203, (nil), 0x7fff48739930)
SendMessage (0, 0x1204, (nil), 0x7fff48739930)
SendMessage (0, 0x1203, 0x1, 0x7fff48739930)
SendMessage (0, 0x1204, 0x1, 0x7fff48739930)
SendMessage (0, 0x1203, 0x2, 0x7fff48739930)
SendMessage (0, 0x1204, 0x2, 0x7fff48739930)
SendMessage (0, 0x1203, 0x3, 0x7fff48739930)
SendMessage (0, 0x1204, 0x3, 0x7fff48739930)
SendMessage (0, 0x1203, 0x4, 0x7fff48739930)
SendMessage (0, 0x1204, 0x4, 0x7fff48739930)

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at System.IO.FileSystemWatcher.Stop () [0x00000] in <filename unknown="">:0
at System.IO.FileSystemWatcher.Finalize () [0x00000] in <filename unknown="">:0

Discussion

  • Dominik Reichl

    Dominik Reichl - 2015-03-29
    • status: open --> closed
     

Log in to post a comment.