[Mono-bugs] [Bug 438886] Mono 2.0.1 Windows.Form crashes (Windows only)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 5 04:43:05 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=438886

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=438886#c10


Andy Hume <andyhume32 at yahoo.co.uk> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |andyhume32 at yahoo.co.uk




--- Comment #10 from Andy Hume <andyhume32 at yahoo.co.uk>  2008-11-05 02:43:04 MST ---
This looks similar to bug 368492 "[win32] OutOfMemoryException when using
ToolStrip with Icons".  It fixed itself...

I see the problem and also other similar issues on HEAD (well r117246).  For
instance PropertyGrid fails at startup loading its icons with the crash/stack
below, and the repro from that older bug fails too (again below -- this run
failed with SIGILL).  About one out of five times the crash doesn't happen but
the process uses lots of CPU and never appears.

I have reverted r114585 (I think correctly!) and still see the problem.  There
are no strings being marshalled in these two cases so does that also suggest
that that patch isn't to blame?

PropertyGrid:
[[
Stacktrace:

  at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdipLoadImageFromStream(System.Runtime.InteropServices.ComTypes.IStream,intptr&)
<0x00004>
  at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdipLoadImageFromStream(System.Runtime.InteropServices.ComTypes.IStream,intptr&)
<0xffffffff>
  at System.Drawing.Image.InitFromStream (System.IO.Stream) [0x000c1] in
D:\cygwin\usr\src\mono\mcs\class\System.Drawing\System.Drawing\Image.cs:300
  at System.Drawing.Bitmap..ctor (System.Type,string) [0x00047] in
D:\cygwin\usr\src\mono\mcs\class\System.Drawing\System.Drawing\Bitmap.cs:133
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap..ctor
(System.Type,string) <0xffffffff>
  at System.Windows.Forms.PropertyGrid..ctor () [0x00265] in
D:\cygwin\usr\src\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\PropertyGrid.cs:154
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.PropertyGrid..ctor () <0xffffffff>
  at PropGridFormControlsTabView.RunGrid () <0x00098>
  at PropGridFormControlsTabView.Main (string[]) <0x00021>
  at (wrapper runtime-invoke)
PropGridFormControlsTabView.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>

This application has requested the Runtime to terminate it in an unusual way.
]]


bug-368492_SimpleToolStrip.exe
[[
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. --->
System.ExecutionEngineException: SIGILL
  at (wrapper managed-to-native)
System.Drawing.GDIPlus:GdipLoadImageFromStream(System.Runtime.InteropServices.ComTypes.IStream,intptr&)
  at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x000c1]
inD:\cygwin\usr\src\mono\mcs\class\System.Drawing\System.Drawing\Image.cs:300
  at System.Drawing.Image..ctor (System.Runtime.Serialization.SerializationInfo
info, StreamingContext context) [0x00055] in
D:\cygwin\usr\src\mono\mcs\class\System.Drawing\System.Drawing\Image.cs:76
  at System.Drawing.Bitmap..ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
[0x00000] in D:\cygwin\usr\src\mono\mcs\build\common\Consts.cs:1
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x000a6] in
D:\cygwin\usr\src\mono\mcs\class\corlib\System.Reflection\MonoMethod.cs:434
  --- End of inner exception stack trace ---
.. continues into serialization and resources
]]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list