Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489120 - =app-admin/keepass-2.23 with =dev-lang/mono-3.2.3 - On window close: System.ObjectDisposedException: The object was used after being disposed. at System.Net.Sockets.Socket.Send (System.Byte[] buf) [0x00000] in <filename unknown>:0
Summary: =app-admin/keepass-2.23 with =dev-lang/mono-3.2.3 - On window close: System.O...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alessandro Di Federico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 11:23 UTC by Tom Wijsman (TomWij) (RETIRED)
Modified: 2014-04-13 13:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
unhandled-exception.txt (file_489120.txt,4.27 KB, text/plain)
2013-10-23 11:23 UTC, Tom Wijsman (TomWij) (RETIRED)
Details
another-unhandled-exception.txt (file_489120.txt,2.76 KB, text/plain)
2013-10-23 11:32 UTC, Tom Wijsman (TomWij) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-23 11:23:24 UTC
Created attachment 361718 [details]
unhandled-exception.txt

keepass works fine, but when I close it; this happens, an unhandled exception:

 $ keepass 
SendMessage (25165862, 0x101f, (nil), (nil))
SendMessage (0, 0x1203, (nil), 0x7fff692c8570)
SendMessage (0, 0x1204, (nil), 0x7fff692c8570)
SendMessage (0, 0x1203, 0x1, 0x7fff692c8570)
SendMessage (0, 0x1204, 0x1, 0x7fff692c8570)
SendMessage (0, 0x1203, 0x2, 0x7fff692c8570)
SendMessage (0, 0x1204, 0x2, 0x7fff692c8570)
SendMessage (0, 0x1203, 0x3, 0x7fff692c8570)
SendMessage (0, 0x1204, 0x3, 0x7fff692c8570)
SendMessage (0, 0x1203, 0x4, 0x7fff692c8570)
SendMessage (0, 0x1204, 0x4, 0x7fff692c8570)
SendMessage (25165862, 0x101f, (nil), (nil))
SendMessage (0, 0x1203, (nil), 0x7fff692c9880)
SendMessage (0, 0x1204, (nil), 0x7fff692c9880)
SendMessage (0, 0x1203, 0x1, 0x7fff692c9880)
SendMessage (0, 0x1204, 0x1, 0x7fff692c9880)
SendMessage (0, 0x1203, 0x2, 0x7fff692c9880)
SendMessage (0, 0x1204, 0x2, 0x7fff692c9880)
SendMessage (0, 0x1203, 0x3, 0x7fff692c9880)
SendMessage (0, 0x1204, 0x3, 0x7fff692c9880)
SendMessage (0, 0x1203, 0x4, 0x7fff692c9880)
SendMessage (0, 0x1204, 0x4, 0x7fff692c9880)

Unhandled Exception:
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.Socket.Send (System.Byte[] buf) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.WakeupMain () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SendAsyncMethod (System.Windows.Forms.AsyncMethodData method) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SendMessage (IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.SetWindowPos (IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.SetWindowPos (IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.SetBoundsCoreInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStrip.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDown.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.SetBoundsInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.set_Size (Size value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDownMenu.OnLayout (System.Windows.Forms.LayoutEventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control affectedControl, System.String affectedProperty) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.PerformLayout () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:PerformLayout ()
  at System.Windows.Forms.ToolStripItem.OnParentChanged (System.Windows.Forms.ToolStrip oldParent, System.Windows.Forms.ToolStrip newParent) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.set_Parent (System.Windows.Forms.ToolStrip value) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:set_Parent (System.Windows.Forms.ToolStrip)
  at System.Windows.Forms.ToolStripItemCollection.Remove (System.Windows.Forms.ToolStripItem value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDownItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripMenuItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.Component.Finalize () [0x00000] in <filename unknown>:0 

Attached for if that is more convenient.
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-23 11:32:28 UTC
Created attachment 361720 [details]
another-unhandled-exception.txt

One wasn't enough...

 $ keepass
... (same as other) ...

Unhandled Exception:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0 
  at System.Drawing.Graphics.GdipMeasureString (IntPtr graphics, System.String text, System.Drawing.Font font, System.Drawing.RectangleF& layoutRect, IntPtr stringFormat) [0x00000] in <filename unknown>:0 
  at System.Drawing.Graphics.MeasureString (System.String text, System.Drawing.Font font, Int32 width, System.Drawing.StringFormat format) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:MeasureString (string,System.Drawing.Font,int,System.Drawing.StringFormat)
  at System.Windows.Forms.TextRenderer.MeasureTextInternal (IDeviceContext dc, System.String text, System.Drawing.Font font, Size proposedSize, TextFormatFlags flags, Boolean useMeasureString) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.TextRenderer.MeasureText (System.String text, System.Drawing.Font font) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripMenuItem.CalculatePreferredSize (Size constrainingSize) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.GetPreferredSize (Size constrainingSize) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDownMenu.OnLayout (System.Windows.Forms.LayoutEventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control affectedControl, System.String affectedProperty) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.PerformLayout () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:PerformLayout ()
  at System.Windows.Forms.ToolStripItem.OnParentChanged (System.Windows.Forms.ToolStrip oldParent, System.Windows.Forms.ToolStrip newParent) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.set_Parent (System.Windows.Forms.ToolStrip value) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:set_Parent (System.Windows.Forms.ToolStrip)
  at System.Windows.Forms.ToolStripItemCollection.Remove (System.Windows.Forms.ToolStripItem value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDownItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripMenuItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.Component.Finalize () [0x00000] in <filename unknown>:0
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-23 11:43:25 UTC
When trying 2.21 and 2.22, it even happens during the emerge; ouch.

Perhaps this is rather due to the version of mono then? Which version of mono do you (Alessandro) use? Are you able to reproduce this?

My version is =dev-lang/mono-3.2.3.
Comment 3 Alessandro Di Federico 2013-10-23 11:47:12 UTC
I've been experiencing these issues for some time, but I didn't report them because I'm afraid they're due to System.Windows.Forms, which is almost abandoned by the mono guys.

We could report this upstream (keepass) anyways and see what's their opinion.
Comment 4 Alex Xu (Hello71) 2014-04-13 13:35:35 UTC
Package is no longer in tree. Reopen if you can repro on 2.25 (or 2.26).