Page MenuHomePureOS Tracker

KeepPass2 breaks on PureOS with latest updates
Closed, ResolvedPublic

Description

I get this when I run keepass2 on the cli:

$ keepass2

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) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at KeePass.Program.ShowFatal (System.Exception ex) [0x0001c] in <2575a1183e7b47d8b18aed513a9af37d>:0 
  at KeePass.Program.Main (System.String[] args) [0x0000c] in <2575a1183e7b47d8b18aed513a9af37d>: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) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at KeePass.Program.ShowFatal (System.Exception ex) [0x0001c] in <2575a1183e7b47d8b18aed513a9af37d>:0 
  at KeePass.Program.Main (System.String[] args) [0x0000c] in <2575a1183e7b47d8b18aed513a9af37d>:0 

KeepPassX works fine.

Using PureOS 8 with latest updates:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	PureOS
Description:	PureOS GNU/Linux 8
Release:	8
Codename:	green

Event Timeline

Update: This happens only from the cli! If you search for 'keepass' and run it from the Gnome3 application search it works!

As of 2018-09-19 KeePassXC has not failed throughout all the updates through yesterday.

jonas.smedegaard changed the task status from Open to Incomplete.May 27 2021, 05:03
jonas.smedegaard triaged this task as Normal priority.
jonas.smedegaard added a subscriber: jonas.smedegaard.

Thanks for the detailed issue report, and sorry for the loooong silence.

Several new upstream releases have been issued since this was reported almost 3 years ago, and the surrounding Mono libraries have been upgraded as well in newer releases of PureOS.

Does this issue still apply to an up-to.date system?

theodotos.andreou closed this task as Resolved.Jun 3 2021, 07:52
theodotos.andreou claimed this task.

@jonas.smedegaard yes it works now \o/. Thanks!

Thanks for the confirmation!