Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio crash #2744

Closed
jbondc opened this issue Apr 13, 2015 · 8 comments
Closed

Visual Studio crash #2744

jbondc opened this issue Apr 13, 2015 · 8 comments
Labels
Bug A bug in TypeScript Won't Fix The severity and priority of this issue do not warrant the time or complexity needed to fix it

Comments

@jbondc
Copy link
Contributor

jbondc commented Apr 13, 2015

Log Name: Application
Source: .NET Runtime
Date: 4/13/2015 1:06:59 PM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Description:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ObjectDisposedException
Stack:
at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLine.ThrowIfInvalid()
at Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLine.get_TextWidth()
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.MapXCoordinate(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double, Boolean)
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.MoveTo(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double, Boolean)
at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.MoveTo(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double)
at Microsoft.VisualStudio.Text.Operations.Implementation.EditorOperations.MoveCaret(Microsoft.VisualStudio.Text.Formatting.ITextViewLine, Double, Boolean)
at Microsoft.VisualStudio.Text.Editor.Implementation.MasterMouseProcessor.HandleMouseLeftButtonDown(Boolean, Boolean, System.Windows.Point)
at Microsoft.VisualStudio.Text.Editor.Implementation.MasterMouseProcessor.DefaultMouseLeftButtonDownHandler(System.Object, System.Windows.Input.MouseButtonEventArgs)
at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.UIElement_MouseLeftButtonDown(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.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
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 MS.Internal.Threading.ExceptionFilterHelper.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)

@mhegazy
Copy link
Contributor

mhegazy commented Apr 13, 2015

@jbondc I do not see typescript anywhere on the stack. so we will need some more information to be able to diagnose the issue.

@jbondc
Copy link
Contributor Author

jbondc commented Apr 13, 2015


Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue

Error processing work item:

at TypeScriptLanguageService.Threading.BackgroundThreadQueue.<>c__DisplayClass8.b__5(Exception ex)

at GuardMethodClass.GuardMethod(Func1 , Func2 , Func`2 )

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)

a......

Abort Retry Ignore

Log Name: Application
Source: Windows Error Reporting
Date: 4/13/2015 2:02:15 PM
Event ID: 1001
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Description:
Fault bucket 91566012236, type 5
Event Name: Dev11NonFatalError
Response: Not available
Cab Id: 0

Problem signature:
P1: devenv.exe
P2: 12.0.31101.0
P3: 54548724
P4: System
P5: 4.0.30319.34239
P6: 53e4531e
P7: d0f
P8: c7
P9: Debugger.Break
P10: TypeScriptLanguageService

@jbondc
Copy link
Contributor Author

jbondc commented Apr 13, 2015

@mhegazy I see now, it happens when I run 'jake' and have Visual Studio in 'dev mode'. If the compilation fails, it fails to find the service file:

  <entry>
    <record>882</record>
    <time>2015/04/13 18:06:01.498</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.IO.FileNotFoundException: Could not find file &apos;F:\Jonathan\GitHub\TypeScript\built\local\typescriptServices.js&apos;.&#x000D;&#x000A;File name: &apos;F:\Jonathan\GitHub\TypeScript\built\local\typescriptServices.js&apos;&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.ReadAllText(String path)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.InitializeEngine()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.InitializeJavaScriptEngineIfNecessary()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.GetFactoryObject(Int32&amp; fileVersion)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptClassifierServicesAccessor.CreateProxy(Int32&amp; servicesFileVersion)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesAccessorBase.get_Proxy()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptClassifierServicesProxy.GetClassificationsForLine(String text, Int32 lexState)&#x000D;&#x000A;   at TypeScriptLanguageService.Features.Classifier.BufferClassifier.GetClassificationsForLine(ITypeScriptClassifierServicesProxy classifier, String text, Int32 lineNum)&#x000D;&#x000A;   at TypeScriptLanguageService.Features.Classifier.TypeScriptClassifier.GetClassificationSpans(SnapshotSpan span)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.&lt;GetTags&gt;d__0.MoveNext()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__5.MoveNext()</description>
  </entry>
  <entry>
    <record>883</record>
    <time>2015/04/13 18:06:01.499</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.IO.FileNotFoundException: Could not find file &apos;F:\Jonathan\GitHub\TypeScript\built\local\typescriptServices.js&apos;.&#x000D;&#x000A;File name: &apos;F:\Jonathan\GitHub\TypeScript\built\local\typescriptServices.js&apos;&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.ReadAllText(String path)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.InitializeEngine()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.InitializeJavaScriptEngineIfNecessary()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.GetFactoryObject(Int32&amp; fileVersion)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptClassifierServicesAccessor.CreateProxy(Int32&amp; servicesFileVersion)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesAccessorBase.get_Proxy()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptClassifierServicesProxy.GetClassificationsForLine(String text, Int32 lexState)&#x000D;&#x000A;   at TypeScriptLanguageService.Features.Classifier.BufferClassifier.GetClassificationsForLine(ITypeScriptClassifierServicesProxy classifier, String text, Int32 lineNum)&#x000D;&#x000A;   at TypeScriptLanguageService.Features.Classifier.TypeScriptClassifier.GetClassificationSpans(SnapshotSpan span)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.&lt;GetTags&gt;d__0.MoveNext()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__5.MoveNext()</description>
  </entry>
  <entry>
    <record>884</record>
    <time>2015/04/13 18:06:01.500</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.IO.FileNotFoundException: Could not find file &apos;F:\Jonathan\GitHub\TypeScript\built\local\typescriptServices.js&apos;.&#x000D;&#x000A;File name: &apos;F:\Jonathan\GitHub\TypeScript\built\local\typescriptServices.js&apos;&#x000D;&#x000A;   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)&#x000D;&#x000A;   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)&#x000D;&#x000A;   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)&#x000D;&#x000A;   at System.IO.File.ReadAllText(String path)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.InitializeEngine()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.InitializeJavaScriptEngineIfNecessary()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesFactoryProxy.GetFactoryObject(Int32&amp; fileVersion)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptClassifierServicesAccessor.CreateProxy(Int32&amp; servicesFileVersion)&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptServicesAccessorBase.get_Proxy()&#x000D;&#x000A;   at TypeScriptLanguageService.CompilerServices.TypeScriptClassifierServicesProxy.GetClassificationsForLine(String text, Int32 lexState)&#x000D;&#x000A;   at TypeScriptLanguageService.Features.Classifier.BufferClassifier.GetClassificationsForLine(ITypeScriptClassifierServicesProxy classifier, String text, Int32 lineNum)&#x000D;&#x000A;   at TypeScriptLanguageService.Features.Classifier.TypeScriptClassifier.GetClassificationSpans(SnapshotSpan span)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.&lt;GetTags&gt;d__0.MoveNext()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__5.MoveNext()</description>
  </entry>
</activity>

Ideally the plugin could just re-use the 'last-known' good service file.

@jbondc
Copy link
Contributor Author

jbondc commented Apr 13, 2015

The first crash seems unrelated.

@CyrusNajmabadi
Copy link
Contributor

Hey @jbondc, if you look in your event viewer, there will often be another log entry after these crashes with the source being "Windows Error Reporter". At the top of this entry will be a line like:

Fault bucket

if you can provide that, then i can take a look at what the crash data indicates in our system.

Note: make sure you're picking the write "Windows Error Reporter" log. It should list the same crashing assembly as the crash you're reporting.

Thanks!

@mhegazy mhegazy added the Bug A bug in TypeScript label Apr 20, 2015
@mhegazy
Copy link
Contributor

mhegazy commented May 6, 2015

@jbondc are you still running into this with 1.5-beta?

@jbondc
Copy link
Contributor Author

jbondc commented May 6, 2015

I'm not sure, here are steps to reproduce the most frustrating one:

Installed:
https://visualstudiogallery.msdn.microsoft.com/107f89a0-a542-4264-b0a9-eb91037cf7af

ts

Visual Studio goes nutty looking for 'typescriptServices.js' which no longer exists.

@mhegazy mhegazy added this to the TypeScript 1.6 milestone May 6, 2015
@mhegazy mhegazy removed the Needs More Info The issue still hasn't been fully clarified label May 7, 2015
@mhegazy mhegazy added the Won't Fix The severity and priority of this issue do not warrant the time or complexity needed to fix it label Jul 1, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Jul 1, 2015

This looks specific to dev mode. resolving this as won't fix.

@mhegazy mhegazy closed this as completed Jul 1, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Won't Fix The severity and priority of this issue do not warrant the time or complexity needed to fix it
Projects
None yet
Development

No branches or pull requests

4 participants