Bug 17293 - NRefactory assertion in the console
Summary: NRefactory assertion in the console
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: Low normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2014-01-17 08:41 UTC by Andres G. Aragoneses
Modified: 2014-01-17 09:07 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Andres G. Aragoneses 2014-01-17 08:41:53 UTC
Just pulled from monodevelop master, and when I run it now I'm getting this in the console pretty often:

ERROR [2014-01-17 14:39:12Z]: Failed assertion at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.StoreResult(ICSharpCode.NRefactory.CSharp.AstNode node, ICSharpCode.NRefactory.Semantics.ResolveResult result) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 264
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 221
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.GetArguments(IEnumerable`1 argumentExpressions, System.String[] ByRef argumentNames) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 1780
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ResolveInvocationOnGivenTarget(ICSharpCode.NRefactory.Semantics.ResolveResult target, ICSharpCode.NRefactory.CSharp.InvocationExpression invocationExpression) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 1925
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitInvocationExpression(ICSharpCode.NRefactory.CSharp.InvocationExpression invocationExpression) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 1914
   at ICSharpCode.NRefactory.CSharp.InvocationExpression.AcceptVisitor(IAstVisitor`1 visitor) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/Expressions/InvocationExpression.cs:line 60
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 220
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 192
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ScanChildren(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 273
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitExpressionStatement(ICSharpCode.NRefactory.CSharp.ExpressionStatement expressionStatement) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 3047
   at ICSharpCode.NRefactory.CSharp.ExpressionStatement.AcceptVisitor(IAstVisitor`1 visitor) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/Statements/ExpressionStatement.cs:line 50
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 220
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 192
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ScanChildren(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 273
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitBlockStatement(ICSharpCode.NRefactory.CSharp.BlockStatement blockStatement) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 2868
   at ICSharpCode.NRefactory.CSharp.BlockStatement.AcceptVisitor(IAstVisitor`1 visitor) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/Statements/BlockStatement.cs:line 134
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 220
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 192
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ScanChildren(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 273
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.VisitMethodMember(ICSharpCode.NRefactory.CSharp.EntityDeclaration memberDeclaration) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 828
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitMethodDeclaration(ICSharpCode.NRefactory.CSharp.MethodDeclaration methodDeclaration) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 841
   at ICSharpCode.NRefactory.CSharp.MethodDeclaration.AcceptVisitor(IAstVisitor`1 visitor) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/TypeMembers/MethodDeclaration.cs:line 85
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 220
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 192
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ScanChildren(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 273
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.VisitTypeOrDelegate(ICSharpCode.NRefactory.CSharp.AstNode typeDeclaration, System.String name, Int32 typeParameterCount) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 636
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitTypeDeclaration(ICSharpCode.NRefactory.CSharp.TypeDeclaration typeDeclaration) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 650
   at ICSharpCode.NRefactory.CSharp.TypeDeclaration.AcceptVisitor(IAstVisitor`1 visitor) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/GeneralScope/TypeDeclaration.cs:line 128
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 220
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 192
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ScanChildren(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 273
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitNamespaceDeclaration(ICSharpCode.NRefactory.CSharp.NamespaceDeclaration namespaceDeclaration) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 602
   at ICSharpCode.NRefactory.CSharp.NamespaceDeclaration.AcceptVisitor(IAstVisitor`1 visitor) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/GeneralScope/NamespaceDeclaration.cs:line 144
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 220
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 192
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ScanChildren(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 273
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitSyntaxTree(ICSharpCode.NRefactory.CSharp.SyntaxTree unit) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 550
   at ICSharpCode.NRefactory.CSharp.SyntaxTree.AcceptVisitor(IAstVisitor`1 visitor) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/SyntaxTree.cs:line 145
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 220
   at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan(ICSharpCode.NRefactory.CSharp.AstNode node) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:line 192
   at ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver.ApplyNavigator(IResolveVisitorNavigator navigator, CancellationToken cancellationToken) in /home/knocte/Documents/Code/OpenSource/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/CSharpAstResolver.cs:line 148
   at MonoDevelop.Refactoring.ExtensionMethods+<GetSharedResolver>c__AnonStorey36.<>m__68() in /home/knocte/Documents/Code/OpenSource/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/ExtensionMethods.cs:line 114
   at System.Threading.Tasks.TaskActionInvoker+FuncInvoke`1[[ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver, ICSharpCode.NRefactory.CSharp, Version=5.0.0.0, Culture=neutral, PublicKeyToken=d4bfe873e7598c49]].Invoke(System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.ThreadStart()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.TpScheduler.TaskExecuterCallback(System.Object obj)
Comment 1 Mike Krüger 2014-01-17 08:48:59 UTC
In which project you're getting this ?
Comment 2 Andres G. Aragoneses 2014-01-17 08:50:15 UTC
https://github.com/gnome/banshee master branch
Comment 3 Mike Krüger 2014-01-17 08:54:09 UTC
Which file have you worked on when that happens ? I tried several - seems to work.
Comment 4 Andres G. Aragoneses 2014-01-17 09:01:50 UTC
It happened just after loading the solution.

But it's weird, I tried to reproduce it again, and I don't get this anymore.
Comment 5 Mike Krüger 2014-01-17 09:07:58 UTC
Reopen if it happens again - GetSharedResolver is called for the open files - in any case it's not really a big issue.