Skip to content

Terminal Preview Hanging On Startup #18610

Open
@amyb-asu

Description

Windows Terminal version

1.23.10353.0

Windows build number

22631.4890

Other Software

No response

Steps to reproduce

I don't know what is causing it. For me it happens right now any time I try to open the terminal in any way at all.

Expected Behavior

The terminal opens and does not peg a CPU core.

Actual Behavior

As of today, my Windows Terminal Preview build has started hanging on every startup, spinning the CPU. I also noticed similar behavior with Terminal Canary starting several months ago, so I had to switch to Preview which was working at the time... But now Preview also has the same behavior...

Image

I am now debugging it with windbg, and it seems this thread has the highest usage:

Image

If we let it run and randomly break now and then we see a similar stack trace every time with a call to TerminalApp!Pane::LayoutSizeNode::operator=

Image

Image

Image

That leaves me to believe this is some kind of endless loop somewhere within this call trace.

I have firstWindowPreference": "persistedWindowLayout" enabled in my config. Here is redacted version of my state.json file:

{
	"dismissedMessages" : 
	[
		"deprecated",
		"closeOnExitInfo"
	],
	"generatedProfiles" : 
	[
		"{REDACTED}",
		"{REDACTED}",
		"{REDACTED}",
		"{REDACTED}"
	],
	"persistedWindowLayouts" : 
	[
		{
			"initialPosition" : "0,-14",
			"initialSize" : 
			{
				"height" : 880.4444580078125,
				"width" : 1536
			},
			"launchMode" : "maximized",
			"tabLayout" : 
			[
				{
					"action" : "newTab",
					"commandline" : "REDACTED",
					"profile" : "REDACTED",
					"sessionId" : "{REDACTED}",
					"startingDirectory" : "REDACTED",
					"suppressApplicationTitle" : false,
					"tabTitle" : "REDACTED"
				},
				{
					"action" : "splitPane",
					"commandline" : "REDACTED",
					"profile" : "REDACTED",
					"sessionId" : "{REDACTED}",
					"size" : 0.5,
					"split" : "right",
					"splitMode" : "manual",
					"startingDirectory" : "REDACTED",
					"suppressApplicationTitle" : false,
					"tabTitle" : "REDACTED"
				},
				{
					"action" : "splitPane",
					"commandline" : "REDACTED",
					"profile" : "REDACTED",
					"sessionId" : "{REDACTED}",
					"size" : 0.5,
					"split" : "down",
					"splitMode" : "manual",
					"startingDirectory" : "REDACTED",
					"suppressApplicationTitle" : false,
					"tabTitle" : "REDACTED"
				},
				{
					"action" : "focusPane",
					"id" : 0
				},
				"togglePaneZoom",
				{
					"action" : "newTab",
					"commandline" : "REDACTED",
					"profile" : "REDACTED",
					"sessionId" : "{REDACTED}",
					"startingDirectory" : "REDACTED",
					"suppressApplicationTitle" : false,
					"tabTitle" : "REDACTED"
				},
				{
					"action" : "switchToTab",
					"index" : 0
				}
			]
		}
	],
	"recentCommands" : 
	[
		"ls"
	],
	"settingsHash" : "REDACTED"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.Severity-CrashCrashes are real bad news.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions