Keepass crashs on start after latest update?

Yesterday i updated my system pacman -Syu and now Keepass would give me an error whenever i try to start it printing out the following. Can someone help me figure out what to do?I guess it’s because a certain runtime got updated?

* Assertion at aot-runtime.c:2638, condition `is_ok (error)' not met, function:decode_cached_class_info, Image out of date


=================================================================
        Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
        Native stacktrace:
=================================================================
        0x56190e0c8f19 - mono : 
        0x56190e072437 - mono : 
        0x56190e0c0d6c - mono : 
        0x7f14d6c3e710 - /usr/lib/libc.so.6 : 
        0x7f14d6c8e83c - /usr/lib/libc.so.6 : 
        0x7f14d6c3e668 - /usr/lib/libc.so.6 : raise
        0x7f14d6c264b8 - /usr/lib/libc.so.6 : abort
        0x56190e024f61 - mono : 
        0x56190e34cde8 - mono : 
        0x56190e34d759 - mono : monoeg_assertion_message
        0x56190e063ef8 - mono : 
        0x56190e063f6c - mono : 
        0x56190e1c2e07 - mono : 
        0x56190e0fc90c - mono : 
        0x56190e0d0156 - mono : 
        0x56190e02b339 - mono : 
        0x56190e074cf5 - mono : 
        0x56190e076592 - mono : 
        0x4070d393 - Unknown

=================================================================
        Telemetry Dumper:
=================================================================
Pkilling 0x139727474783936x from 0x139727481999424x
Entering thread summarizer pause from 0x139727481999424x
Finished thread summarizer pause from 0x139727481999424x.
Failed to create breadcrumb file (null)/crash_hash_0x6903e1f5

Waiting for dumping threads to resume

=================================================================
        External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
        Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7f14d6c8e83c):0x7f14d6c8e82c  05 00 44 89 ea 89 de 89 c7 b8 ea 00 00 00 0f 05  ..D.............
0x7f14d6c8e83c  89 c3 f7 db 3d 00 f0 ff ff b8 00 00 00 00 0f 47  ....=..........G
0x7f14d6c8e84c  c3 e9 78 ff ff ff 66 0f 1f 44 00 00 4c 89 e7 e8  ..x...f..D..L...
0x7f14d6c8e85c  d0 ae ff ff e9 4c ff ff ff 0f 1f 00 4c 89 e7 e8  .....L......L...

=================================================================
        Managed Stacktrace:
=================================================================
          at <unknown> <0xffffffff>
          at KeePass.Program:Main <0x0003a>
          at <Module>:runtime_invoke_void_object <0x00091>
=================================================================
zsh: IOT instruction (core dumped)  keepass

1 Like

Man… i searched for 2 hours… then i posted here… Just to find a solution 5 Minutes later.
Just reinstall and the issue is gone. See Keepass crashes on startup (AOT Assertion Fail) · Issue #10191 · mono/mono · GitHub

1 Like

Hi @Maracuja,

Nope. Or at least I don’t know if mono is a runtime or not, because the error seems to be related to or because of mono. And that would be neccessary since KeepassX is not Linux natively, but uses the mono Windows emulator. (Or that’s how I have it anyway.)

However, there is a drop-in replacement for KeepassX - KeepassXC. And it’s in the extra repository:

$ pamac search keepassxc
[...]
keepassxc  2.7.6-1 [Installed]                                                                                                                                                                                                                          extra
Cross-platform community-driven port of Keepass password manager

So it can be installed with:

pamac install keepassxc

You can use existing KeepassX databases as-is. I do, and it works like a charm.

Hope this helps!

2 Likes

In the future If you want to avoid Mono a.k.a. windows components altogether, you can use KeepassXC from the repos. I am more than happy i made this transition. And saves a couple of hundred MB disk space.

2 Likes

I was surprised to see so many people in the Stable Update thread with this problem because of using Keepass instead of KeepassXC, don’t know why anyone would choose to use a .NET application on Linux when there’s a perfectly good native alternative available.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.