locked
Blend 4 crashes again! RRS feed

  • Question

  • I cant seem to build my project at all in Blend anymore, VS2010 works just fine, but when I try to build it with Blend I get the following error:

    Im so sick of Blend crashing all the time, I cant do my work which is time critical when it crashes like this all the time. Please help.

    Microsoft® Expression® crash report:

    Date: 2011-01-27 14-12-26


    Application Version: 4.0.1000.1000
    Operating System Version: Microsoft Windows NT 6.1.7600.0
    Common Language Runtime Version: 4.0.30319.1

    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Expression.DesignModel.Markup.XamlParser.GetPropertyValueTextContentType(IType valueType)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, Predicate`1 propertyFilter)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseCompositeElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseElementContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, DocumentNode& node)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, IProperty childProperty, TypeConverter textTypeConverter, ITypeId textType, PropertyHandling propertyHandling)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement, Predicate`1 propertyFilter)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.AddPropertiesAndChildren(XamlParserContext parserContext, DocumentCompositeNodeReference nodeReference, XmlElementReference xmlElementReference, XmlElement xmlElement)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseCompositeElement(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseElementContent(XamlParserContext parserContext, IDocumentNodeReference nodeReference, IType typeId, XmlElementReference xmlElementReference, XmlElement xmlElement)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseRootElement(XamlParserContext parserContext, XmlElementReference xmlElementReference, XmlElement xmlElement)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.Parse(XamlParserContext parserContext, XmlDocumentReference xmlDocumentReference, XmlDocument xmlDocument)
       at Microsoft.Expression.DesignModel.Markup.XamlParser.ParseInternal(XamlParserContext parserContext)
       at Microsoft.Expression.DesignModel.Markup.XamlDocument..ctor(IDocumentContext documentContext, ITypeId expectedRootType, ITextBuffer textBuffer, Encoding documentEncoding, IXamlSerializerFilter defaultXamlSerializerFilter)
       at Microsoft.Expression.DesignSurface.Documents.SceneXamlDocument..ctor(IDocumentContext documentContext, IUndoService undoService, ITypeId expectedRootType, ITextBuffer textBuffer, Encoding documentEncoding)
       at Microsoft.Expression.DesignSurface.Documents.XamlDocumentType.CreateDocument(IProject project, IProjectItem projectItem, ITextBuffer textBuffer, Boolean isReadOnly, Encoding encoding)
       at Microsoft.Expression.DesignSurface.Documents.XamlDocumentType.CreateDocument(IProject project, IProjectItem projectItem, String contents, Boolean isReadOnly, Encoding encoding)
       at Microsoft.Expression.DesignSurface.Documents.XamlDocumentType.OpenDocument(IProjectItem projectItem, IProject project, Boolean isReadOnly)
       at Microsoft.Expression.Project.ProjectItem.OpenDocument(Boolean isReadOnly, Boolean suppressUI)
       at Microsoft.Expression.Project.ProjectItemBase.OpenDocument(Boolean isReadOnly)
       at Microsoft.Expression.DesignSurface.Documents.ProjectXamlContext.OpenProjectDocument(IProjectItem projectItem)
       at Microsoft.Expression.DesignSurface.Documents.ProjectXamlContext.OpenDocument(String path)
       at Microsoft.Expression.DesignSurface.DocumentProcessors.DocumentProcessor.Work()
       at Microsoft.Expression.Framework.AsyncProcess.DoWork(Object sender, DoWorkEventArgs e)
       at Microsoft.Expression.DesignSurface.DocumentProcessors.SynchronousAsyncMechanism.Begin()
       at Microsoft.Expression.Framework.AsyncProcess.Begin()
       at Microsoft.Expression.DesignSurface.DocumentProcessors.StateNameReferenceVerifier.Verify(DocumentNode node)
       at Microsoft.Expression.DesignSurface.DocumentProcessors.ReferenceVerifierProcessor.ProcessDocument(SceneDocument document)
       at Microsoft.Expression.DesignSurface.DocumentProcessors.DocumentProcessor.Work()
       at Microsoft.Expression.Framework.AsyncProcess.DoWork(Object sender, DoWorkEventArgs e)
       at Microsoft.Expression.Framework.CurrentDispatcherAsyncMechanism.OnDoWork(Object argument)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at Microsoft.Expression.Framework.ExpressionApplication.RunApplication()
       at Microsoft.Expression.Application.Main(String[] args)

    Thursday, January 27, 2011 3:21 AM

All replies

  • nothing? no one know anything here?
    Sunday, January 30, 2011 10:03 PM
  • Hi,

            I will follow-up on stack trace, also I would like to get more information for the scenarios that causes Blend to crash. Can you pelase send me more details at navits at microsoft dot com?

    --Navit Saxena

    Monday, January 31, 2011 7:31 PM
  • Hi Mark,

                  We believe this issue has been fixed in Blend 4 SP1, can you please try installing this and let us know if this still repros for you?

    Blend 4 SP1 - http://www.microsoft.com/expression/service-packs/Blend.aspx

    --Navit Saxena

    • Proposed as answer by navits - MSFT Monday, January 31, 2011 10:35 PM
    Monday, January 31, 2011 10:35 PM
  • I keep getting this error:

     

    Microsoft Expression Blend Service Pack 1 cannot be installed because the program to be upgraded either is missing or is the wrong version. Please verify that you have the correct version of the program installed on your computer.

     

    Any ideas why this might be? Perhaps I have SP1 already? How can I check?

    Tuesday, February 1, 2011 10:03 PM
  • Also to get the crashed all I do is build, then I get compile errors which I dont get in VS2010, and then when I click the "results" pane, it crashes.

    The real strange thing here is that the compile errors are to do with a tiny custom control I have which has a public bool property IsCorner. Blend cannot seem to see it, but VS2010 has no trouble with it...

    Tuesday, February 1, 2011 10:06 PM
  • Although it now seems that I dont necessarily need to click on the results pane, it just crashes after a build.

     

    Sometimes the error log window doesnt display either, why would this be if I have the  /exceptionlog flag on the exe?

    Tuesday, February 1, 2011 10:37 PM
  • Hey Mark,

                    Is it possible to share a repro for this issue? I can try veirfying this on Blend 4 SPI bits and investigate whats going on? You can send details to me at navits at microsoft dot com. If this is happening in SP1 bits too, we would like to investigate this on priority.

    --Navit Saxena

    Friday, February 11, 2011 6:38 AM
  • Do you know Chuck Hayes from MS? I shared a repro project with him and he could get it to crash too. I told him to send on the project to the Blend team, so you can contact him if you like, it would be easier that me creating a project to share with you.
    Sunday, February 13, 2011 9:47 PM
  • Hi!

    Version 4.0.1000.1000 - it's Blend Preview for Silverlight 5, is't it? SP1 not applicable, yes?

    I catch a crash when trying to open SL5 project in Blend Preview for SL5 too. But error is different.

    In VS 2010 SP1 all ok - no errors, opening and compiling this project fine.

     

    Application Version: 4.0.1000.1000
    Operating System Version: Microsoft Windows NT 6.1.7601 Service Pack 1
    Common Language Runtime Version: 4.0.30319.235

    System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.  Check InnerException for exception details. ---> System.Net.WebException: An exception occurred during a WebClient request. ---> System.InvalidOperationException: This operation is not supported for a relative URI.
       at System.Uri.get_AbsoluteUri()
       at System.Net.WebRequest.Create(Uri requestUri)
       at System.Net.WebClient.GetWebRequest(Uri address)
       at System.Net.WebClient.OpenReadAsync(Uri address, Object userToken)
       --- End of inner exception stack trace ---
       --- End of inner exception stack trace ---
       at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
       at System.Net.OpenReadCompletedEventArgs.get_Result()
       at ImageTools.ExtendedImage.webClient_OpenReadCompleted(Object sender, OpenReadCompletedEventArgs e) in D:\ImageTools\src\ImageTools\ImageTools\ExtendedImage.cs:line 437
       at System.Net.WebClient.OnOpenReadCompleted(OpenReadCompletedEventArgs e)
       at System.Net.WebClient.OpenReadOperationCompleted(Object arg)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()



    • Edited by Jah1980 Sunday, January 15, 2012 11:06 AM
    Sunday, January 15, 2012 10:54 AM
  • It looks like that error is caused by a relative URI. Relative URIs can get tricky; for example, in Silverlight, a relative URI refers to the relative path of application itself, not relative based on the web server where it's deployed. It looks like the exception is getting thrown inside your ExtendedImage class. Are you able to see what URI it's attempting to retrieve? That might give you a hint as to the source of the issue.

    Monday, January 16, 2012 1:52 PM
  • 2Brian - thanks, you absolutly right, bug was in ExtendedImage (it's not my lib, get last source from author and fix it). But why i don't see this exception in VS2010? - it work normal with this class and project.
    Tuesday, January 17, 2012 7:00 AM