[Mono-bugs] [Bug 81746][Nor] New - ListView: Stackoverflow in MWF unit tests
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun May 27 11:31:05 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=81746
--- shadow/81746 2007-05-27 11:31:05.000000000 -0400
+++ shadow/81746.tmp.20930 2007-05-27 11:31:05.000000000 -0400
@@ -0,0 +1,118 @@
+Bug#: 81746
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ListView: Stackoverflow in MWF unit tests
+
+The unit tests on my local Ubuntu 7.04 box abort due to a stackoverflow.
+I've always assumed this was some local issue, but apparently the
+monobuild MWF tests on redhat-9-i386 also fail.
+
+I'm not sure if it's the same issue. Can someone, who has access to that
+box, check out the log file of the MWF test ?
+
+On my local machine that log contains the following errors:
+
+System.NullReferenceException: Object reference not set to an instance of
+an object
+ at (wrapper ldfld)
+System.Object:__ldfld_wrapper_0x85049f4_System.Drawing.Size
+(object,intptr,intptr,intptr)
+ at System.Windows.Forms.ListViewItem.Layout () [0x00000]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Lis
+tViewItem.cs:702
+ at System.Windows.Forms.ListView.FocusChanged (System.Object o,
+System.EventArgs args) [0x00047]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Lis
+tView.cs:2531
+ at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+ at System.Windows.Forms.Control.OnLostFocus (System.EventArgs e)
+[0x0001c]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:5728
+ at System.Windows.Forms.Control.WmKillFocus
+(System.Windows.Forms.Message& m) [0x00007]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:5333
+ at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&
+m) [0x0021c]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:4932
+ at System.Windows.Forms.ListView.WndProc (System.Windows.Forms.Message&
+m) [0x0006c]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Lis
+tView.cs:2839
+ at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
+(System.Windows.Forms.Message& m) [0x00000]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:228
+ at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:209
+ at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x0006b]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Nat
+iveWindow.cs:183
+System.NullReferenceException: Object reference not set to an instance of
+an object
+ at (wrapper ldfld)
+System.Object:__ldfld_wrapper_0x85049f4_System.Drawing.Size
+(object,intptr,intptr,intptr)
+ at System.Windows.Forms.ListViewItem.Layout () [0x00000]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Lis
+tViewItem.cs:702
+ at System.Windows.Forms.ListView.FocusChanged (System.Object o,
+System.EventArgs args) [0x00047]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Lis
+tView.cs:2531
+ at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+ at System.Windows.Forms.Control.OnLostFocus (System.EventArgs e)
+[0x0001c]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:5728
+ at System.Windows.Forms.Control.WmKillFocus
+(System.Windows.Forms.Message& m) [0x00007]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:5333
+ at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&
+m) [0x0021c]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:4932
+ at System.Windows.Forms.ListView.WndProc (System.Windows.Forms.Message&
+m) [0x0006c]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Lis
+tView.cs:2839
+ at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
+(System.Windows.Forms.Message& m) [0x00000]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:228
+ at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Con
+trol.cs:209
+ at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x0006b]
+in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Nat
+iveWindow.cs:183
+
+Modifying ListViewItem.Layout to do nothing if owner is null fixed the
+problem for me.
+
+I haven't been able to reproduce this with a small app.
More information about the mono-bugs
mailing list