Terminal crashes when settings.json has an unnamed "scheme". #12400

Closed
opened 2026-01-31 03:14:40 +00:00 by claunia · 3 comments
Owner

Originally created by @danrozenberg on GitHub (Feb 4, 2021).

Environment

Microsoft Windows [Version 10.0.18363.1316]

Steps to reproduce

I had a settings.json file generated, then modified by Windows Terminal 1.5.10271.0
After updating to latest, Terminal would open and instantly crash.

Upon resetting the json and experimenting, it turns out that the culprit was the following element of my schemes array:

{"colorScheme": "Solarized Dark"}

Further inspection leads me to believe that Windows terminal will crash as long as there is any element in the schemes array without a name. Thus, the scheme

{ "name": "So Dark", "colorScheme": "Solarized Dark" }

does not make the application crash.

Expected behavior

Terminal should open and function normally, and/or complain about any incorrect configurations in settings.json (for example "a scheme must have a name").

Actual behavior

Terminal simply crashes after loading the json. Subsequent attempts to open Terminal fail since it keeps trying to use the afflicted settings.json

Originally created by @danrozenberg on GitHub (Feb 4, 2021). # Environment Microsoft Windows [Version 10.0.18363.1316] # Steps to reproduce I had a `settings.json` file generated, then modified by Windows Terminal `1.5.10271.0` After updating to latest, Terminal would open and instantly crash. Upon resetting the json and experimenting, it turns out that the culprit was the following element of my `schemes` array: `{"colorScheme": "Solarized Dark"}` Further inspection leads me to believe that Windows terminal will crash as long as there is any element in the `schemes` array _without_ a name. Thus, the scheme `` { "name": "So Dark", "colorScheme": "Solarized Dark" } `` does not make the application crash. # Expected behavior Terminal should open and function normally, and/or complain about any incorrect configurations in `settings.json` (for example "a scheme must have a name"). # Actual behavior Terminal simply crashes after loading the json. Subsequent attempts to open Terminal fail since it keeps trying to use the afflicted `settings.json`
claunia added the Resolution-Duplicate label 2026-01-31 03:14:40 +00:00
Author
Owner

@Don-Vito commented on GitHub (Feb 4, 2021):

@danrozenberg - I guess this can be related to https://github.com/microsoft/terminal/issues/8986, which was fixed two days ago and was not released yet.

@Don-Vito commented on GitHub (Feb 4, 2021): @danrozenberg - I guess this can be related to https://github.com/microsoft/terminal/issues/8986, which was fixed two days ago and was not released yet.
Author
Owner

@zadjii-msft commented on GitHub (Feb 4, 2021):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #8986 for more discussion.

/dup #8986

@zadjii-msft commented on GitHub (Feb 4, 2021): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #8986 for more discussion. /dup #8986
Author
Owner

@ghost commented on GitHub (Feb 4, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Feb 4, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12400