[Mono-bugs] [Bug 332311] New: macpack'ed WinForms app quits with stacktrace

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 9 15:06:23 EDT 2007


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

           Summary: macpack'ed WinForms app quits with stacktrace
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Macintosh
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: mjg at phoenixtrap.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


Created an attachment (id=177200)
 --> (https://bugzilla.novell.com/attachment.cgi?id=177200)
test case - simple Hello World MessageBox

Description of Problem:
The attached simple "hello world" message box application quits with a stack
trace when launched from the Finder or with "open -a" from the Terminal or an
xterm.  The same .exe runs fine when run from the terminal as "mono Hello.exe".

Steps to reproduce the problem:
1. Compile Hello.cs (mcs -pkg:dotnet -target:winexe Hello.cs)
2. Pack Hello.exe as an application bundle (macpack -n:Hello -a:Hello.exe
-m:winforms)
3. Double-click resulting application in Finder.

Actual Results:
Application icon briefly appears in Dock, message box briefly appears in X11,
then both box and icon disappear.

Expected Results:
Application icon appears in Dock, message box appears in X11.  Both disappear
only after user clicks "OK" button.

How often does this happen? 
Always.

Additional Information:

Stack trace from console.log follows:
Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using built-in
colorscheme
Stacktrace:

  at (wrapper managed-to-native) System.Drawing.Carbon.CreateCGContextForPort
(intptr,intptr&) <0x00004>
  at (wrapper managed-to-native) System.Drawing.Carbon.CreateCGContextForPort
(intptr,intptr&) <0xffffffff>
  at System.Drawing.Carbon.GetCGContextForView (intptr) <0x00073>
  at System.Drawing.Graphics.FromHwnd (intptr) <0x000bf>
  at System.Windows.Forms.XplatUIX11.PaintEventStart (intptr,bool) <0x0006f>
  at System.Windows.Forms.XplatUI.PaintEventStart (intptr,bool) <0x00020>
  at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message&)
<0x00032>
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&)
<0x00175>
  at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message&) <0x00013>
  at System.Windows.Forms.ContainerControl.WndProc
(System.Windows.Forms.Message&) <0x0005d>
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&)
<0x00214>
  at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x0001a>
  at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x0002d>
  at System.Windows.Forms.NativeWindow.WndProc
(intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00197>
  at System.Windows.Forms.XplatUIX11.DispatchMessage
(System.Windows.Forms.MSG&) <0x00019>
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&)
<0x0001b>
  at System.Windows.Forms.Application.RunLoop
(bool,System.Windows.Forms.ApplicationContext) <0x009fd>
  at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window)
<0x002e3>
  at System.Windows.Forms.Form.ShowDialog () <0x00012>
  at MessageBoxForm.RunDialog () <0x00037>
  at (wrapper remoting-invoke-with-check) MessageBoxForm.RunDialog ()
<0xffffffff>
  at System.Windows.Forms.MessageBox.Show (string) <0x00042>
  at test.Main () <0x00012>
  at (wrapper runtime-invoke) test.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
/Users/mjg/Desktop/Hello.app/Contents/MacOS/Hello: line 43:  1512 Abort trap   
          "./bin/$APP_NAME" "$ASSEMBLY"


-- 
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