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

VS crash: ArgumentOutOfRangeException thrown by AbstractSemanticQuickInfoProvider #18041

Closed
tmat opened this issue Mar 22, 2017 · 5 comments
Closed
Assignees
Labels
Area-IDE Bug Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Milestone

Comments

@tmat
Copy link
Member

tmat commented Mar 22, 2017

Stack trace:

   at Microsoft.CodeAnalysis.SyntaxNode.FindTokenCore(Int32 position, Boolean findInsideTrivia) in E:\A\_work\19\s\src\Compilers\Core\Portable\Syntax\SyntaxNode.cs:line 1315
   at Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.AbstractSemanticQuickInfoProvider.<FindTokenInLinkedDocument>d__2.MoveNext() in E:\A\_work\19\s\src\EditorFeatures\Core\Implementation\Intellisense\QuickInfo\Providers\AbstractSemanticQuickInfoProvider.cs:line 150
	Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.AbstractSemanticQuickInfoProvider.FindTokenInLinkedDocument(Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.Document originalDocument, Microsoft.CodeAnalysis.Document linkedDocument, System.Threading.CancellationToken cancellationToken) Line 147	C#
>	Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.AbstractSemanticQuickInfoProvider.BuildContentAsync(Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.SyntaxToken token, System.Threading.CancellationToken cancellationToken) Line 74	C#
 	Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.AbstractQuickInfoProvider.GetQuickInfoItemAsync(Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.SyntaxToken token, int position, System.Threading.CancellationToken cancellationToken) Line 78	C#
 	Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.AbstractQuickInfoProvider.GetItemAsync(Microsoft.CodeAnalysis.Document document, int position, System.Threading.CancellationToken cancellationToken) Line 43	C#
 	Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.Controller.ComputeModelInBackgroundAsync(int position, Microsoft.VisualStudio.Text.ITextSnapshot snapshot, System.Collections.Generic.IList<Microsoft.CodeAnalysis.Editor.IQuickInfoProvider> providers, bool trackMouse, System.Threading.CancellationToken cancellationToken) Line 154	C#
 	Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.Controller.StartSession.AnonymousMethod__0(Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.Model model, System.Threading.CancellationToken cancellationToken) Line 109	C#
 	Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.ModelComputation<System.__Canon>.ChainTaskAndNotifyControllerWhenFinished.AnonymousMethod__0(System.Threading.Tasks.Task<System.__Canon> t) Line 133	C#
 	Microsoft.CodeAnalysis.Workspaces.dll!Roslyn.Utilities.TaskExtensions.SafeContinueWithFromAsync.AnonymousMethod__0(System.Threading.Tasks.Task antecedent) Line 268	C#

Crash dump:
%internal_share%\public\tomat\Bugs\18041

@tmat tmat changed the title VS crash: in AbstractSemanticQuickInfoProvider VS crash: ArgumentOutOfRangeException thrown by AbstractSemanticQuickInfoProvider Mar 22, 2017
@tmat tmat added the Area-IDE label Mar 22, 2017
@CyrusNajmabadi
Copy link
Member

@dpoeschl Looks like this could be that race in linked documents. @tmat Out of curiosity, did this happen shortly after a paste?

@tmat
Copy link
Member Author

tmat commented Mar 22, 2017

Not sure. It's possible.

@dpoeschl
Copy link
Contributor

It's definitely that same issue.

@Pilchie Pilchie added the Bug label Mar 22, 2017
@Pilchie Pilchie added this to the 15.2 milestone Mar 22, 2017
@Pilchie Pilchie modified the milestones: 15.3, 15.2 Mar 29, 2017
@Pilchie
Copy link
Member

Pilchie commented Apr 19, 2017

@Pilchie
Copy link
Member

Pilchie commented May 22, 2017

Fixed by #18890, right?

@Pilchie Pilchie closed this as completed May 22, 2017
@Pilchie Pilchie added the Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented label May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Resolution-Fixed The bug has been fixed and/or the requested behavior has been implemented
Projects
None yet
Development

No branches or pull requests

4 participants