Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keepass won't start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gordonp
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2005
Posts: 83

PostPosted: Thu May 10, 2018 6:45 pm    Post subject: Keepass won't start Reply with quote

This is a recent development - I maintain a keepass file with all my passwords, and something broke over the past few days (by that I mean keepass used to work fine, but not now).

When I say keepass is broken, I mean it won't start by way of a menu-item click; it won't start via file-association; it won't start via command-line.

From the command-line, my (stable, Gnome, systemd) terminal shows:

Code:

$ keepass -vvv

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.TermInfoDriver..ctor (System.String term) [0x00055] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.ConsoleDriver..cctor () [0x0004d] in <ae60a710a4744d16826a514602b7b8ed>:0
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.Console..cctor () [0x0008e] in <ae60a710a4744d16826a514602b7b8ed>:0
   --- End of inner exception stack trace ---
  at KeePass.Program.ShowFatal (System.Exception ex) [0x0001c] in <c181e121d0524791a06c94345f9c687a>:0
  at KeePass.Program.Main (System.String[] args) [0x0000c] in <c181e121d0524791a06c94345f9c687a>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.TermInfoDriver..ctor (System.String term) [0x00055] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.ConsoleDriver..cctor () [0x0004d] in <ae60a710a4744d16826a514602b7b8ed>:0
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.Console..cctor () [0x0008e] in <ae60a710a4744d16826a514602b7b8ed>:0
   --- End of inner exception stack trace ---
  at KeePass.Program.ShowFatal (System.Exception ex) [0x0001c] in <c181e121d0524791a06c94345f9c687a>:0
  at KeePass.Program.Main (System.String[] args) [0x0000c] in <c181e121d0524791a06c94345f9c687a>:0


Googling further, it seems that maybe ncurses (or maybe mono?) are involved; I tried setting my TERM and reduced the error by 1/2 (got this idea from a forum):

Code:

$ TERM=xterm ; keepass -vvv
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.Net.Sockets.SocketException: Connection timed out
  at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x000b6] in <4229506c1c96445b8e95f2a8215a82f7>:0
  at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x001ec] in <fe664b57a1b448b483fa7056430f4e32>:0
  at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <fe664b57a1b448b483fa7056430f4e32>:0
  at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <fe664b57a1b448b483fa7056430f4e32>:0
  at System.Windows.Forms.XplatUI..cctor () [0x00066] in <fe664b57a1b448b483fa7056430f4e32>:0
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <fe664b57a1b448b483fa7056430f4e32>:0
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00005] in <fe664b57a1b448b483fa7056430f4e32>:0
  at System.Windows.Forms.Control..ctor () [0x000e4] in <fe664b57a1b448b483fa7056430f4e32>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <fe664b57a1b448b483fa7056430f4e32>:0


Does anyone have suggestions, which will let my Gentoo desktop/workstation again work with my passwords?!?! TIA!
Back to top
View user's profile Send private message
Hieronymus Bosch
n00b
n00b


Joined: 29 Jan 2015
Posts: 67
Location: 31°45′33.14″N 106°29′24.63″W

PostPosted: Thu May 10, 2018 11:44 pm    Post subject: Reply with quote

What version of Keepass ?

Did you try to install app-admin/keepasxc, at least to retrieve your passwords?
_________________
Details fueled any investigation ...
Back to top
View user's profile Send private message
gordonp
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2005
Posts: 83

PostPosted: Fri May 11, 2018 1:04 pm    Post subject: Reply with quote

My system is "stable", and the only Keepass in Portage is:

Code:
app-admin/keepass-2.38


Other stuff, which may/may_not be related:

Code:
sys-libs/ncurses-6.1-r2
dev-lang/mono-4.8.0.524


I can still access my passwords - I keep the keepass file on a cloud-server, and have it available on cel-phones, tablets, laptops, etc. The problem is that my main all-day-long Gentoo workstation in my office is neutered, and this main workstation cannot be used productively right now :-(

In my experience, when one thing is broken like my keepass, it is likely there is a deeply-rooted problem which will rear it's head in other ways too. I'm stubborn :-) and would like to eliminate the underlying problem here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum