-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Compiler crashing issues reported through internal telemetry #38878
Comments
Thanks for contacting us. We're moving this issue to the |
It's not clear that this is a bug in our code. The source of the exception seems to be in the runtime https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/ConditionalWeakTable.cs#L747-L752 The issue seems to be originated in our code here However, I don't see how we can be misusing the APIs offered by the runtime, so I believe this might be a bug in the runtime. It's also important to note, that these nodes are generated based on some tool from Roslyn adapted for Blazor. |
I suspect this might be a bug in .NET Framework (which is used only when the compiler is running inside VS) as noted by the call here |
@mkArtakMSFT can you get more details on how common this issue is? I also suspect that the roslyn folks will have observed the same issue. This was literally removed on Core CLR like 5 years ago (https://github.com/dotnet/runtime/blame/34a4cdb72c5da9c163167618799b37549b4d80ee/src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/ConditionalWeakTable.cs#L136) so I don't believe there's any action we can take here. |
@javiercn you seem to be right here. I glanced through the links you've shared as well as the exception stack trace. |
One thing to keep in mind. Visual Studio is a .NET Framework application. Meaning, any change to the .NET Core side of the world doesn't necessarily mean it's fixed in the .NET Framework side. |
Internal Error - System.InvalidOperationException: Se produjo una excepción de tipo 'System.InvalidOperationException'. en System.Runtime.CompilerServices.ConditionalWeakTable
2.VerifyIntegrity() en System.Runtime.CompilerServices.ConditionalWeakTable
2.Add(TKey key, TValue value) en Microsoft.AspNetCore.Razor.Language.Syntax.GreenNode..ctor(SyntaxKind kind, Int32 fullWidth, RazorDiagnostic[] diagnostics, SyntaxAnnotation[] annotations) en Microsoft.AspNetCore.Razor.Language.Syntax.InternalSyntax.MarkupTextLiteralSyntax.SetAnnotations(SyntaxAnnotation[] annotations) en Microsoft.AspNetCore.Razor.Language.Legacy.TokenizerBackedParser`1.GetNodeWithSpanContext[TNode](TNode node) en @Artak this is another compiler error which also would have killed VS but in the new editor scenario will give funky colors, lacking IntelliSense etc. (experience will fall over). Could you file a separate issue to track please.More context can be found from: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1435565
The text was updated successfully, but these errors were encountered: