Bug 649121 - Toolbox add components hangs MD
Summary: Toolbox add components hangs MD
Status: RESOLVED DUPLICATE of bug 541232
Alias: None
Product: MonoDevelop
Classification: Mono
Component: general (show other bugs)
Version: SVN
Hardware: x86 Mac OS X 10.6
: P5 - None : Major
Target Milestone: ---
Assignee: MD Bugs
QA Contact: MD Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 21:43 UTC by Michael Hutchinson
Modified: 2010-11-16 11:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hutchinson 2010-10-25 21:43:08 UTC
Using the "add" button in the toolbox hangs MD - it's impossible to click on the Cancel dialog. It probably needs to run the dialog on the real mainloop instead of relying on pumping.

It looks like this is happening because the actual scan is failing. Console output shows that the remote scanner processes are crashing and MD is not coping with it. Yes, I know the runtime it's using is old and buggy, but why is it scanning a parallel target runtime I'm not even using? And why does that hang MD?

Also, it pops up an external process in the dock while scanning, not sure why. Is the external process initializing GTK or something?

Stacktrace:

  at (wrapper managed-to-native) System.Diagnostics.Process.Process_free_internal (System.Diagnostics.Process*,intptr) <0x00003>
  at (wrapper managed-to-native) System.Diagnostics.Process.Process_free_internal (System.Diagnostics.Process*,intptr) <0x00003>
  at System.Diagnostics.Process.Dispose (bool) [0x00075] in /Users/michael/Mono/mono-head/mono/mcs/class/System/System.Diagnostics/Process.cs:1616
  at System.Diagnostics.Process.Finalize () [0x00000] in /Users/michael/Mono/mono-head/mono/mcs/class/System/System.Diagnostics/Process.cs:1641
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <IL 0x0001b, 0x0003d>

Native stacktrace:

	0   mono                                0x000c9a69 mono_handle_native_sigsegv + 376
	1   mono                                0x0000f139 mono_sigsegv_signal_handler + 306
	2   libSystem.B.dylib                   0x92a3e1fb _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   mono                                0x0023d66e _wapi_handle_unref + 207
	5   mono                                0x0023e05c CloseHandle + 93
	6   mono                                0x001e0460 ves_icall_System_Diagnostics_Process_Process_free_internal + 17
	7   ???                                 0x012dafb7 0x0 + 19771319
	8   ???                                 0x012daec3 0x0 + 19771075
	9   ???                                 0x012dac3c 0x0 + 19770428
	10  ???                                 0x012dabde 0x0 + 19770334
	11  mono                                0x00167404 mono_gc_run_finalize + 909
	12  mono                                0x0027e628 GC_invoke_finalizers + 161
	13  mono                                0x00136667 mono_gc_invoke_finalizers + 20
	14  mono                                0x00169289 finalizer_thread + 533
	15  mono                                0x00217a6b start_wrapper + 600
	16  mono                                0x002568d2 thread_start_routine + 191
	17  mono                                0x00287fe3 GC_start_routine + 107
	18  libSystem.B.dylib                   0x92a0581d _pthread_start + 345
	19  libSystem.B.dylib                   0x92a056a2 thread_start + 34

Debug info from gdb:

/tmp/mono-gdb-commands.H79QX3: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.
=================================================================

The application was terminated by a signal: SIGIOT
ERROR [2010-10-25 17:24:27Z]: ToolboxItemToolboxLoader: assembly '/Developer/MonoTouch/usr/lib/mono/2.1/System.dll' references unknown runtime version.
ERROR [2010-10-25 17:24:27Z]: [MonoDevelop.DesignerSupport.Toolbox.ExternalLoader] ToolboxItemToolboxLoader: assembly '/Developer/MonoTouch/usr/lib/mono/2.1/System.dll' references unknown runtime version.
Stacktrace:

  at (wrapper managed-to-native) System.Diagnostics.Process.Process_free_internal (System.Diagnostics.Process*,intptr) <0x00003>
  at (wrapper managed-to-native) System.Diagnostics.Process.Process_free_internal (System.Diagnostics.Process*,intptr) <0x00003>
  at System.Diagnostics.Process.Dispose (bool) [0x00075] in /Users/michael/Mono/mono-head/mono/mcs/class/System/System.Diagnostics/Process.cs:1616
  at System.Diagnostics.Process.Finalize () [0x00000] in /Users/michael/Mono/mono-head/mono/mcs/class/System/System.Diagnostics/Process.cs:1641
  at (wrapper runtime-invoke) object.runtime_invoke_virtual_void__this__ (object,intptr,intptr,intptr) <IL 0x0001b, 0x0003d>

Native stacktrace:

	0   mono                                0x000c9a69 mono_handle_native_sigsegv + 376
	1   mono                                0x0000f139 mono_sigsegv_signal_handler + 306
	2   libSystem.B.dylib                   0x92a3e1fb _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   mono                                0x0023d66e _wapi_handle_unref + 207
	5   mono                                0x0023e05c CloseHandle + 93
	6   mono                                0x001e0460 ves_icall_System_Diagnostics_Process_Process_free_internal + 17
	7   ???                                 0x012dafc7 0x0 + 19771335
	8   ???                                 0x012daed3 0x0 + 19771091
	9   ???                                 0x012dac3c 0x0 + 19770428
	10  ???                                 0x012dabde 0x0 + 19770334
	11  mono                                0x00167404 mono_gc_run_finalize + 909
	12  mono                                0x0027e628 GC_invoke_finalizers + 161
	13  mono                                0x00136667 mono_gc_invoke_finalizers + 20
	14  mono                                0x00169289 finalizer_thread + 533
	15  mono                                0x00217a6b start_wrapper + 600
	16  mono                                0x002568d2 thread_start_routine + 191
	17  mono                                0x00287fe3 GC_start_routine + 107
	18  libSystem.B.dylib                   0x92a0581d _pthread_start + 345
	19  libSystem.B.dylib                   0x92a056a2 thread_start + 34

Debug info from gdb:

/tmp/mono-gdb-commands.OCCIiS: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.
=================================================================

The application was terminated by a signal: SIGIOT
^Cmake[1]: *** [runmd] Interrupt
make: *** [run] Interrupt
Comment 1 Lluis Sanchez 2010-11-16 11:20:35 UTC
Dup.

*** This bug has been marked as a duplicate of bug 541232 ***