[Mono-bugs] [Bug 77824][Wis] Changed - im: crash when calling PaintEventArgs.Graphics.Transform in OnPaint()

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat May 20 14:38:34 EDT 2006


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 matt at use.net.

http://bugzilla.ximian.com/show_bug.cgi?id=77824

--- shadow/77824	2006-05-18 12:35:54.000000000 -0400
+++ shadow/77824.tmp.15546	2006-05-20 14:38:34.000000000 -0400
@@ -118,6 +118,72 @@
 disposing PaintEventArgs.
 
 ------- Additional Comments From sebastien at ximian.com  2006-05-18 12:35 -------
 That's not it (but may still be related to a bad dispose) as the
 disposing behaviour of PaintEventArgs is new in 2.0. I'm opening a new
 bug for this.
+
+------- Additional Comments From matt at use.net  2006-05-20 14:38 -------
+Just to update the notes:
+-removing some places where the app was calling Dispose() on Graphics 
+objects didn't fix things
+
+-neither did setting GC_DONT_GC
+
+Both Peter and Sebastien can reproduce this issue now. A current 
+stack trace is below:
+
+** (/home/matt/imeem/imeem.exe:24158): CRITICAL **: 
+GdipGetWorldTransform: assertion `graphics != NULL' failed
+
+Unhandled Exception: System.ArgumentException: Invalid Parameter. A 
+null reference or invalid value was found.
+in [0x00077] 
+(at /home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:181) 
+System.Drawing.GDIPlus:CheckStatus (Status status)
+in [0x00019] 
+(at /home/matt/src/mono/mcs/class/System.Drawing/System.Drawing/Graphics.cs:2438) 
+System.Drawing.Graphics:get_Transform ()
+in (wrapper remoting-invoke-with-check) 
+System.Drawing.Graphics:get_Transform ()
+in <0x0003f> o9:OnPaint (System.Windows.Forms.PaintEventArgs e)
+in [0x00217] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3869) 
+System.Windows.Forms.Control:WndProc (System.Windows.Forms.Message m)
+in [0x00002] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:588) 
+System.Windows.Forms.ScrollableControl:WndProc 
+(System.Windows.Forms.Message m)
+in [0x00002] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:336) 
+System.Windows.Forms.ContainerControl:WndProc 
+(System.Windows.Forms.Message m)
+in [0x00002] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/UserControl.cs:92) 
+System.Windows.Forms.UserControl:WndProc 
+(System.Windows.Forms.Message m)
+in [0x00007] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:162) 
+System.Windows.Forms.Control+ControlNativeWindow:WndProc 
+(System.Windows.Forms.Message m)
+in [0x00056] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146) 
+System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg msg, 
+IntPtr wParam, IntPtr lParam)
+in [0x0001c] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2647) 
+System.Windows.Forms.XplatUIX11:DispatchMessage 
+(System.Windows.Forms.MSG msg)
+in [0x00006] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:420) 
+System.Windows.Forms.XplatUI:DispatchMessage 
+(System.Windows.Forms.MSG msg)
+in [0x00259] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:494) 
+System.Windows.Forms.Application:RunLoop (Boolean Modal, 
+System.Windows.Forms.ApplicationContext context)
+in [0x00006] 
+(at /home/matt/src/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:380) 
+System.Windows.Forms.Application:Run ()
+in <0x00169> et:c ()
+in <0x00397> o7:b (System.String[] A_0)
+


More information about the mono-bugs mailing list