Answered by:
VSAE and Visual Studio 2017 Fails with a .Net error 1026

Question
-
I've been using VSAE for a long time and 2017 for about 6 months with no issues. Two days ago, whenever I try to open a mpx file, VS hangs for a few seconds then crashes. Non-mpx files are fine. When the crash occurs, I get two errors in event viewer shown at the bottom of this post. Have clean installed both VS and VSAE with no effect. Cleared all user settings from VS and problem still persists
.Net version is 4.7.0362
VS version is 15.8.1
VSAE version is 1.1.0.0
.Net Run time Error 1026
OS is Windows 10
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.ValidateBufferPosition(Microsoft.VisualStudio.Text.SnapshotPoint)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.Microsoft.VisualStudio.Text.Editor.IWpfTextView.GetTextViewLineContainingBufferPosition(Microsoft.VisualStudio.Text.SnapshotPoint)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.GetTextViewLineContainingBufferPosition(Microsoft.VisualStudio.Text.SnapshotPoint)
at Microsoft.VisualStudio.Text.MultiSelection.Implementation.SelectionUIProperties.get_ContainingTextViewLine()
at Microsoft.VisualStudio.Text.MultiSelection.Implementation.SelectionUIProperties.get_IsWithinViewport()
at Microsoft.VisualStudio.Text.MultiSelection.Implementation.UI.AccessibleCaret.OnViewVisibilityChanged(System.Object, System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyPropertyChangedEventHandler.Invoke(System.Object, System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.UIElement.RaiseDependencyPropertyChanged(System.Windows.EventPrivateKey, System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.UIElement.OnIsVisibleChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.UIElement.InvalidateForceInheritPropertyOnChildren(System.Windows.Media.Visual, System.Windows.DependencyProperty)
at System.Windows.FrameworkElement.InvalidateForceInheritPropertyOnChildren(System.Windows.DependencyProperty)
at System.Windows.UIElement.OnIsVisibleChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.UIElement.UpdateIsVisibleCache()
at System.Windows.UIElement.SynchronizeForceInheritProperties(System.Windows.UIElement, System.Windows.ContentElement, System.Windows.UIElement3D, System.Windows.DependencyObject)
at System.Windows.UIElement.OnVisualParentChanged(System.Windows.DependencyObject)
at System.Windows.FrameworkElement.OnVisualParentChanged(System.Windows.DependencyObject)
at System.Windows.Media.Visual.FireOnVisualParentChanged(System.Windows.DependencyObject)
at System.Windows.Media.Visual.AddVisualChild(System.Windows.Media.Visual)
at System.Windows.FrameworkElement.set_TemplateChild(System.Windows.UIElement)
at System.Windows.Controls.ContentPresenter+UseContentTemplate.BuildVisualTree(System.Windows.FrameworkElement)
at System.Windows.StyleHelper.ApplyTemplateContent(System.Windows.UncommonField`1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.DependencyObject, System.Windows.FrameworkElementFactory, Int32, System.Collections.Specialized.HybridDictionary, System.Windows.FrameworkTemplate)
at System.Windows.FrameworkTemplate.ApplyTemplateContent(System.Windows.UncommonField`1<System.Collections.Specialized.HybridDictionary[]>, System.Windows.FrameworkElement)
at System.Windows.FrameworkElement.ApplyTemplate()
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
at System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
at System.Windows.UIElement.Measure(System.Windows.Size)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at Microsoft.VisualStudio.Shell.Interop.IVsUIShell.ReportErrorInfo(Int32)
at Microsoft.VisualStudio.PlatformUI.HierarchyItem+HierarchyInvocationController.Invoke(System.Collections.Generic.IEnumerable`1<System.Object>, Microsoft.Internal.VisualStudio.PlatformUI.InputSource, Boolean)
at Microsoft.Internal.VisualStudio.PlatformUI.InvocationController.Invoke(System.Collections.Generic.IEnumerable`1<Microsoft.Internal.VisualStudio.PlatformUI.IInvocationPattern>, Microsoft.Internal.VisualStudio.PlatformUI.InputSource, Boolean, System.Func`2<Microsoft.Internal.VisualStudio.PlatformUI.IInvocationPattern,Microsoft.Internal.VisualStudio.PlatformUI.IInvocationController>)
at Microsoft.Internal.VisualStudio.PlatformUI.InvocationController.Invoke(System.Collections.Generic.IEnumerable`1<Microsoft.Internal.VisualStudio.PlatformUI.IInvocationPattern>, Microsoft.Internal.VisualStudio.PlatformUI.InputSource, Boolean)
at Microsoft.Internal.VisualStudio.PlatformUI.PivotTreeViewItem.InvokeItem(System.Windows.Input.InputDevice)
at Microsoft.Internal.VisualStudio.PlatformUI.PivotTreeViewItem.OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs)
at System.Windows.UIElement.OnMouseLeftButtonDownThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
at System.Windows.UIElement.OnMouseDownThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.ContentElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)Followed by Application Error 1000
Faulting application name: devenv.exe, version: 15.8.28010.2003, time stamp: 0x5b763403
Faulting module name: KERNELBASE.dll, version: 10.0.16299.611, time stamp: 0x966d0f68
Exception code: 0xe0434352
Fault offset: 0x00104172
Faulting process id: 0x28bc
Faulting application start time: 0x01d43bdda6ff63d6
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 1baf4f95-df0b-44af-bfe1-0dc133b0d651
Faulting package full name:
Faulting package-relative application ID:Thanks for any ideas you can share.
Friday, August 24, 2018 7:33 PM
Answers
-
Download the latest version which resolves the issue https://www.microsoft.com/en-in/download/details.aspx?id=30169
Vladimir Zelenov | http://systemcenter4all.wordpress.com
- Marked as answer by RodMarten Thursday, December 6, 2018 8:13 PM
Thursday, November 1, 2018 11:00 PM
All replies
-
I have this issue also - has anyone got a solution? Ta.Wednesday, August 29, 2018 4:41 PM
-
I've been struggling with this as well for about a week as well.
Nick
Thursday, August 30, 2018 6:09 PM -
Hi,
This is a problem with Visual Studio 15.8 & 15.8.1. There are numerous reports of other add-ons for Visual Studio having the same issues and the common fix for it at the moment is to install a previous version of Visual Studio from: https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of-vs2017
Sadly, it does not look like we will get a hot fix or patch for this very quickly, and has stopped me from installing patches for Visual Studio until they have been out for a few weeks.
Tim
- Proposed as answer by Tim Chilvers Thursday, September 6, 2018 7:13 AM
Monday, September 3, 2018 12:30 PM -
Thank you, same here. Will revert to a previous version then...
Markus
Tuesday, September 4, 2018 8:18 AM -
I have this issue too.
Vladimir Zelenov | http://systemcenter4all.wordpress.com
Friday, October 5, 2018 11:31 AM -
https://developercommunity.visualstudio.com/content/problem/333448/visual-studio-crashes-when-opening-mpx-file.html
Vladimir Zelenov | http://systemcenter4all.wordpress.com
Wednesday, October 10, 2018 4:17 AM -
Download the latest version which resolves the issue https://www.microsoft.com/en-in/download/details.aspx?id=30169
Vladimir Zelenov | http://systemcenter4all.wordpress.com
- Marked as answer by RodMarten Thursday, December 6, 2018 8:13 PM
Thursday, November 1, 2018 11:00 PM