keepass2 crashes when opening database

Bug #1042732 reported by Bartosz Marek
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
keepass2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I open keepass2 on my lubuntu desktop, and next i try to open base, I've got System.Text.DecoderFallbackException
Full log:
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

I've found similar mono error, but I install mono-complete and problem still exists.
My system: amd64 lubuntu 12.04, packet: 2.19+dfsg-1~ppa1~precise1_all.deb
I except well workin' keepass

cheers

BM

Revision history for this message
Julian Taylor (jtaylor) wrote :

was keepass never working or is this a new issue?
if its new, can you open an older backup?

if possible to test is can the database be opened on windows?

Revision history for this message
Bartosz Marek (bartosz-marek) wrote :

Hi,
on this machine keepass has never started properly - I tried half year ago. For now I've virtualbox with winXP, keepass 2.17 and this file opens properly.

cheers
bm

Revision history for this message
Bartosz Marek (bartosz-marek) wrote :
  • I Edit (5.6 MiB, text/plain)

I've just started keepass with strace - results in attachment. Maybe it helps, I hope.

Revision history for this message
Julian Taylor (jtaylor) wrote :

it is very hard to debug this without reproducing the issue.

It would be great if you could produce a dummy database that causes the issue and attach it to the bug.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in keepass2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Zsoltee (zsoltee-the-programmer) wrote :

It affects me too. Please help me, I can't access my passwords needed for everyday life. Thank you in advance!

Revision history for this message
David Lechner (dlech) wrote :

As Julian stated, we cannot fix the bug unless someone shares a database that causes the crash. The crash happens while decoding UTF8 text. There is probably a bug in the Mono framework that need to be fixed because it thinks there is some invalid character sequence in your database.

Revision history for this message
Bartosz Marek (bartosz-k-marek) wrote :

Gents, now I'm using 2.25 version on lubu 14.04 and It's works perfectly. I think you can close it with workaround status.
Regards
BM

Revision history for this message
David Lechner (dlech) wrote :

It appears that this crash is caused by having a binary ~/.recently-used file. See http://sourceforge.net/p/keepass/bugs/1358/ for more information. You can delete or rename ~/.recently-used to prevent the crash.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.