locked
Visual Studio 2012 / Win8 / Xaml Designer keeps crashing / XdesProc.exe

    Question

  • Hello,

    Yet another instance of the VS 2012 Xaml designer crashing. Seems to be a one trick pony !

    Win8 Pro build 9200

    Vs2012 premium RTM release

    XAML app. crashes in desing with XdesProc is not responding

    Here's some info

    B...

    #0x0d900012: I 0x0d900001 -> 0x0dac0006 [O=0d900012] : Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteEventObject`1.AddCallback@8555 (Queued, Dequeued, Invoking)
    #0x0d90000f: I 0x0d900001 -> 0x0dac0006 [O=0d90000f] : Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteUIElement.CreateContent@8571 (Async, Dequeued, Invoking)
    *0x0d900001: W 0x0d900001 -> 0x0dac0006 [O=0d900001] : Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerCommandTarget.GetCommandState@8599 (Sync, Waiting)

    ~0x0dac0017: W 0x0dac0006 <- 0x0d900001 [O=0d900012] : Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteEventObject`1+CallbackContainer.AddCallback@938 (Sync, Posted, Waiting)
    ~0x0dac0022: W 0x0dac0006 <- 0x0d900001 [O=0d90000f] : Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteUIElement.CreateContent@940 (Async, Posted, Waiting)
    *0x0dac0006: I 0x0dac0006 -> 0x0dac0006 [O=0dac0006] : System.Windows.Threading.DispatcherSynchronizationContext.Wait@0 (None)


    Process 0d90

     Thread 0d900012

      NativePipe.ReadFile
      IpcPort.Read
      PipeStream.Read
      SocketHandler.ReadFromSocket
      SocketHandler.Read
      SocketHandler.ReadAndMatchFourBytes
      TcpSocketHandler.ReadAndMatchPreamble
      TcpSocketHandler.ReadVersionAndOperation
      IpcClientHandler.ReadHeaders
      IpcClientTransportSink.ProcessMessage
      BinaryClientFormatterSink.SyncProcessMessage
      RemotingProxy.CallProcessMessage
      RemotingProxy.InternalInvoke
      RemotingProxy.Invoke
      RealProxy.PrivateInvoke
      IRemoteEventObject`1.AddCallback
      LocalEvent`3.<add_Event>b__14
      <>c__DisplayClass1`1.<MarshalOut>b__0
      Call.InvokeWorker
      Call.Invoke
      STAMarshaler.InvokeCall
      STAMarshaler.ProcessQueue
      STAMarshaler.ProcessOutboundQueue
      QueueUserWorkItemCallback.WaitCallback_Context
      ExecutionContext.RunInternal
      ExecutionContext.Run
      QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem
      ThreadPoolWorkQueue.Dispatch
      _ThreadPoolWaitCallback.PerformWaitCallback

     Thread 0d90000f

      NativePipe.ReadFile
      IpcPort.Read
      PipeStream.Read
      SocketHandler.ReadFromSocket
      SocketHandler.Read
      SocketHandler.ReadAndMatchFourBytes
      TcpSocketHandler.ReadAndMatchPreamble
      TcpSocketHandler.ReadVersionAndOperation
      IpcClientHandler.ReadHeaders
      IpcClientTransportSink.ProcessMessage
      BinaryClientFormatterSink.SyncProcessMessage
      RemotingProxy.CallProcessMessage
      RemotingProxy.InternalInvoke
      RemotingProxy.Invoke
      RealProxy.PrivateInvoke
      IRemoteUIElement.CreateContent
      <>c__DisplayClass2c.<WndProc>b__29
      <>c__DisplayClass1`1.<MarshalOut>b__0
      Call.InvokeWorker
      Call.Invoke
      STAMarshaler.InvokeCall
      STAMarshaler.ProcessQueue
      STAMarshaler.ProcessOutboundQueue
      QueueUserWorkItemCallback.WaitCallback_Context
      ExecutionContext.RunInternal
      ExecutionContext.Run
      QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem
      ThreadPoolWorkQueue.Dispatch
      _ThreadPoolWaitCallback.PerformWaitCallback

     Thread 0d900001

      NativeMethods.MsgWaitForMultipleObjects
      BlockingCall.PumpingWaitAny
      BlockingCall.Wait
      STAMarshaler.WaitForCompletion
      STAMarshaler.MarshalOutSynchronous
      STAMarshaler.MarshalOut
      ThreadMarshaler.MarshalOut
      ThreadMarshaler.MarshalOut
      LocalDesignerCommandTarget.Microsoft.Expression.DesignHost.IDesignerCommandTarget.GetCommandState
      WrappedDesignerCommandTarget.GetCommandState
      DesignerPane.QueryStatus
      DesignerPane.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus
      EditorTab.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus
      DocumentObjectSite.QueryStatus
      WindowFrame.QueryStatus

    Process 0dac

     Thread 0dac0017

      NativeMethods.MsgWaitForMultipleObjects
      BlockingCall.PumpingWaitAny
      BlockingCall.Wait
      STAMarshaler.WaitForCompletion
      STAMarshaler.MarshalIn
      ThreadMarshaler.MarshalIn
      CallbackContainer.AddCallback
      RemoteEventObject`1.AddCallback
      RemoteEventObject`1.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteEventObject<TCallback>.AddCallback
      StackBuilderSink._PrivateProcessMessage
      StackBuilderSink.SyncProcessMessage
      ServerObjectTerminatorSink.SyncProcessMessage
      LeaseSink.SyncProcessMessage
      ServerContextTerminatorSink.SyncProcessMessage
      CrossContextChannel.SyncProcessMessageCallback
      ChannelServices.DispatchMessage
      DispatchChannelSink.ProcessMessage
      BinaryServerFormatterSink.ProcessMessage
      IpcServerTransportSink.ServiceRequest
      SocketHandler.ProcessRequestNow
      RequestQueue.ProcessNextRequest
      SocketHandler.BeginReadMessageCallback
      IpcPort.AsyncFSCallback
      _IOCompletionCallback.PerformIOCompletionCallback

     Thread 0dac0022

      NativeMethods.MsgWaitForMultipleObjects
      BlockingCall.PumpingWaitAny
      BlockingCall.Wait
      STAMarshaler.WaitForCompletion
      STAMarshaler.MarshalIn
      ThreadMarshaler.MarshalIn
      ThreadMarshaler.MarshalIn
      RemoteUIElement.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteUIElement.CreateContent
      StackBuilderSink._PrivateProcessMessage
      StackBuilderSink.SyncProcessMessage
      ServerObjectTerminatorSink.SyncProcessMessage
      LeaseSink.SyncProcessMessage
      ServerContextTerminatorSink.SyncProcessMessage
      CrossContextChannel.SyncProcessMessageCallback
      ChannelServices.DispatchMessage
      DispatchChannelSink.ProcessMessage
      BinaryServerFormatterSink.ProcessMessage
      IpcServerTransportSink.ServiceRequest
      SocketHandler.ProcessRequestNow
      RequestQueue.ProcessNextRequest
      SocketHandler.BeginReadMessageCallback
      IpcPort.AsyncFSCallback
      _IOCompletionCallback.PerformIOCompletionCallback

     Thread 0dac0006

      SynchronizationContext.WaitHelper
      DispatcherSynchronizationContext.Wait
      SynchronizationContext.InvokeWaitMethodHelper
      Monitor.ObjWait
      Monitor.Wait
      Monitor.Wait
      ManualResetEventSlim.Wait
      Task.SpinThenBlockingWait
      Task.InternalWait
      Task`1.GetResultCore
      Task`1.get_Result
      <user code>
      RuntimeMethodHandle.InvokeMethod
      RuntimeConstructorInfo.Invoke
      <user code>
      RuntimeMethodHandle.InvokeMethod
      RuntimeMethodInfo.UnsafeInvokeInternal
      Delegate.DynamicInvokeImpl
      <user code>
      <user code>
      <user code>
      <user code>
      RuntimeMethodHandle.InvokeMethod
      RuntimeConstructorInfo.Invoke
      InstanceBuilderOperations.InstantiateType
      ClrObjectInstanceBuilder.InstantiateTargetType
      ClrObjectInstanceBuilder.Instantiate
      ViewNodeManager.CreateInstance
      ViewNodeManager.Instantiate
      ClrObjectInstanceBuilder.UpdatePropertyOrChildValue
      ClrObjectInstanceBuilder.UpdateProperty
      ClrObjectInstanceBuilder.InstantiateProperties
      ClrObjectInstanceBuilder.Initialize
      DictionaryEntryInstanceBuilder.Initialize
      ViewNodeManager.InitializeInstance
      ViewNodeManager.Instantiate
      DictionaryInstanceBuilder.InstantiateChild
      ResourceDictionaryInstanceBuilder.InstantiateChild
      DictionaryInstanceBuilder.Initialize
      ViewNodeManager.InitializeInstance
      ViewNodeManager.Instantiate
      InstanceBuilderOperations.UpdatePropertyWithoutApply
      WindowsUIXamlApplicationInstanceBuilder.UpdateProperty
      ClrObjectInstanceBuilder.InstantiateProperties
      ClrObjectInstanceBuilder.Initialize
      ViewNodeManager.InitializeInstance
      ViewNodeManager.Instantiate
      ViewNodeManager.UpdateInternal
      ViewNodeManager.UpdateCore
      ViewNodeManager.UpdateInstances
      CrossDocumentUpdateContext.GetViewContext
      InstanceBuilderContextBase.GetViewContext
      XamlSceneView.GetResourceDictionaryNode
      XamlSceneView.GetUpdatedApplicationResourceDictionaries
      WindowsUIXamlSceneView.EnsureApplicationResourceDictionaryIsCurrent
      WindowsUIXamlSceneView.UpdateInternal
      XamlSceneView.ProcessPostponedUpdateInternal
      XamlSceneView.ProcessPostponedUpdate
      XamlSceneView.EnsureActiveViewUpdated
      WindowsUIXamlSceneView.EnsureActiveViewUpdated
      WindowsUIXamlSceneView.ArtboardLoaded
      RoutedEventHandlerInfo.InvokeHandler
      EventRoute.InvokeHandlersImpl
      UIElement.RaiseEventImpl
      UIElement.RaiseEvent
      BroadcastEventHelper.BroadcastEvent
      BroadcastEventHelper.BroadcastLoadedEvent
      LoadedOrUnloadedOperation.DoWork
      MediaContext.FireLoadedPendingCallbacks
      MediaContext.FireInvokeOnRenderCallbacks
      MediaContext.RenderMessageHandlerCore
      MediaContext.RenderMessageHandler
      ExceptionWrapper.InternalRealCall
      ExceptionFilterHelper.TryCatchWhen
      DispatcherOperation.InvokeImpl
      DispatcherOperation.InvokeInSecurityContext
      ExecutionContext.RunInternal
      ExecutionContext.Run
      ExecutionContext.Run
      DispatcherOperation.Invoke
      Dispatcher.ProcessQueue
      Dispatcher.WndProcHook
      HwndWrapper.WndProc
      HwndSubclass.DispatcherCallbackOperation
      ExceptionWrapper.InternalRealCall
      ExceptionFilterHelper.TryCatchWhen
      Dispatcher.LegacyInvokeImpl
      HwndSubclass.SubclassWndProc
      UnsafeNativeMethods.DispatchMessage
      Dispatcher.PushFrameImpl
      Dispatcher.PushFrame
      Dispatcher.Run
      Application.RunDispatcher
      Application.RunInternal
      Application.Run
      Application.Run
      IsolationProcess.RunApplication
      <>c__DisplayClass7.<applicationView_Activated>b__6
      ThreadHelper.ThreadStart_Context
      ExecutionContext.RunInternal
      ExecutionContext.Run
      ExecutionContext.Run
      ThreadHelper.ThreadStart

    Wednesday, November 07, 2012 10:09 AM

All replies

  • Hello,

    I think I am getting somewhere with this.

    I have been through a lot of the fixes on the web to resolve this, but I think I have identified a possible cause.

    I am using a simple IOC container ( in this case MVVM Light ) bit I think this is more to do with IOC than this specfic library...

    I notice that if i am in desogn mode attemting to inject some design time data into the ViewModelLocator class that the Xaml editor fails ?

    If i remove it and recomplie it works, I have been able to reprduce this

    B....

    Wednesday, November 07, 2012 11:47 AM
  • Hi Bruce,

    I can take a look at this more, if you could send me your repro. Please feel free to get in touch with me offline at unnir at Microsoft dot com.

    Thanks!

    Unni


    Unni Ravindranathan, Program Manager, Microsoft Expression This posting is provided "AS IS" with no warranties, and confers no rights.

    Friday, November 09, 2012 6:57 AM
  • I keep getting the same error in both VS and Blend

    I believe VS now uses Blend which explains a lot.

    While I'm the first to appreciate the complexity of Blend and the amazing stuff it does, I do have to say it's consistently been the flakiest of MS programs.   If I'm not uploading an error to Microsoft from Blend I'm restating it because it's suddenly lost some functionality or it's been loading a page for 25 minutes or...  well you get the idea.

    I was hoping the RTM of Blend 2012 would be an improvement on Blend 4 or Blend for Silverlight 5 but it's worse - substantially worse.  I can crash this version without trying at all.

    Sunday, November 11, 2012 12:54 AM