#768963 keepass2: KeePass crashes when trying to open a file using open file dialog (e.g. a kdbx or a key file)

#768963#5
Date:
2014-11-10 12:20:52 UTC
From:
To:
Dear Maintainer,

Whenever i try to browse and open a file inside KeePass (e.g. when trying to
create a new key file or opening a database) it crashes, the application window
hides but it does not exit.
I faced this problem a few month ago but i ignored it. I think this bug has
existed since then.
I tried to run it from console and it seems that an exception is thrown. here
is the stack trace:

System.Xml.XmlException: Invalid data --->
System.Text.DecoderFallbackException: Exception of type
'System.Text.DecoderFallbackException' was thrown.
  at System.Text.DecoderExceptionFallbackBuffer.Fallback (System.Byte[]
bytesUnknown, Int32 index) [0x00000] in <filename unknown>:0
  at System.Text.UTF8Encoding.Fallback (System.Object provider,
System.Text.DecoderFallbackBuffer& buffer, System.Byte[]& bufferArg,
System.Byte* bytes, Int64 byteIndex, UInt32 size, System.Char* chars,
System.Int32& charIndex) [0x00000] in <filename unknown>:0
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32
byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits,
System.UInt32& leftOverCount, System.Object provider,
System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg,
Boolean flush) [0x00000] in <filename unknown>:0
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex,
System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object
provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]&
bufferArg, Boolean flush) [0x00000] in <filename unknown>:0
  at System.Text.UTF8Encoding+UTF8Decoder.GetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) [0x00000] in
<filename unknown>:0
  at System.Xml.NonBlockingStreamReader.ReadBuffer () [0x00000] in <filename
unknown>:0
  at System.Xml.NonBlockingStreamReader.Read (System.Char[] dest_buffer, Int32
index, Int32 count) [0x00000] in <filename unknown>:0
  at System.Xml.XmlStreamReader.Read (System.Char[] dest_buffer, Int32 index,
Int32 count) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Xml.XmlStreamReader.Read (System.Char[] dest_buffer, Int32 index,
Int32 count) [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x00000] in
<filename unknown>:0
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] in <filename
unknown>:0
  at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] in <filename
unknown>:0
  at Mono.Xml.DTDValidatingReader.Read () [0x00000] in <filename unknown>:0
  at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] in <filename
unknown>:0
  at System.Xml.XmlValidatingReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
[0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in
<filename unknown>:0
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x00000] in
<filename unknown>:0
  at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in
<filename unknown>:0
  at System.Windows.Forms.UnixFileSystem.WriteRecentlyUsedFiles (System.String
fileToAdd) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.MWFVFS.WriteRecentlyUsedFiles (System.String
filename) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.MWFFileView.WriteRecentlyUsed (System.String
fullfilename) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.MWFFileView:WriteRecentlyUsed (string)
  at System.Windows.Forms.FileDialog.OnClickOpenSaveButton (System.Object
sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.FileDialog.OnForceDialogEndFileView (System.Object
sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.MWFFileView.OnDoubleClick (System.EventArgs e)
[0x00000] in <filename unknown>:0
  at System.Windows.Forms.ListView+ItemControl.HandleClicks
(System.Windows.Forms.MouseEventArgs me) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ListView+ItemControl.ItemsMouseUp (System.Object
sender, System.Windows.Forms.MouseEventArgs me) [0x00000] in <filename
unknown>:0
  at System.Windows.Forms.Control.OnMouseUp
(System.Windows.Forms.MouseEventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m)
[0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000] in <filename unknown>:0
  at System.Windows.Forms.ListView+ItemControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

#768963#10
Date:
2019-10-02 19:20:26 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

   Trying to locate a key file using the file dialog.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?

   keepass2 crashed.

   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#768963#15
Date:
2019-10-02 19:29:12 UTC
From:
To:
I attatch the error output.

Regards
Johann