Issue #12 resolved

Crash on Ubuntu 12.10 while generating password

portals
created an issue

When i trying to generate password KeePass is closing. Some time ago, everything worked quite well.

OS: Ubuntu 12.10 Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-5ubuntu1) KeePass version: 2.20.1

If it's my fault, I apologize for taking the time.

Error log: System.PlatformNotSupportedException: This platform is not supported. at System.Security.Cryptography.ProtectedMemory.Check (Int32 size, MemoryProtectionScope scope) [0x00000] in <filename unknown>:0 at System.Security.Cryptography.ProtectedMemory.Protect (System.Byte[] userData, MemoryProtectionScope scope) [0x00000] in <filename unknown>:0 at OtpSharp.ProtectedKey..ctor (System.Byte[] key) [0x00000] in <filename unknown>:0 at OtpSharp.Otp..ctor (System.Byte[] secretKey) [0x00000] in <filename unknown>:0 at OtpSharp.Totp..ctor (System.Byte[] secretKey, Int32 step, OtpHashMode mode, Int32 totpSize, OtpSharp.TimeCorrection timeCorrection) [0x00000] in <filename unknown>:0 at KeeOtp.ShowOneTimePasswords.ShowCode () [0x00000] in <filename unknown>:0 at KeeOtp.ShowOneTimePasswords.AddEdit () [0x00000] in <filename unknown>:0 at KeeOtp.ShowOneTimePasswords.FormWasShown () [0x00000] in <filename unknown>:0 at KeeOtp.ShowOneTimePasswords.<ShowOneTimePasswords>m__5 (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Form.OnShown (System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool) at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Form.ShowDialog (IWin32Window owner) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Form.ShowDialog () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog () at KeeOtp.KeeOtpExt.otpDialogToolStripItem_Click (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.ToolStripMenuItem.HandleClick (Int32 mouse_clicks, System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, ToolStripItemEventType met) [0x00000] in <filename unknown>:0 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] in <filename unknown>:0 at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

Comments (4)

  1. Devin Martin repo owner

    The bug has been marked as resolved as the current source will now work on platforms that don't support the ProtectedMemory APIs. This is only the bugfix solution however. The real solution is to support protected memory on all platforms. There is a new issue that has been opened under the underlying OtpSharp project. Investigate Protected Memory on all Platforms

  2. Log in to comment