Bug 32 - GTK+ errors running MD master on Lion
Summary: GTK+ errors running MD master on Lion
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Mac OS
: --- critical
Target Milestone: ---
Assignee: Alex Corrado [MSFT]
URL:
: 94 ()
Depends on:
Blocks:
 
Reported: 2011-07-20 19:15 UTC by Mikayla Hutchinson [MSFT]
Modified: 2011-08-03 15:55 UTC (History)
4 users (show)

Tags: lion
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2011-07-20 19:15:57 UTC
There are many of the following:
Jul 20 23:11:56 saturn.local mono[5500] <Error>: clip: empty path.

And a few of the following. Not sure if it's responsible for crashes or not.


2011-07-20 23:11:56.412 mono[5500:707] *** Assertion failure in -[GdkQuartzWindow _setFrameworkScaleFactor:], /SourceCache/AppKit/AppKit-1138/AppKit.subproj/NSWindow.m:18354
2011-07-20 23:11:56.412 mono[5500:707] An uncaught exception was raised
2011-07-20 23:11:56.412 mono[5500:707] _setFrameworkScaleFactor called with non-nil _borderView
2011-07-20 23:11:56.415 mono[5500:707] (
	0   CoreFoundation                      0x99de7e77 __raiseError + 231
	1   libobjc.A.dylib                     0x95dde149 objc_exception_throw + 155
	2   CoreFoundation                      0x99d4fe89 +[NSException raise:format:arguments:] + 137
	3   Foundation                          0x94cb892b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
	4   AppKit                              0x989dea65 -[NSWindow(NSWindow_Scale) _setFrameworkScaleFactor:] + 184
	5   AppKit                              0x989de9a7 -[NSWindow(NSWindow_Scale) _setScaleFactor:] + 44
	6   AppKit                              0x989de31d -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 437
	7   AppKit                              0x989dd8bc -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1054
	8   AppKit                              0x989dd432 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 70
	9   libgdk-quartz-2.0.0.dylib           0x03d3ca4d gdk_window_set_decorations + 381
	10  libgtk-quartz-2.0.0.dylib           0x04a2c943 gtk_window_realize + 1283
	11  libgobject-2.0.0.dylib              0x03788e79 g_closure_invoke + 329
	12  libgobject-2.0.0.dylib              0x03798c42 signal_emit_unlocked_R + 866
	13  libgobject-2.0.0.dylib              0x0379a621 g_signal_emit_valist + 1921
	14  libgobject-2.0.0.dylib              0x0379a929 g_signal_emit + 41
	15  libgtk-quartz-2.0.0.dylib           0x04a1bb13 gtk_widget_realize + 179
	16  libgtk-quartz-2.0.0.dylib           0x04a2c3c2 gtk_window_show + 402
	17  libgobject-2.0.0.dylib              0x03788e79 g_closure_invoke + 329
	18  libgobject-2.0.0.dylib              0x03798c42 signal_emit_unlocked_R + 866
	19  libgobject-2.0.0.dylib              0x0379a621 g_signal_emit_valist + 1921
	20  libgobject-2.0.0.dylib              0x0379a929 g_signal_emit + 41
	21  libgtk-quartz-2.0.0.dylib           0x04a1cc2a gtk_widget_show + 154
	22  libgtk-quartz-2.0.0.dylib           0x04a2cde9 gtk_window_present + 25
	23  ???                                 0x17015a0a 0x0 + 385964554
	24  ???                                 0x170159ce 0x0 + 385964494
	25  ???                                 0x1701574e 0x0 + 385963854
	26  ???                                 0x17015643 0x0 + 385963587
	27  ???                                 0x07bb034c 0x0 + 129696588
	28  HIToolbox                           0x9b817e54 _Z22_InvokeEventHandlerUPPP25OpaqueEventHandlerCallRefP14OpaqueEventRefPvPFlS0_S2_S3_E + 36
	29  HIToolbox                           0x9b69382b _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1602
	30  HIToolbox                           0x9b692ca8 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 482
	31  HIToolbox                           0x9b692ac0 SendEventToEventTargetWithOptions + 75
	32  HIToolbox                           0x9b6a871e _ZL29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 3152
	33  HIToolbox                           0x9b693ce6 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 2813
	34  HIToolbox                           0x9b692ca8 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 482
	35  HIToolbox                           0x9b6a7ac9 SendEventToEventTarget + 76
	36  HIToolbox                           0x9b820102 _ZL20AEPredispatchHandlerPK6AEDescPS_l + 444
	37  AE                                  0x9c514f1d _Z20aeDispatchAppleEventPK6AEDescPS_mPh + 202
	38  AE                                  0x9c4fea4b _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 43
	39  AE                                  0x9c4fe938 aeProcessAppleEvent + 253
	40  HIToolbox                           0x9b69cf72 AEProcessAppleEvent + 103
	41  AppKit                              0x98859b5b _DPSNextEvent + 1301
	42  AppKit                              0x98859159 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
	43  libgdk-quartz-2.0.0.dylib           0x03d30957 poll_func + 135
	44  libglib-2.0.0.dylib                 0x03c30ebf g_main_context_iterate + 799
	45  libglib-2.0.0.dylib                 0x03c31327 g_main_loop_run + 455
	46  libgtk-quartz-2.0.0.dylib           0x048e5321 gtk_main + 177
	47  ???                                 0x0e8050b6 0x0 + 243290294
	48  ???                                 0x0e80507e 0x0 + 243290238
	49  ???                                 0x0e80505e 0x0 + 243290206
	50  ???                                 0x0061f3b0 0x0 + 6419376
	51  ???                                 0x00610e1c 0x0 + 6360604
	52  ???                                 0x00611084 0x0 + 6361220
	53  mono                                0x0000f5b4 mono_jit_runtime_invoke + 1380
	54  mono                                0x001fdae5 mono_runtime_invoke + 137
	55  mono                                0x0020036f mono_runtime_exec_main + 593
	56  mono                                0x001ff6b5 mono_runtime_run_main + 851
	57  mono                                0x000a844a mono_jit_exec + 200
	58  mono                                0x000a8681 main_thread_handler + 555
	59  mono                                0x000aa786 mono_main + 6979
	60  mono                                0x00001e26 mono_main_with_options + 536
	61  mono                                0x00001e85 main + 49
	62  mono                                0x00001bd1 start + 53
	63  ???                                 0x00000002 0x0 + 2
Comment 1 Mikayla Hutchinson [MSFT] 2011-07-20 19:18:28 UTC
Ok, the second can be triggered by clicking on the new feedback button and immediately causes a hard crash.
Comment 2 Mikayla Hutchinson [MSFT] 2011-07-21 06:14:53 UTC
This is triggered caused by undecorated toplevel windows.

Here are some of the affected windows (my search didn't find those where the undecorated state is set in stetic):

saturn:monodevelop michael$ grep -r "Decorated = false" . | cut -d ':' -f 1 | xargs grep Toplevel | cut -d ':' -f 1 | uniq
./main/src/addins/MonoDevelop.GtkCore/libstetic/editor/Accelerator.cs
./main/src/addins/MonoDevelop.GtkCore/libsteticui/WidgetEditSession.cs
./main/src/addins/MonoDevelop.GtkCore2/libstetic/editor/Accelerator.cs
./main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/DebugValueWindow.cs
./main/src/core/Mono.Texteditor/Mono.TextEditor/CodeSegmentEditorWindow.cs
./main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/PlaceholderWindow.cs
./main/src/core/MonoDevelop.Ide/MonoDevelop.Components.DockToolbars/FloatingDock.cs
./main/src/core/MonoDevelop.Ide/MonoDevelop.Components.DockToolbars/PlaceholderWindow.cs
./main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DocumentSwitcher.cs
./main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/FeedbackDialog.cs
Comment 3 Mikayla Hutchinson [MSFT] 2011-07-21 07:37:34 UTC
Looking at 
http://git.gnome.org/browse/gtk+/tree/gdk/quartz/gdkwindow-quartz.c?h=gtk-2-24#n2652
I think the problem is that it's trying to re-init an existing window.
Comment 4 Mikayla Hutchinson [MSFT] 2011-07-21 15:42:49 UTC
Fixed and submitted upstream: https://bugzilla.gnome.org/show_bug.cgi?id=655074

Now we need a new Mono package.
Comment 5 Mikayla Hutchinson [MSFT] 2011-07-28 14:06:20 UTC
*** Bug 94 has been marked as a duplicate of this bug. ***
Comment 6 Alex Corrado [MSFT] 2011-08-03 15:55:43 UTC
Fixed in mono 2.10.3