https://bugzilla.novell.com/show_bug.cgi?id=656467
https://bugzilla.novell.com/show_bug.cgi?id=656467#c0 Summary: Begin sheet throws an error Classification: Mono Product: MonoMac Version: GIT Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bindings AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=402627) --> (http://bugzilla.novell.com/attachment.cgi?id=402627) Test Case User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 When you call NSApplication.SharedApplication.BeginSheet(this,NSApplication.SharedApplication.MainWindow); without first this.MakeKeyAndOrderFront (this); it blows up Reproducible: Always Steps to Reproduce: 1.Run the application 2.click the button 3.watch the magic happen Actual Results: Stacktrace: at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.intptr_objc_msgSend (intptr,intptr) <0x00003> at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.intptr_objc_msgSend (intptr,intptr) <0x00003> at MonoMac.ObjCRuntime.Runtime.GetNSObject (intptr) [0x00058] in /Users/Clancey/Projects/monomacTrunk/src/ObjCRuntime/Runtime.cs:107 at MonoMac.ObjCRuntime.NSObjectMarshaler.MarshalNativeToManaged (intptr) [0x00000] in /Users/Clancey/Projects/monomacTrunk/src/ObjCRuntime/NSObjectMarshaler.cs:33 at (wrapper native-to-managed) object.[MonoMac.AppKit.NSWindow+_NSWindowDelegate.RectangleF WillPositionSheet(MonoMac.AppKit.NSWindow, MonoMac.AppKit.NSWindow, RectangleF)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSWindow,MonoMac.AppKit.NSWindow,System.Drawing.RectangleF) <IL 0x00016, 0x000c3> at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr (intptr,intptr,intptr,intptr,intptr,intptr,intptr) <0x00003> at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr (intptr,intptr,intptr,intptr,intptr,intptr,intptr) <0x00003> at MonoMac.AppKit.NSApplication.BeginSheet (MonoMac.AppKit.NSWindow,MonoMac.AppKit.NSWindow,MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,intptr) [0x0002d] in /Users/Clancey/Projects/monomacTrunk/src/AppKit/NSApplication.g.cs:375 at MonoMac.AppKit.NSApplication.BeginSheet (MonoMac.AppKit.NSWindow,MonoMac.AppKit.NSWindow) [0x00000] in /Users/Clancey/Projects/monomacTrunk/src/AppKit/BeginSheet.cs:81 at System.Windows.Forms.Form.ShowDialog () [0x00000] in /Users/Clancey/Projects/testmm/testmm/Form.cs:54 at testmm.MainClass.<MainClass>m__0 (object,System.EventArgs) [0x0000b] in /Users/Clancey/Projects/testmm/testmm/Main.cs:19 at MonoMac.AppKit.ActionDispatcher.OnActivated (MonoMac.Foundation.NSObject) [0x0000b] in /Users/Clancey/Projects/monomacTrunk/src/AppKit/ActionDispatcher.cs:46 at (wrapper dynamic-method) object.[MonoMac.AppKit.ActionDispatcher.Void OnActivated(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject) <IL 0x00007, 0x00027> at (wrapper native-to-managed) object.[MonoMac.AppKit.ActionDispatcher.Void OnActivated(MonoMac.Foundation.NSObject)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSObject) <IL 0x0006a, 0x001db> at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00003> at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain (int,string[]) <0x00003> at MonoMac.AppKit.NSApplication.Main (string[]) [0x00000] in /Users/Clancey/Projects/monomacTrunk/src/AppKit/NSApplication.cs:74 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) [0x0000a] in /Users/Clancey/Projects/testmm/testmm/Application.cs:43 at System.Windows.Forms.Application.Run (System.Func`1<System.Windows.Forms.Form>) [0x0000b] in /Users/Clancey/Projects/testmm/testmm/Application.cs:17 at testmm.MainClass.Main (string[]) [0x00000] in /Users/Clancey/Projects/testmm/testmm/Main.cs:25 at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00049, 0x0012b> Native stacktrace: 0 testmm 0x000c8f5a mono_handle_native_sigsegv + 343 1 testmm 0x0000ffa5 mono_sigsegv_signal_handler + 306 2 libSystem.B.dylib 0x98cbf46b _sigtramp + 43 3 ??? 0xffffffff 0x0 + 4294967295 4 ??? 0x04a601d3 0x0 + 77988307 5 ??? 0x0257dd7c 0x0 + 39312764 6 ??? 0x02290714 0x0 + 36243220 7 AppKit 0x960ae2ed -[NSWindow(NSSheets) startRectForSheet:] + 1695 8 AppKit 0x960ada80 -[NSWindow(NSSheets) _positionSheet:constrained:andDisplay:] + 140 9 AppKit 0x960ac264 -[NSMoveHelper(NSSheets) _moveParent:andOpenSheet:] + 887 10 AppKit 0x960abec0 -[NSWindow(NSSheets) _orderFrontRelativeToWindow:] + 206 11 AppKit 0x95ecb8c6 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1320 12 AppKit 0x960a6e9f -[NSApplication _orderFrontModalWindow:relativeToWindow:] + 773 13 AppKit 0x960a6872 -[NSApplication _commonBeginModalSessionForWindow:relativeToWindow:modalDelegate:didEndSelector:contextInfo:] + 826 14 ??? 0x04a6b3d4 0x0 + 78033876 15 ??? 0x04a6b0cc 0x0 + 78033100 16 ??? 0x04a6aa97 0x0 + 78031511 17 ??? 0x04a6a537 0x0 + 78030135 18 ??? 0x04a6a4c2 0x0 + 78030018 19 ??? 0x04a6a43a 0x0 + 78029882 20 ??? 0x01776298 0x0 + 24601240 21 ??? 0x0178c5f4 0x0 + 24692212 22 AppKit 0x95f12c46 -[NSApplication sendAction:to:from:] + 112 23 AppKit 0x95ff2465 -[NSControl sendAction:to:] + 108 24 AppKit 0x95fedf12 -[NSCell _sendActionFrom:] + 169 25 AppKit 0x95fed209 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1808 26 AppKit 0x960428a1 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 524 27 AppKit 0x95febc5f -[NSControl mouseDown:] + 812 28 AppKit 0x95fe9c68 -[NSWindow sendEvent:] + 5549 29 AppKit 0x95f02817 -[NSApplication sendEvent:] + 6431 30 AppKit 0x95e962a7 -[NSApplication run] + 917 31 AppKit 0x95e8e2d9 NSApplicationMain + 574 32 ??? 0x0257d17b 0x0 + 39309691 33 ??? 0x0257cf7b 0x0 + 39309179 34 ??? 0x0178a9cf 0x0 + 24685007 35 ??? 0x004d06c8 0x0 + 5048008 36 ??? 0x004d0437 0x0 + 5047351 37 ??? 0x004d058c 0x0 + 5047692 38 testmm 0x0000fd70 mono_jit_runtime_invoke + 1339 39 testmm 0x001de701 mono_runtime_invoke + 138 40 testmm 0x001e08ac mono_runtime_exec_main + 669 41 testmm 0x001dfc96 mono_runtime_run_main + 814 42 testmm 0x0009c762 mono_jit_exec + 200 43 testmm 0x0009c99c main_thread_handler + 558 44 testmm 0x0009ecd3 mono_main + 7577 45 testmm 0x00003a95 mono_main_with_options + 539 46 testmm 0x00003b1c main + 49 47 testmm 0x0000384e start + 54 Debug info from gdb: /tmp/mono-gdb-commands.gsuCuh:1: Error in sourced command file: unable to debug self ================================================================= 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. ================================================================= -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
