Menu

#1968 KeePass 2.45 crashes after opening a XDBX file on ubuntu 20.04

KeePass_2.x
closed
nobody
None
5
2020-07-04
2020-06-18
Alfred
No

When starting keepass2 on ubuntu 20.04 and opening my .xdbx file keepass2 crashes with exception below. keepass2 was working after update to ubuntu 20.04 using the same .xdbx file already.
*System.ArgumentException: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'KeePass.UI.ListSorter'.
at System.Collections.Generic.IntrospectiveSortUtilities.ThrowOrIgnoreBadComparer (System.Object comparer) [0x0000b] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Array+SorterObjectArray.IntrospectiveSort (System.Int32 left, System.Int32 length) [0x00029] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Array+SorterObjectArray.Sort (System.Int32 left, System.Int32 length) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Array.SortImpl (System.Array keys, System.Array items, System.Int32 index, System.Int32 length, System.Collections.IComparer comparer) [0x00033] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Array.Sort (System.Array keys, System.Array items, System.Int32 index, System.Int32 length, System.Collections.IComparer comparer) [0x000c7] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Array.Sort (System.Array array, System.Int32 index, System.Int32 length, System.Collections.IComparer comparer) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Collections.ArrayList.Sort (System.Int32 index, System.Int32 count, System.Collections.IComparer comparer) [0x00047] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Collections.ArrayList.Sort (System.Collections.IComparer comparer) [0x00008] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.Windows.Forms.ListView+ListViewItemCollection.Sort (System.Collections.IComparer comparer) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.ListView.Sort (System.Boolean redraw) [0x00017] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ListView.Sort(bool)
at System.Windows.Forms.ListView+ListViewItemCollection.CollectionChanged (System.Boolean sort) [0x00011] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.ListView+ListViewItemCollection.Add (System.Windows.Forms.ListViewItem value) [0x0003e] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at KeePass.Forms.MainForm.SetListEntry (KeePassLib.PwEntry pe, System.Windows.Forms.ListViewItem lviTarget) [0x00452] in <d0a361d43360430e876a2b38dc13547f>:0
at KeePass.Forms.MainForm.UpdateEntryList (KeePassLib.PwGroup pgSelected, System.Boolean bOnlyUpdateCurrentlyShown) [0x001f6] in <d0a361d43360430e876a2b38dc13547f>:0
at KeePass.Forms.MainForm.UpdateUI (System.Boolean bRecreateTabBar, KeePass.UI.PwDocument dsSelect, System.Boolean bUpdateGroupList, KeePassLib.PwGroup pgSelect, System.Boolean bUpdateEntryList, KeePassLib.PwGroup pgEntrySource, System.Boolean bSetModified, System.Windows.Forms.Control cOptFocus) [0x00040] in <d0a361d43360430e876a2b38dc13547f>:0
at KeePass.Forms.MainForm.UpdateUI (System.Boolean bRecreateTabBar, KeePass.UI.PwDocument dsSelect, System.Boolean bUpdateGroupList, KeePassLib.PwGroup pgSelect, System.Boolean bUpdateEntryList, KeePassLib.PwGroup pgEntrySource, System.Boolean bSetModified) [0x00000] in <d0a361d43360430e876a2b38dc13547f>:0
at KeePass.Forms.MainForm.OpenDatabase (KeePassLib.Serialization.IOConnectionInfo ioConnection, KeePassLib.Keys.CompositeKey cmpKey, System.Boolean bOpenLocal) [0x003d8] in <d0a361d43360430e876a2b38dc13547f>:0
at KeePass.Forms.MainForm.OnFormLoad (System.Object sender, System.EventArgs e) [0x00f9f] in <d0a361d43360430e876a2b38dc13547f>:0
at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00022] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00029] in <a3daa9b84fd241a497578a25f68bc3c7>:0
*</a3daa9b84fd241a497578a25f68bc3c7></a3daa9b84fd241a497578a25f68bc3c7></d0a361d43360430e876a2b38dc13547f></d0a361d43360430e876a2b38dc13547f></d0a361d43360430e876a2b38dc13547f></d0a361d43360430e876a2b38dc13547f></d0a361d43360430e876a2b38dc13547f></d0a361d43360430e876a2b38dc13547f></a3daa9b84fd241a497578a25f68bc3c7></a3daa9b84fd241a497578a25f68bc3c7></a3daa9b84fd241a497578a25f68bc3c7></a3daa9b84fd241a497578a25f68bc3c7>

Discussion

  • Paul

    Paul - 2020-06-18

    The "Unable to sort" line is interesting. Do you have some strange data in a recent edit?
    Turn off sorting.
    Remove any plug-ins.
    Open the KDBX with KeeWeb browser and see if it will sort.

    cheers, Paul

     
  • Alfred

    Alfred - 2020-06-18

    Thanks for the tip, problem has been resolved now.

    KeeWeb did work, no plug-ins were installed so far.
    Turn off sorting solved the issue. After torn on sorting again KeePass continued working.
    Could not get the reason behind that sorting problem.

    Best Regards Alfred

     
  • Dominik Reichl

    Dominik Reichl - 2020-07-04
    • status: open --> closed
    • Priority: 7 --> 5
     
  • Dominik Reichl

    Dominik Reichl - 2020-07-04

    I cannot reproduce this issue. If you find a way to reproduce it, please post detailed steps.

    Thanks and best regards,
    Dominik

     

Log in to post a comment.

MongoDB Logo MongoDB