Visual Studio 2019 Community crashed 'Specified Visual is not a child of this Visual'

Kanasan Ramalingam 1 Reputation point
2021-07-29T20:01:58.94+00:00

I keep getting the following error message from Visual Studio 2019 community version. Is there any way I could solve this issue? I've reinstalled my VS 2019 many times but still getting similar issues.

Error Information
AppInsightsEvent Name = vs/editor/unhandledextensionerror
Description = An unhandled exception occurred in an extension
TelemetrySession = '41cf97b6-761c-406f-beb0-5f5cfb58b06a' Started = True OptIn=True IsInitialized = True Cloned = False
WatsonEventType = VisualStudioNonFatalErrors2
UTC time = 2021-07-29T19:11:47

Exception:
System.ArgumentException
Specified Visual is not a child of this Visual.
System.Windows.Media.Visual.RemoveVisualChild(Visual child)
System.Windows.Controls.Decorator.set_Child(UIElement value)
Microsoft.VisualStudio.Text.Editor.Implementation.TextAndAdornmentSequencing.IntraTextAdornmentManager.OnAdornmentRemoved(Object tag, UIElement element)
Microsoft.VisualStudio.Text.Editor.Implementation.AdornmentLayer.RemoveTranslatableVisual(AdornmentAndData data)
Microsoft.VisualStudio.Text.Editor.Implementation.AdornmentLayer.SetSnapshotAndUpdate(ITextSnapshot snapshot, Double deltaX, Double deltaY, IList1 newOrReformattedLines, IList1 translatedLines)
Microsoft.VisualStudio.Text.Editor.Implementation.ViewStack.SetSnapshotAndUpdate(ITextSnapshot snapshot, Double deltaX, Double deltaY, IList1 newOrReformattedLines, IList1 translatedLines)
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PostLayout(Double effectiveViewportWidth, Double effectiveViewportHeight, List1 groupsToBeDisposedOf) Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(SnapshotPoint anchorPosition, Double verticalDistance, ViewRelativePosition relativeTo, Double effectiveViewportWidth, Double effectiveViewportHeight, Boolean preserveViewportTop, Nullable1 cancel)
WerReportAddDump PID=3108 devenv WerDumpTypeMiniDump

Developer technologies | Visual Studio | Setup
{count} votes

1 answer

Sort by: Most helpful
  1. PengGe-MSFT 3,381 Reputation points
    2021-07-30T06:27:28.753+00:00

    Hi, @Kanasan Ramalingam

    Welcome to Microsoft Q&A!

    According to the information you provided :

    Description = An unhandled exception occurred in an extension

    We need to confirm whether the issue is caused by an extension you installed.

    You can try to run the devenv.exe /safemode command in the developer command prompt to start Visual Studio, and then check whether Visual Studio will crash. You can refer to this document.

    Sincerely,
    Peng

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.