2.20 on OS X

Help
2012-09-24
2013-01-06
  • Elliott Slaughter

    I am trying to run KeePass 2.20 on Mac OS X 10.8.2 .

    Since http://keepass2.openix.be/ seems to be out of date (2.18, whereas the newest version is 2.20), I attempted to follow the instructions for "Other Unix-like systems" (http://keepass.info/help/v2/setup.html#mono). I installed the latest version of Mono, downloaded and extracted the portable KeePass zip file, and ran "mono KeePass.exe". The program crashed on startup.

    What am I missing? Based on the fact that someone else is talking about other issues with 2.20 (other than outright crashes), I assume this has to work somehow.

    If I get this to work via this method, is there anything else I'm missing by not using the dmg installer from http://keepass2.openix.be/ ?

    Thanks in advance. Backtrace for the crash follows below.

    $ mono -version
    Mono JIT compiler version 2.10.9 (tarball Mon May  7 20:25:51 EDT 2012)
    Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
    TLS:           normal
    SIGSEGV:       normal
    Notification:  kqueue
    Architecture:  x86
    Disabled:      none
    Misc:          debugger softdebug
    LLVM:          yes(2.9svn-mono)
    GC:            Included Boehm (with typed GC)

    $ mono KeePass.exe
    Stacktrace:

      at (wrapper managed-to-native) KeePass.Native.NativeMethods.XSetClassHint (intptr,intptr,intptr) <0xffffffff>
      at KeePass.Native.NativeMethods.SetWmClass (System.Windows.Forms.Form,string,string) <0x00267>
      at KeePass.Util.MonoWorkarounds.SetWmClass (System.Windows.Forms.Form) <0x0001b>
      at KeePass.Util.MonoWorkarounds.ApplyTo (System.Windows.Forms.Form) <0x0005f>
      at KeePass.Forms.MainForm.OnFormLoad (object,System.EventArgs) <0x02447>
      at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x00062>
      at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs) <0x0008c>
      at System.Windows.Forms.Form.OnCreateControl () <0x00057>
      at System.Windows.Forms.Control.CreateControl () <0x0013f>
      at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message&) <0x00117>
      at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) <0x002b3>
      at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message&) <0x00013>
      at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message&) <0x00057>
      at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&) <0x00243>
      at KeePass.Forms.MainForm.WndProc (System.Windows.Forms.Message&) <0x001b7>
      at System.Windows.Forms.Control/ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x0001a>
      at System.Windows.Forms.Control/ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x0002b>
      at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00214>
      at System.Windows.Forms.XplatUICarbon.SendMessage (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00017>
      at System.Windows.Forms.XplatUICarbon.CreateWindow (System.Windows.Forms.CreateParams) <0x00ffa>
      at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams) <0x0001a>
      at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams) <0x00033>
      at System.Windows.Forms.Control.CreateHandle () <0x00081>
      at System.Windows.Forms.Form.CreateHandle () <0x00017>
      at System.Windows.Forms.Control.CreateControl () <0x00092>
      at System.Windows.Forms.Control.SetVisibleCore (bool) <0x0007b>
      at System.Windows.Forms.Form.SetVisibleCore (bool) <0x0022f>
      at System.Windows.Forms.Control.set_Visible (bool) <0x00029>
      at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <0xffffffff>
      at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x0020b>
      at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) <0x0005b>
      at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) <0x00037>
      at KeePass.Program.Main (string) <0x0093f>
      at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

    Native stacktrace:

    0   mono                                0x0009fdbf mono_handle_native_sigsegv + 287
    1   mono                                0x00004f6e mono_sigsegv_signal_handler + 334
    2   libsystem_c.dylib                   0x9a3d586b _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   libX11.dylib                        0x09ebca60 XSetClassHint + 200
    5   ???                                 0x0a0123c8 0x0 + 167846856
    6   ???                                 0x0a011ea8 0x0 + 167845544
    7   ???                                 0x0a011c2c 0x0 + 167844908
    8   ???                                 0x0a011ba0 0x0 + 167844768
    9   ???                                 0x09cf5ea8 0x0 + 164585128
    10  ???                                 0x09cf33db 0x0 + 164574171
    11  ???                                 0x09cf3165 0x0 + 164573541
    12  ???                                 0x09cf2bc8 0x0 + 164572104
    13  ???                                 0x095b0d08 0x0 + 156962056
    14  ???                                 0x095b6a70 0x0 + 156985968
    15  ???                                 0x095b5cac 0x0 + 156982444
    16  ???                                 0x09ce8ffc 0x0 + 164532220
    17  ???                                 0x09ce8fc0 0x0 + 164532160
    18  ???                                 0x09ce8e1c 0x0 + 164531740
    19  ???                                 0x09ce8b78 0x0 + 164531064
    20  ???                                 0x095b59f3 0x0 + 156981747
    21  ???                                 0x095b59cc 0x0 + 156981708
    22  ???                                 0x095b4c75 0x0 + 156978293
    23  ???                                 0x095b4a48 0x0 + 156977736
    24  ???                                 0x095b2213 0x0 + 156967443
    25  ???                                 0x095b1213 0x0 + 156963347
    26  ???                                 0x095b1194 0x0 + 156963220
    27  ???                                 0x095b0f0a 0x0 + 156962570
    28  ???                                 0x09ce7858 0x0 + 164526168
    29  ???                                 0x095b0c5b 0x0 + 156961883
    30  ???                                 0x095be414 0x0 + 157017108
    31  ???                                 0x09ce7430 0x0 + 164525104
    32  ???                                 0x095be362 0x0 + 157016930
    33  ???                                 0x095be304 0x0 + 157016836
    34  ???                                 0x09ce548c 0x0 + 164517004
    35  ???                                 0x09ce522c 0x0 + 164516396
    36  ???                                 0x09ce4ec0 0x0 + 164515520
    37  ???                                 0x00555f40 0x0 + 5594944
    38  ???                                 0x00556297 0x0 + 5595799
    39  mono                                0x0000ecf4 mono_jit_runtime_invoke + 164
    40  mono                                0x00184354 mono_runtime_invoke + 68
    41  mono                                0x0018a41e mono_runtime_exec_main + 238
    42  mono                                0x0007464d mono_main + 6797
    43  mono                                0x00001fd6 start + 54

    Debug info from gdb:

    /tmp/mono-gdb-commands.rc40u7:1: Error in sourced command file:
    Unable to access task for process-id 13627: (os/kern) failure.

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

    Abort trap: 6

     
  • Dominik Reichl

    Dominik Reichl - 2012-09-24

    Thanks for the detailed report. I think I was able to workaround the issue.

    Here's the latest development snapshot for testing:
    http://keepass.info/filepool/KeePass_120924.zip

    Best regards
    Dominik

     
  • Elliott Slaughter

    Yes, your dev snapshot launches successfully. Thanks.

     
  • Niclas Lindgren

    Niclas Lindgren - 2012-09-25

    I have the exact same problem (except I'm on os x 10.6).
    Version 2.19 works fine, but 2.20 crashes.

    Anyone that has any ideas here?

     
  • Niclas Lindgren

    Niclas Lindgren - 2012-09-25

    Sorry, didn't see the reply.
    The last snapshot works fine for me too.

     
  • Henrik T.

    Henrik T. - 2012-10-18

    Just wanted to report that having installed 2.18 (from http://keepass2.openix.be/ and following the instructions there) on an updated MacBook, I copied the 2.20.1 .exe (that is, current release version) from the portable .zip package over the 2.18 one. Copy/paste of username and password using the buttons works fine for me.

    Which makes me happy. Thanks to those who provide this.

     
  • Nath Rao

    Nath Rao - 2012-12-28

    I got 2.20 working, following some of the advice I found on this forum: Install mono, unzip the portable version, and "mono KeePass.exe" in a terminal (xterm, actually for me). [The pre-complied version I found seems to have some kind of protection that prevented me seeing what was in the package, and did not run either.] But the xterm window contains a long list of error messages that all say
    "kCGErrorCannotCompleteCGSDeviceynchronize: Invalide device window"
    This doesn't seem to stop it from working, but is there something I should fix? Unlike 2.09, the config.xml file doesnot seem to need editing: It said <TrayIcon/> already.

     
  • Mark Aronszajn

    Mark Aronszajn - 2013-01-06

    I'd really like to try using the snapshot but the link given by Dominick doesn't work anymore. Can we have an updated link to the dev snapshot that appears to work, please?

    Thanks in advance,

     

Log in to post a comment.