Bug 14778 - Constant crashes on designer, Gtk+ related?
Summary: Constant crashes on designer, Gtk+ related?
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-16 11:47 UTC by Miguel de Icaza [MSFT]
Modified: 2013-09-16 12:44 UTC (History)
3 users (show)

Tags:
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 Miguel de Icaza [MSFT] 2013-09-16 11:47:45 UTC
This one is trivial to reproduce with Mono 3.2.2

It happens on Thread 15

Process:         XamarinStudio [1622]
Path:            /Applications/Xamarin Studio.app/Contents/MacOS/XamarinStudio
Identifier:      com.xamarin.monodevelop
Version:         4.1.11.11 (4.1.11.11)
Code Type:       X86 (Native)
Parent Process:  launchd [147]
User ID:         501

Date/Time:       2013-09-16 11:41:35.473 -0400
OS Version:      Mac OS X 10.8.4 (12E55)
Report Version:  10

Interval Since Last Report:          321461 sec
Crashes Since Last Report:           17
Per-App Interval Since Last Report:  753 sec
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      E80A3644-2B57-9208-54CD-0768C63912D1

Crashed Thread:  15

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000e3bae3b1

VM Regions Near 0xe3bae3b1:
    CG backing stores      00000000c62d9000-00000000c631f000 [  280K] rw-/rw- SM=SHM  
--> 
    Submap                 00000000ffff0000-00000000ffff1000          r--/r-- process-only submap

Application Specific Information:
abort() called


Thread 15 Crashed:
0   libsystem_kernel.dylib        	0x9001ba6a __pthread_kill + 10
1   libsystem_c.dylib             	0x97e1ab2f pthread_kill + 101
2   libsystem_c.dylib             	0x97e514ec abort + 168
3   libmonosgen-2.0.dylib         	0x010a7390 mono_handle_native_sigsegv + 592
4   libmonosgen-2.0.dylib         	0x010f6cf5 mono_arch_handle_altstack_exception + 149
5   libmonosgen-2.0.dylib         	0x010035f1 mono_sigsegv_signal_handler + 369
6   libsystem_c.dylib             	0x97e058cb _sigtramp + 43
7   ???                           	0xffffffff 0 + 4294967295
8   libmonosgen-2.0.dylib         	0x01003480 mono_sigill_signal_handler + 48
9   com.apple.Foundation          	0x9594f0b3 _NSAddExceptionHandlerForLock + 33
10  com.apple.AppKit              	0x942c3aac _NSAppKitLock + 78
11  com.apple.AppKit              	0x942ca97a -[NSWindow parentWindow] + 49
12  com.apple.AppKit              	0x94456b5a -[NSWindow _removeFromParentIfPossible] + 57
13  com.apple.AppKit              	0x9437cb8a -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 985
14  com.apple.AppKit              	0x9437c734 -[NSWindow orderWindow:relativeTo:] + 127
15  com.apple.AppKit              	0x944568b4 -[NSWindow orderOut:] + 49
16  libgdk-quartz-2.0.0.dylib     	0x05f7e586 -[GdkQuartzWindow hide] + 150
17  libgdk-quartz-2.0.0.dylib     	0x05f9a6a1 gdk_window_quartz_hide + 289
18  libgdk-quartz-2.0.0.dylib     	0x05f71442 gdk_window_hide + 530
19  libgdk-quartz-2.0.0.dylib     	0x05f9a6f7 gdk_window_quartz_withdraw + 23
20  libgdk-quartz-2.0.0.dylib     	0x05f71642 gdk_window_withdraw + 274
21  libgtk-quartz-2.0.0.dylib     	0x07d734d5 gtk_window_unmap + 101
22  libgobject-2.0.0.dylib        	0x088aa183 g_cclosure_marshal_VOID__VOIDv + 163
23  libgobject-2.0.0.dylib        	0x088a725e g_type_class_meta_marshalv + 174
24  libgobject-2.0.0.dylib        	0x088a6c8f _g_closure_invoke_va + 543
25  libgobject-2.0.0.dylib        	0x088c5ea1 g_signal_emit_valist + 1761
26  libgobject-2.0.0.dylib        	0x088c70f1 g_signal_emit + 65
27  libgtk-quartz-2.0.0.dylib     	0x07d56dba gtk_widget_unmap + 266
28  libgtk-quartz-2.0.0.dylib     	0x07d7310f gtk_window_hide + 47
29  libgobject-2.0.0.dylib        	0x088aa183 g_cclosure_marshal_VOID__VOIDv + 163
30  libgobject-2.0.0.dylib        	0x088a725e g_type_class_meta_marshalv + 174
31  libgobject-2.0.0.dylib        	0x088a6c8f _g_closure_invoke_va + 543
32  libgobject-2.0.0.dylib        	0x088c5ea1 g_signal_emit_valist + 1761
33  libgobject-2.0.0.dylib        	0x088c70f1 g_signal_emit + 65
34  libgtk-quartz-2.0.0.dylib     	0x07d567eb gtk_widget_hide + 283
35  libgtk-quartz-2.0.0.dylib     	0x07d630d8 gtk_widget_dispose + 88
36  libgtk-quartz-2.0.0.dylib     	0x07d6e665 gtk_window_dispose + 85
37  libgobject-2.0.0.dylib        	0x088aeb8c g_object_run_dispose + 236
38  libgtk-quartz-2.0.0.dylib     	0x07be1bbb gtk_object_destroy + 235
39  ???                           	0x18b9d21c 0 + 414831132
40  ???                           	0x18b9d1b8 0 + 414831032
41  ???                           	0x18b9d16c 0 + 414830956
42  ???                           	0x13f4fa25 0 + 334821925
43  ???                           	0x13f4f9e5 0 + 334821861
44  ???                           	0x177fa22e 0 + 394240558
45  ???                           	0x115f4468 0 + 291456104
46  ???                           	0x13f4f938 0 + 334821688
47  ???                           	0x13f4f8f0 0 + 334821616
48  ???                           	0x1cfb16c9 0 + 486217417
49  ???                           	0x0e85a683 0 + 243639939
50  ???                           	0x0e85a30c 0 + 243639052
51  ???                           	0x0e859edc 0 + 243637980
52  ???                           	0x0e859e94 0 + 243637908
53  ???                           	0x006d7cc5 0 + 7175365
54  libmonosgen-2.0.dylib         	0x0100d1e5 mono_jit_runtime_invoke + 741
55  libmonosgen-2.0.dylib         	0x011c450e mono_runtime_invoke + 126
56  libmonosgen-2.0.dylib         	0x011c467c mono_runtime_delegate_invoke + 140
57  libmonosgen-2.0.dylib         	0x0119be11 async_invoke_thread + 2161
58  libmonosgen-2.0.dylib         	0x01194bc6 start_wrapper + 470
59  libmonosgen-2.0.dylib         	0x01239f2a thread_start_routine + 154
60  libmonosgen-2.0.dylib         	0x0124a9b1 inner_start_thread + 65
61  libsystem_c.dylib             	0x97e195b7 _pthread_start + 344
62  libsystem_c.dylib             	0x97e03d4e thread_start + 34
Comment 1 Miguel de Icaza [MSFT] 2013-09-16 11:48:03 UTC
About info:
=== Xamarin Studio ===

Version 4.1.11 (build 11)
Installation UUID: f69988af-eb84-438f-88c9-4c5d6beb26a9
Runtime:
	Mono 3.2.2 ((no/a0fc6ba)
	GTK+ 2.24.20 theme: Raleigh
	GTK# (2.12.0.0)
	Package version: 302020000

=== Xamarin.Android ===

Version: 4.8.2 (Business Edition)
Android SDK: /Users/miguel/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1 (API level 7)
		2.2 (API level 8)
		2.3 (API level 10)
		3.1 (API level 12)
		4.0 (API level 14)
Java SDK: /usr
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)

=== Apple Developer Tools ===

Xcode 5.0 (3332.22)
Build 5A1412

=== Xamarin.Mac ===

Xamarin.Mac: 1.6.9

=== Xamarin.iOS ===

Version: 6.9.7.199 (Business Edition)
Hash: cf826ee
Branch: 
Build date: 2013-09-09 17:19:25-0400

=== Build Information ===

Release ID: 401110011
Git revision: c1198700ca35d98ce08471673f73ecbc0fb5175a
Build date: 2013-09-14 20:29:11+0000
Xamarin addins: a1b71d3b67ce75d3917ec3cc0a6a7f9d5014020c

=== Operating System ===

Mac OS X 10.8.4
Darwin dynamic-060.bos.xamarin.com 12.4.0 Darwin Kernel Version 12.4.0
    Wed May  1 17:57:12 PDT 2013
    root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
Comment 2 Alan McGovern 2013-09-16 11:49:01 UTC
How do you trigger it? I'm using that mono release with no issues.
Comment 3 Alan McGovern 2013-09-16 11:50:56 UTC
Actually thread 15 is not the main GUI thread, that's enough info by itself. We have bad multithreading somewhere!
Comment 4 Alan McGovern 2013-09-16 12:37:21 UTC
This was fixed post 4.1.10 but the 4.1.11 release was branched from an unexpected point and so didn't contain the fix. Backporting to the required branches now.
Comment 5 Alan McGovern 2013-09-16 12:44:15 UTC
pj, this is a big enough issue that we might want to consider a new iOS designer alpha in the near future. Every drag/drop from the toolbox or design surface has the potential to cause a crash as we use Gtk from the wrong thread.

The fix was trivial and has been backported to the 4.1.11 and 4.0.13 branches:
https://github.com/xamarin/md-addins/commit/235ffef521aeb358cfa3453ce9b184d9770684e0