Bug 319952 (MONO77151) - Errors running simple form using 1.1.12.1
Summary: Errors running simple form using 1.1.12.1
Status: RESOLVED MOVED
Alias: MONO77151
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.0
Hardware: Other Windows XP
: P3 - Medium : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 03:27 UTC by Bill Seddon
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Test case for this report (2.59 KB, application/octet-stream)
2006-01-04 03:29 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:43:23 UTC


---- Reported by bill.seddon@lyquidity.com 2006-01-03 20:27:51 MST ----

I'm filing this bug because there is a request in 77073 (which is this 
report is the same as) that a Windows bug has to be reported separately. 

With 1.1.12.1 on Windows I have problems whatever I do.  1.1.9.2 works 
just fine but with the latest version I get GC errors in ASP.NET 
(reported separately) and errors with the simplest of Windows forms 
(except a form by itself with no controls on).

Since I don't know what "package" to file the report against I've 
selected an arbitrary one.

Attached are two very simple applications.  One a form with a button.  
The other a form with a button and a text box.  Whether compiled with CSC 
or MCS the executable run when using 1.1.9.2 or Windows .NET.

When run with 1.1.12.1 the simpler for will display but on exit shows:

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

in <0x4> (wrapper managed-to-native) 
System.Drawing.GDIPlus:GdipDeleteGraphics (intptr)
in <0xffffffc9> (wrapper managed-to-native) 
System.Drawing.GDIPlus:GdipDeleteGraphics (intptr)
in <0x19> System.Drawing.Graphics:Dispose ()
in <0xff9b> (wrapper remoting-invoke-with-check) 
System.Drawing.Graphics:Dispose ()
in <0x23> System.Windows.Forms.Control:Dispose (bool)
in <0xf> System.Windows.Forms.ButtonBase:Dispose (bool)
in <0x10> System.ComponentModel.Component:Finalize ()
in <0xf0b5bd0> (wrapper runtime-invoke) System.Object:runtime_invoke_void 
(object,intptr,intptr,intptr)

This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.


When running the example, the one with a textbox (or, it seems, any other 
control) the following message is generated:

Unhandled Exception: System.NullReferenceException: Object reference not 
set to an instance of an object
in <0x00377> System.Windows.Forms.Line:RecalculateLine 
(System.Drawing.Graphics g, System.Windows.Forms.Document doc)
in <0x000a8> System.Windows.Forms.Document:RecalculateDocument 
(System.Drawing.Graphics g, Int32 start, Int32 end, Boolean optimize)
in <0x00017> System.Windows.Forms.Document:RecalculateDocument 
(System.Drawing.Graphics g)
in <0x00026> System.Windows.Forms.Document:owner_HandleCreated 
(System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void_object_EventArgs 
(object,System.EventArgs)
in <0x00023> System.Windows.Forms.Control:OnHandleCreated 
(System.EventArgs e)
in <0x0000d> System.Windows.Forms.TextBoxBase:OnHandleCreated 
(System.EventArgs e)
in <0x0000d> System.Windows.Forms.TextBox:OnHandleCreated 
(System.EventArgs e)
in <0x000ee> System.Windows.Forms.Control:CreateHandle ()
in <0x0000a> System.Windows.Forms.TextBoxBase:CreateHandle ()
in <0x00024> System.Windows.Forms.Control:get_Handle ()
in (wrapper remoting-invoke-with-check) 
System.Windows.Forms.Control:get_Handle ()
in <0x0005b> System.Windows.Forms.Document:PositionCaret 
(System.Windows.Forms.Line line, Int32 pos)
in <0x00309> System.Windows.Forms.TextBoxBase:set_Text (System.String 
value)
in <0x0000d> System.Windows.Forms.TextBox:set_Text (System.String value)
in <0x0022f> MonoErrors.Form1:InitializeComponent ()
in <0x00013> MonoErrors.Form1:.ctor ()
in (wrapper remoting-invoke-with-check) MonoErrors.Form1:.ctor ()
in <0x0001b> MonoErrors.Form1:Main ()



---- Additional Comments From bill.seddon@lyquidity.com 2006-01-03 20:29:38 MST ----

Created an attachment (id=169039)
Test case for this report




---- Additional Comments From bill.seddon@lyquidity.com 2006-01-03 20:33:19 MST ----

The test cases includes short scripts for compiling and running the 
test forms under both 1.1.9.2 and 1.1.12.1.  The scripts set the 
path, MONO_CFG_DIR and MONO_PATH variables to the appropriate Mono 
version.  The Mono files are in the locations created by the 
installer.





---- Additional Comments From bill.seddon@lyquidity.com 2006-01-03 20:36:40 MST ----

Bugzilla is not retaining my selections for OS, Priority, etc.

The OS is Windows XP SP2



---- Additional Comments From bill.seddon@lyquidity.com 2006-01-07 20:33:08 MST ----

Since reporting this issue I have checked 1.1.10.1 and 1.1.11 as 
well.  These versions work fine.  However 1.1.12_0 remains a problem.



---- Additional Comments From peter@novonyx.com 2006-01-07 21:57:56 MST ----

Both the GDI error and the RecalculateLine error have been fixed on 
12/22/05 in svn. 1.1.13 will contain the fixes.

I'm marking this one a duplicate of 76942, since the gdi error was 
not listed as a bug.

Both bugs were Windows specific.

*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO76942 ***



---- Additional Comments From bill.seddon@lyquidity.com 2006-01-08 06:42:41 MST ----

When will there be a new build for Windows?  The motivation for 
loading the version was to contribute to the SWF testing.  While 
willing to help, I don't have the time to learn how to build the 
whole of mono under windows and have relied upon the provided builds.

It may be that this problem is addressed by a single assembly but 
I'm of dubious about a single assembly because of my other GC 
problems with 1.1.12.

Thanks


Imported an attachment (id=169039)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>XP SP2</cf_op_sys_details>
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"