Menu

#2295 [Linux] Clicking on "options" toolbar entry causes crash

KeePass_2.x
closed
nobody
None
5
2024-01-13
2024-01-11
mirh
No

Tried both with 2.54 and 2.55. Also mono 6.12.0.205 and git.

System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x00098] in <e218ebda2fc640e18fa0e2fd43fc2204>:0 
  at System.Drawing.Bitmap..ctor (System.Int32 width, System.Int32 height, System.Drawing.Imaging.PixelFormat format) [0x00016] in <e218ebda2fc640e18fa0e2fd43fc2204>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap..ctor(int,int,System.Drawing.Imaging.PixelFormat)
  at KeePass.UI.UIUtil.CreateColorBitmap24 (System.Int32 nWidth, System.Int32 nHeight, System.Drawing.Color color) [0x00000] in <1ede36525e584ab1b191d4d52ad50dd4>:0 
  at KeePass.UI.UIUtil.CreateColorBitmap24 (System.Windows.Forms.Button btnTarget, System.Drawing.Color clr) [0x0001c] in <1ede36525e584ab1b191d4d52ad50dd4>:0 
  at KeePass.UI.ColorButtonEx.set_SelectedColor (System.Drawing.Color value) [0x00024] in <1ede36525e584ab1b191d4d52ad50dd4>:0 
  at (wrapper remoting-invoke-with-check) KeePass.UI.ColorButtonEx.set_SelectedColor(System.Drawing.Color)
  at KeePass.Forms.OptionsForm.LoadGuiOptions () [0x00731] in <1ede36525e584ab1b191d4d52ad50dd4>:0 
  at KeePass.Forms.OptionsForm.LoadOptions () [0x00013] in <1ede36525e584ab1b191d4d52ad50dd4>:0 
  at KeePass.Forms.OptionsForm.OnFormLoad (System.Object sender, System.EventArgs e) [0x00634] in <1ede36525e584ab1b191d4d52ad50dd4>:0 
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x0001f] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'KeePass.Forms.OptionsForm'.
  at System.Windows.Forms.Control.CreateHandle () [0x00013] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Control.get_Handle () [0x00022] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.get_Handle()
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00090] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window owner) [0x001b7] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Form.ShowDialog () [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog()
  at KeePass.Forms.MainForm.OnToolsOptions (System.Object sender, System.EventArgs e) [0x00037] in <1ede36525e584ab1b191d4d52ad50dd4>:0 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00019] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x00090] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00054] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>: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) [0x00048] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x00017] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <95d2b0fe71cd43ad8f3dadc76ea9ef47>:0 

Discussion

  • Paul

    Paul - 2024-01-12

    Looks like a mono issue, but it may be video driver(GDI).
    Try a new video driver.

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2024-01-12
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2024-01-12

    This is a bug in Mono. You can follow it here:
    https://github.com/mono/mono/issues/21669

    Best regards,
    Dominik

     
  • mirh

    mirh - 2024-01-13

    I don't know, I have tried the few workarounds and patches suggested, but to no avail (the error has some significant differences aside of the first line).
    On top of that, I found that this only happens when I have my main database open.
    If none is opened, or if I try with a dummy one, everything is fine.

     

Log in to post a comment.

MongoDB Logo MongoDB