Bug 52345

Summary: Process has exited, so the requested information is not available
Product: [Mono] Runtime Reporter: Rodrigo Kumpera <kumpera>
Component: InteropAssignee: Ludovic Henry <ludovic>
Severity: normal CC: alan, alexc, jeremie.laval, masafa, mono-bugs+mono, mono-bugs+monodevelop, mono-bugs+runtime, sebastien, vinicius.jarina
Priority: High    
Version: master   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: 2017-02 Is this bug a regression?: ---
Last known good build:

Description Rodrigo Kumpera 2017-02-07 00:02:02 UTC
This is from testing Xs with master mono.

Build: https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=4284&host_id=387&revision_id=851566

This issue:

1) KillCSProxy (MonoTouch.Design.Client.ServerProcessConnectionTests.KillCSProxy)
   System.InvalidOperationException : Process has exited, so the requested information is not available.
  at System.Diagnostics.Process.get_ProcessName () [0x0002d] in /private/tmp/source-mono-master/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System/System.Diagnostics/Process.cs:336 

On the following steps:


One of the tests ends with: 

2017-01-26 19:41:23.643 mono64[10788:26506901] 
Unhandled Exception:
System.Exception: Failed to marshal the Objective-C object 0x7f934862d5d0 (type: Xamarin_Designer_Mac_DesignerDragOperationMac_MacDragImage_LayerScaleTransitionDelegate). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance (because the type 'Xamarin.Designer.Mac.DesignerDragOperationMac+MacDragImage+LayerScaleTransitionDelegate' does not have a constructor that takes one IntPtr argument).
  at ObjCRuntime.Runtime.MissingCtor (System.IntPtr ptr, System.IntPtr klass, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution resolution) [0x0006e] in <fc5e1fa5f40e47b7ab6a305f19513423>:0 
  at ObjCRuntime.Runtime.ConstructNSObject[T] (System.IntPtr ptr, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) [0x0002c] in <fc5e1fa5f40e47b7ab6a305f19513423>:0 
  at ObjCRuntime.Runtime.ConstructNSObject (System.IntPtr ptr, System.IntPtr klass, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) [0x00015] in <fc5e1fa5f40e47b7ab6a305f19513423>:0 
  at ObjCRuntime.Runtime.GetNSObject (System.IntPtr ptr, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution, System.Boolean evenInFinalizerQueue) [0x00034] in <fc5e1fa5f40e47b7ab6a305f19513423>:0 
  at Registrar.DynamicRegistrar.GetMethodDescriptionAndObject (System.Type type, System.IntPtr selector, System.IntPtr obj, System.IntPtr& mthis) [0x00068] in <fc5e1fa5f40e47b7ab6a305f19513423>:0 
  at ObjCRuntime.Runtime.GetMethodAndObjectForSelector (System.IntPtr klass, System.IntPtr sel, System.IntPtr obj, System.IntPtr& mthis) [0x0000c] in <fc5e1fa5f40e47b7ab6a305f19513423>:0 
  at ObjCRuntime.Runtime.get_method_and_object_for_selector (System.IntPtr cls, System.IntPtr sel, System.IntPtr obj, System.IntPtr& mthis, System.Int32& exception_gchandle) [0x00006] in <fc5e1fa5f40e47b7ab6a305f19513423>:0 
Comment 1 Rodrigo Kumpera 2017-02-07 00:06:33 UTC

Could those failures be due to the XI being used still on mono 4.8?
Comment 2 Sebastien Pouliot 2017-02-07 01:15:32 UTC
I doubt it. 

The code that fails seems to be executing the Mac (not the iOS simulator) and it seems to be related to the designer (not the addin). 

Even the additional stack trace is for the Mac - but looks unrelated to the first failure.

c.c. Alan who should be able to provide more context
Comment 3 Lluis Sanchez 2017-02-07 11:14:38 UTC
Comment 4 Vinicius Jarina 2017-02-07 21:51:27 UTC
Hi Lluis. Not sure why was assigned to iOS Designer :-)

This seem a bug related with the latest Mono (4.9)

And is quite simple to repro.

* Install mono 4.9 (https://bosstoragemirror.blob.core.windows.net/wrench/mono-master/b3/b37bb1736d1c4fcd9cbf8a31416697e263d108cc/MonoFramework-MDK-

* Create a console Application:


* Try to run ;-) 

Comment 5 Ludovic Henry 2017-02-08 22:37:33 UTC
This is fixed with https://github.com/mono/mono/pull/4351