Bug Report T354741
Visible to All Users

Visual Studio is crashed when editing a CSHTML file

created 9 years ago

Visual Studio crash - can't repro, but I was in a CSHTML file at the time trying to press ENTER to get a new line inside an HTML tag when VS froze and eventually crashed.

Here's a stack trace from AppData\Roaming\CodeRush\Logs for you:

Error: Message: Specified argument was out of the range of valid values.Parameter name: positionError: Type: System.ArgumentOutOfRangeExceptionError: Source: Microsoft.VisualStudio.Platform.VSEditorError: StackTrace:    at Microsoft.VisualStudio.Text.Implementation.TrackingPoint…ctor(ITextVersion version, Int32 position, PointTrackingMode trackingMode)   at Microsoft.VisualStudio.Text.Implementation.TextVersion.CreateTrackingPoint(Int32 position, PointTrackingMode trackingMode)   at Microsoft.VisualStudio.Text.Implementation.BaseSnapshot.CreateTrackingPoint(Int32 position, PointTrackingMode trackingMode)   at DevExpress.CodeRush.VisualStudio.TextEditor.CRTextBuffer.CreateEditPoint(Int32 position, Boolean useNegativeTracking)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.Link.Bind(ITextDocument textDocument)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersEngine.BindToDocument(ILinkedIdentifier link)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersEngine.ehLinkAdding(Object sender, LinkedIdentifierEventArgs e)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersServices.OnLinkAdding(ILinkedIdentifier link)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersServices.AddLinks(String groupId, Location[] locations, Boolean makeNavFields, LinkPropagation propagation, String inFormatter, String outFormatter, ILinkClient client)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersServices.AddNavFields(Location[] locations)   at DevExpress.CodeRush.References.NextReferenceEngine.HighlightReferences()   at DevExpress.CodeRush.References.NextReferenceEngine.TabToNextReference()   at DevExpress.CodeRush.References.Actions.NavReferenceActionBase.TabToNextReference()   at DevExpress.CodeRush.References.Actions.NextReferenceAction.ExecuteAction(ActionExecuteInfo info)   at DevExpress.CodeRush.Foundation.Actions.ActionBase.DoExecute(ActionExecuteInfo info)   at DevExpress.CodeRush.Foundation.Shortcuts.CommandKeyBinding.Execute(IKeyArgs args)   at DevExpress.CodeRush.Foundation.Shortcuts.ShortcutsServices.ExecuteBinding(KeyPressedEventArgs e, CommandKeyBinding binding)   at DevExpress.CodeRush.Foundation.Shortcuts.ShortcutsServices.HandleKeyPressed(KeyPressedEventArgs ea)   at DevExpress.CodeRush.Foundation.Shortcuts.ShortcutsServices.ehKeyPressed(KeyPressedEventArgs ea)   at DevExpress.CodeRush.Win32.KeyPressedEventHandler.Invoke(KeyPressedEventArgs ea)   at DevExpress.CodeRush.VisualStudio.Services.VSGlobalKeyboardEventsService.RaiseKeyPressed(KeyPressedEventArgs args)   at DevExpress.CodeRush.VisualStudio.HookMonitor.ProcessKeyboardEvents(KeyboardHookEventArgs e)   at DevExpress.CodeRush.VisualStudio.HookMonitor.ehKeyboardHookHandler(KeyboardHook hook, KeyboardHookEventArgs e)   at DevExpress.CodeRush.Win32.Hooks.KeyboardHook.OnHook(Int32 aCode, IntPtr aWParam, IntPtr aLParam)Error: Message: Specified argument was out of the range of valid values.Parameter name: positionError: Type: System.ArgumentOutOfRangeExceptionError: Source: Microsoft.VisualStudio.Platform.VSEditorError: StackTrace:    at Microsoft.VisualStudio.Text.Implementation.TrackingPoint…ctor(ITextVersion version, Int32 position, PointTrackingMode trackingMode)   at Microsoft.VisualStudio.Text.Implementation.TextVersion.CreateTrackingPoint(Int32 position, PointTrackingMode trackingMode)   at Microsoft.VisualStudio.Text.Implementation.BaseSnapshot.CreateTrackingPoint(Int32 position, PointTrackingMode trackingMode)   at DevExpress.CodeRush.VisualStudio.TextEditor.CRTextBuffer.CreateEditPoint(Int32 position, Boolean useNegativeTracking)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.Link.Bind(ITextDocument textDocument)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersEngine.BindToDocument(ILinkedIdentifier link)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersEngine.ehLinkAdding(Object sender, LinkedIdentifierEventArgs e)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersServices.OnLinkAdding(ILinkedIdentifier link)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersServices.AddLinks(String groupId, Location[] locations, Boolean makeNavFields, LinkPropagation propagation, String inFormatter, String outFormatter, ILinkClient client)   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersServices.AddNavFields(Location[] locations)   at DevExpress.CodeRush.References.NextReferenceEngine.HighlightReferences()   at DevExpress.CodeRush.References.NextReferenceEngine.TabToNextReference()   at DevExpress.CodeRush.References.Actions.NavReferenceActionBase.TabToNextReference()   at DevExpress.CodeRush.References.Actions.NextReferenceAction.ExecuteAction(ActionExecuteInfo info)   at DevExpress.CodeRush.Foundation.Actions.ActionBase.DoExecute(ActionExecuteInfo info)   at DevExpress.CodeRush.Foundation.Shortcuts.CommandKeyBinding.Execute(IKeyArgs args)   at DevExpress.CodeRush.Foundation.Shortcuts.ShortcutsServices.ExecuteBinding(KeyPressedEventArgs e, CommandKeyBinding binding)   at DevExpress.CodeRush.Foundation.Shortcuts.ShortcutsServices.HandleKeyPressed(KeyPressedEventArgs ea)   at DevExpress.CodeRush.Foundation.Shortcuts.ShortcutsServices.ehKeyPressed(KeyPressedEventArgs ea)   at DevExpress.CodeRush.Win32.KeyPressedEventHandler.Invoke(KeyPressedEventArgs ea)   at DevExpress.CodeRush.VisualStudio.Services.VSGlobalKeyboardEventsService.RaiseKeyPressed(KeyPressedEventArgs args)   at DevExpress.CodeRush.VisualStudio.HookMonitor.ProcessKeyboardEvents(KeyboardHookEventArgs e)   at DevExpress.CodeRush.VisualStudio.HookMonitor.ehKeyboardHookHandler(KeyboardHook hook, KeyboardHookEventArgs e)   at DevExpress.CodeRush.Win32.Hooks.KeyboardHook.OnHook(Int32 aCode, IntPtr aWParam, IntPtr aLParam)Error: Unhandled exception:System.NullReferenceExceptionObject reference not set to an instance of an object.   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersEngine.StartActiveBufferPropagationIfNeeded()   at DevExpress.CodeRush.Foundation.LinkedIdentifiers.LinkedIdentifiersEngine.<ehTextViewActivated>b__63_0()   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)   at System.Windows.Threading.DispatcherOperation.InvokeImpl()   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

Comments (1)
DevExpress Support Team 9 years ago

    Thank you for the provided stack trace.
    I am concerned to hear that you are experiencing this problem.
    I tried to reproduce the problem on my side, but my attempt was not successful.
    The exception cannot be related to the Visual Studio crash because each exception in CodeRush log-files is handled. The exception from your stack trace is the last handled CodeRush exception on your machine. We will analyze the cause of the exception and try to fix it.
    How often does the crash occur on your machine?
    I would greatly appreciate it if you try to reproduce the crash again and provide me with the steps that I need to perform to see the problem.

    Answers approved by DevExpress Support

    created 9 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.