Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: [SOLVED] Mono & KeePass 2

  1. #1
    Ux64's Avatar
    Ux64 is offline Gee! These Aren't Roasted!
    Join Date
    Oct 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    [SOLVED] Mono & KeePass 2

    Hi!

    Has anyone got KeePass 2.X working with Ubuntu, I mean Linux with Mono?

    KeePass keeps crashing when writing password. Immediately after second letter program crashes. After that UI handler thread seems to be dead.

    Code:
    Offset and length were out of bounds for the array or count is greater thanthe number of elements from index to the end of the source collection.
    mscorlib
      at System.Buffer.BlockCopy (System.Array src, Int32 srcOffset, System.Array dest, Int32 destOffset, Int32 count) [0x00000] 
      at System.Security.SecureString.InsertAt (Int32 index, Char c) [0x00000] 
      at KeePass.UI.SecureEdit.RemoveInsert (Int32 nLeftRem, Int32 nRightRem, System.String strInsert) [0x00000] 
      at KeePass.UI.SecureEdit.OnPasswordTextChanged (System.Object sender, System.EventArgs e) [0x00000] 
      at System.Windows.Forms.Control.OnTextChanged (System.EventArgs e) [0x00000] 
      at System.Windows.Forms.TextBoxBase.OnTextChanged (System.EventArgs e) [0x00000] 
      at System.Windows.Forms.TextBoxBase.WndProc (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.TextBox.WndProc (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] 
      at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] 
      at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] 
      at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] 
      at System.Windows.Forms.Form.ShowDialog (IWin32Window ownerWin32) [0x00000] 
      at System.Windows.Forms.Form.ShowDialog () [0x00000] 
      at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog ()
      at KeePass.Forms.MainForm.OpenDatabase (KeePassLib.Serialization.IOConnectionInfo ioConnection, KeePassLib.Keys.CompositeKey cmpKey, Boolean bOpenLocal) [0x00000] 
      at KeePass.Forms.MainForm.OnFileOpen (System.Object sender, System.EventArgs e) [0x00000] 
      at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] 
      at System.Windows.Forms.ToolStripButton.OnClick (System.EventArgs e) [0x00000] 
      at System.Windows.Forms.ToolStripItem.HandleClick (System.EventArgs e) [0x00000] 
      at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, ToolStripItemEventType met) [0x00000] 
      at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:FireEvent (System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
      at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] 
      at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] 
      at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] 
      at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] 
      at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG& msg) [0x00000] 
      at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] 
      at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000] 
      at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] 
      at KeePass.Program.Main (System.String[] args) [0x00000] 
    Void BlockCopy(System.Array, Int32, System.Array, Int32, Int32)
    After digging around I found following thread from KeePass Open Discussion:
    http://sourceforge.net/forum/forum.p...orum_id=329220

    I it solved my problem.

    - Thanks
    Last edited by Ux64; September 11th, 2008 at 03:12 PM.

  2. #2
    Join Date
    Aug 2006
    Location
    Bari, Italy
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [SOLVED] Mono & KeePass 2

    did you build keepass successfully? If so could you please tell me how to do?
    What about keepass 1.x? is it possible to build it using mono?

  3. #3
    Ux64's Avatar
    Ux64 is offline Gee! These Aren't Roasted!
    Join Date
    Oct 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: [SOLVED] Mono & KeePass 2

    Quote Originally Posted by Noiano View Post
    did you build keepass successfully? If so could you please tell me how to do?
    What about keepass 1.x? is it possible to build it using mono?
    Nope. I used ready build version. Why bother to build, when NET is multiplatform?

    Actually latest mono runs latest keepass without major problems. I just forgot to report that. It was earlier than it didn't work out. ( I didn't make trough analysis, but just simply tried if it works )

  4. #4
    Join Date
    Jan 2006
    Beans
    132

    Re: [SOLVED] Mono & KeePass 2

    I keep getting this:

    Code:
    ** (KeePass.exe:11749): WARNING **: The following assembly referenced from /home/chris/Desktop/KeePass-2.06-Beta/KeePass.exe could not be loaded:
         Assembly:   System.Windows.Forms    (assemblyref_index=1)
         Version:    2.0.0.0
         Public Key: b77a5c561934e089
    The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/chris/Desktop/KeePass-2.06-Beta/).

    Is there something special I need to do? I just run by "mono KeePass.exe"
    Running 64bit if that matters.
    Tx

    Didjit

  5. #5
    Join Date
    Aug 2006
    Location
    Bari, Italy
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [SOLVED] Mono & KeePass 2

    Quote Originally Posted by Didjit View Post
    I keep getting this:

    Code:
    ** (KeePass.exe:11749): WARNING **: The following assembly referenced from /home/chris/Desktop/KeePass-2.06-Beta/KeePass.exe could not be loaded:
         Assembly:   System.Windows.Forms    (assemblyref_index=1)
         Version:    2.0.0.0
         Public Key: b77a5c561934e089
    The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/chris/Desktop/KeePass-2.06-Beta/).

    Is there something special I need to do? I just run by "mono KeePass.exe"
    Running 64bit if that matters.
    Tx

    Didjit
    You need to install the package libmono-winforms2.0-cil

  6. #6
    Join Date
    Jan 2006
    Beans
    132

    Re: [SOLVED] Mono & KeePass 2

    Well, closer. Then I get this huge error. Any ideas?

    Code:
      at (wrapper managed-to-native) System.Diagnostics.FileVersionInfo.GetVersionInfo_internal (string) <0x0004b>
      at (wrapper managed-to-native) System.Diagnostics.FileVersionInfo.GetVersionInfo_internal (string) <0xffffffff>
      at System.Diagnostics.FileVersionInfo.GetVersionInfo (string) <0x000af>
      at KeePass.Plugins.PluginManager.LoadPlugins (System.IO.FileInfo[]) <0x000ae>
      at KeePass.Plugins.PluginManager.LoadAllPlugins (string) <0x00094>
      at KeePass.Forms.MainForm.OnFormLoad (object,System.EventArgs) <0x04929>
      at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x0007b>
      at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs) <0x00080>
      at System.Windows.Forms.Form.OnCreateControl () <0x00054>
      at System.Windows.Forms.Control.CreateControl () <0x00146>
      at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message&) <0x000cd>
      at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) <0x0029c>
      at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message&) <0x00016>
      at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message&) <0x0006b>
      at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&) <0x00253>
      at KeePass.Forms.MainForm.WndProc (System.Windows.Forms.Message&) <0x008f1>
      at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x00025>
      at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00038>
      at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x001e0>
      at System.Windows.Forms.XplatUIX11.SendMessage (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00202>
      at System.Windows.Forms.XplatUIX11.MapWindow (System.Windows.Forms.Hwnd,System.Windows.Forms.WindowType) <0x002d8>
      at System.Windows.Forms.XplatUIX11.CreateWindow (System.Windows.Forms.CreateParams) <0x01afd>
      at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams) <0x00023>
      at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams) <0x00045>
      at System.Windows.Forms.Control.CreateHandle () <0x00092>
      at System.Windows.Forms.Form.CreateHandle () <0x0001b>
      at System.Windows.Forms.Control.CreateControl () <0x0007e>
      at System.Windows.Forms.Control.SetVisibleCore (bool) <0x0008a>
      at System.Windows.Forms.Form.SetVisibleCore (bool) <0x001e2>
      at System.Windows.Forms.Control.set_Visible (bool) <0x00042>
      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) <0x002d9>
      at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) <0x0006a>
      at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) <0x00033>
      at KeePass.Program.Main (string[]) <0x00731>
      at (wrapper runtime-invoke) KeePass.Program.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>
    
    Native stacktrace:
    
        mono [0x529d21]
        mono [0x43f99d]
        /lib/libpthread.so.0 [0x7fc1f308e0f0]
        mono [0x4da50c]
        mono [0x4da6d7]
        mono [0x49fa5b]
        mono [0x49ffe3]
        [0x4114397b]
    
    Debug info from gdb:
    
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    [Thread debugging using libthread_db enabled]
    [New Thread 0x7fc1f3d60710 (LWP 13661)]
    [New Thread 0x40d3e950 (LWP 13663)]
    [New Thread 0x40073950 (LWP 13662)]
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    (no debugging symbols found)
    0x00007fc1f308cf4b in read () from /lib/libpthread.so.0
      3 Thread 0x40073950 (LWP 13662)  0x00007fc1f308d851 in nanosleep ()
       from /lib/libpthread.so.0
      2 Thread 0x40d3e950 (LWP 13663)  0x00007fc1f308a2d9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
      1 Thread 0x7fc1f3d60710 (LWP 13661)  0x00007fc1f308cf4b in read ()
       from /lib/libpthread.so.0
    
    Thread 3 (Thread 0x40073950 (LWP 13662)):
    #0  0x00007fc1f308d851 in nanosleep () from /lib/libpthread.so.0
    #1  0x00000000004c56e2 in ?? ()
    #2  0x00007fc1f30863ea in start_thread () from /lib/libpthread.so.0
    #3  0x00007fc1f2b6ec6d in clone () from /lib/libc.so.6
    #4  0x0000000000000000 in ?? ()
    
    Thread 2 (Thread 0x40d3e950 (LWP 13663)):
    #0  0x00007fc1f308a2d9 in pthread_cond_wait@@GLIBC_2.3.2 ()
       from /lib/libpthread.so.0
    #1  0x00000000004c8565 in ?? ()
    #2  0x00000000004ca81b in ?? ()
    #3  0x00000000004db96e in ?? ()
    #4  0x0000000000470b93 in ?? ()
    #5  0x000000000048d41b in ?? ()
    #6  0x00000000004d9d33 in ?? ()
    #7  0x00000000004f1582 in ?? ()
    #8  0x00007fc1f30863ea in start_thread () from /lib/libpthread.so.0
    #9  0x00007fc1f2b6ec6d in clone () from /lib/libc.so.6
    #10 0x0000000000000000 in ?? ()
    
    Thread 1 (Thread 0x7fc1f3d60710 (LWP 13661)):
    #0  0x00007fc1f308cf4b in read () from /lib/libpthread.so.0
    #1  0x00007fc1f350f56e in ?? () from /usr/lib/libglib-2.0.so.0
    #2  0x00007fc1f350fa56 in ?? () from /usr/lib/libglib-2.0.so.0
    #3  0x00007fc1f35104cb in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
    #4  0x00007fc1f3510988 in g_spawn_command_line_sync ()
       from /usr/lib/libglib-2.0.so.0
    #5  0x0000000000529dc8 in ?? ()
    #6  0x000000000043f99d in ?? ()
    #7  <signal handler called>
    #8  0x00000000004da50c in ?? ()
    #9  0x00000000004da6d7 in ?? ()
    #10 0x000000000049fa5b in ?? ()
    #11 0x000000000049ffe3 in ?? ()
    #12 0x000000004114397b in ?? ()
    #13 0x0000000002623b30 in ?? ()
    #14 0x000000004191c8d4 in ?? ()
    #15 0xffffffffffffffff in ?? ()
    #16 0x00007fc1eaf0faa0 in ?? ()
    #17 0x00007fc1eb1ded80 in ?? ()
    #18 0x00007ffffbd8f7a0 in ?? ()
    #19 0x00007ffffbd8f5b0 in ?? ()
    #20 0x00007fc1f3bbd780 in ?? ()
    #21 0x00007fc1f1256300 in ?? ()
    #22 0x00007fc1eb1e6348 in ?? ()
    #23 0x00007fc1eaf0fd48 in ?? ()
    #24 0x0000000041143780 in ?? ()
    #25 0x00007fc1f3bc5c40 in ?? ()
    #26 0x00007fc1f3bc73f0 in ?? ()
    #27 0x00007fc1eb1e6348 in ?? ()
    #28 0x00007fc1f1259f00 in ?? ()
    #29 0x00007fc1eaf10ea0 in ?? ()
    #30 0x000000004114334f in ?? ()
    #31 0x00007fc1eb1ded80 in ?? ()
    #32 0x00007fc1f3bc5c40 in ?? ()
    #33 0x00007ffffbd8f770 in ?? ()
    #34 0x00000000412b50c6 in ?? ()
    #35 0x00007fc1eaec3460 in ?? ()
    #36 0x0000000002623b31 in ?? ()
    #37 0x00007fc1f3d60708 in ?? ()
    #38 0x00007fc1e4024200 in ?? ()
    #39 0x0000000041141aa5 in ?? ()
    #40 0x00007fc1eb1ded80 in ?? ()
    #41 0x00007ffffbd8fe90 in ?? ()
    #42 0x00007ffffbd8f7b0 in ?? ()
    #43 0x00007fc1f3bbd780 in ?? ()
    #44 0x00007fc1f1256300 in ?? ()
    #45 0x00007fc1f3bc5c40 in ?? ()
    #46 0x00007fc1f3bc73f0 in ?? ()
    #47 0x4064600000000000 in ?? ()
    #48 0x40100c907da4e871 in ?? ()
    #49 0x0000000042c00000 in ?? ()
    #50 0x0000000000000000 in ?? ()
    #0  0x00007fc1f308cf4b in read () from /lib/libpthread.so.0
    
    
    =================================================================
    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.
    =================================================================

  7. #7
    Join Date
    Aug 2006
    Location
    Bari, Italy
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [SOLVED] Mono &amp; KeePass 2

    which version of mono are you using?

  8. #8
    Join Date
    Jan 2006
    Beans
    132

    Re: [SOLVED] Mono &amp; KeePass 2

    Ah. 1.9.1 Which now I think is the problem. KeePass needs 2X, right?

  9. #9
    Join Date
    Aug 2006
    Location
    Bari, Italy
    Beans
    57
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: [SOLVED] Mono &amp; KeePass 2

    Quote Originally Posted by Didjit View Post
    Ah. 1.9.1 Which now I think is the problem. KeePass needs 2X, right?
    no, version 1.9.1 is good enough. I only have mono + that library I mentioned in my previous post...that's pretty weird, you know?

  10. #10
    Join Date
    Jan 2006
    Beans
    132

    Re: [SOLVED] Mono &amp; KeePass 2

    And you are running the Portable KeyPass?

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •