Windows Terminal Preview v1.3.2382.0 Crashes on Startup #10331

Closed
opened 2026-01-31 02:18:35 +00:00 by claunia · 17 comments
Owner

Originally created by @djsavvy on GitHub (Aug 27, 2020).

Originally assigned to: @DHowett on GitHub.

Environment

Windows build number: rs_prerelease 20190
Windows Terminal version (if applicable):  Preview v1.3.2382.0

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

Feedback Hub Link: https://aka.ms/AA9hioe

Originally created by @djsavvy on GitHub (Aug 27, 2020). Originally assigned to: @DHowett on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as > possible. --> # Environment ```none Windows build number: rs_prerelease 20190 Windows Terminal version (if applicable): Preview v1.3.2382.0 Any other software? ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior <!-- What's actually happening? --> Feedback Hub Link: https://aka.ms/AA9hioe
Author
Owner

@zadjii-msft commented on GitHub (Aug 27, 2020):

Could you also share your settings.json?

@zadjii-msft commented on GitHub (Aug 27, 2020): Could you also share your `settings.json`?
Author
Owner

@djsavvy commented on GitHub (Aug 27, 2020):

Sure. Do I need to scrub any personal information (i.e. GUIDs?)?

@djsavvy commented on GitHub (Aug 27, 2020): Sure. Do I need to scrub any personal information (i.e. GUIDs?)?
Author
Owner

@zadjii-msft commented on GitHub (Aug 27, 2020):

Nah, GUIDs are basically just random numbers

@zadjii-msft commented on GitHub (Aug 27, 2020): Nah, GUIDs are basically just random numbers
Author
Owner

@djsavvy commented on GitHub (Aug 27, 2020):

{
    "$schema": "https://aka.ms/terminal-profiles-schema",

    "defaultProfile": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}",

    // You can add more global application settings here.
    // To learn more about global settings, visit https://aka.ms/terminal-global-settings

    // If enabled, selections are automatically copied to your clipboard.
    "copyOnSelect": false,

    // If enabled, formatted data is also copied to your clipboard
    "copyFormatting": false,

    "rowsToScroll": 1,
    "snapToGridOnResize": true,


    // A profile specifies a command to execute paired with information about how it should look and feel.
    // Each one of them will appear in the 'New Tab' dropdown,
    //   and can be invoked from the commandline with `wt.exe -p xxx`
    // To learn more about profiles, visit https://aka.ms/terminal-profile-settings
    "profiles":
    {
        "defaults":
        {
            // Put settings here that you want to apply to all profiles.
            "fontFace": "FiraCode Nerd Font Mono",
            // "fontFace": "Cascadia Code PL",
            // =>  3 >> 3 (ligature test)
            "fontSize": 10,
            "fontWeight": "regular",
            "antialiasingMode": "cleartype",
            "colorScheme": "PaperColor Light",
            "closeOnExit": "always",
            "historySize": 1000000,
            // "padding": "0, 0, -20, 0"
        },
        "list":
        [
            {
                "guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
                "hidden": false,
                "name": "Arch",
                "source": "Windows.Terminal.Wsl",
                "startingDirectory": "//wsl$/Arch/home/savvy"
            },
            {
                // Make changes here to the powershell.exe profile.
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false
            },
            {
                // Make changes here to the cmd.exe profile.
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "Command Prompt",
                "commandline": "cmd.exe",
                "hidden": false
            },
            {
                "guid": "{e8862fd8-599e-4a8b-90b0-f785b50a3745}",
                "name": "DigitalOcean savvy@xxxxxxxxxxx",
                "commandline": "ssh savvy@xxx.xxx.xxx.xxx",
                "hidden": false,
                "icon": "https://snapshooter.io/assets/img/marketing/digitalocean-droplet.png"
            },
            {
                "guid": "{09bce8e2-0e0a-4d9c-b6e8-196dd342c34d}",
                "name": "DigitalOcean root@xxxxxxxxxxxx",
                "commandline": "ssh root@xxx.xxx.xxx.xxx",
                "hidden": false,
                "icon": "https://snapshooter.io/assets/img/marketing/digitalocean-droplet.png"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure",
                "hidden": true
            }
        ]
    },

    // Add custom color schemes to this array.
    // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
    "schemes": [
        {
          "name": "PaperColor Light",
          "black": "#f8f8f8",
          "white": "#2c2c2c",
          "red": "#d7005f",
          "green": "#718c00",
          "yellow": "#ff8f01",
          "blue": "#005f87",
          "purple": "#6a1e9a",
          "cyan": "#3e999f",
          "brightBlack": "#25c3dc",
          "brightRed": "#ef5251",
          "brightGreen": "#90c94d",
          "brightYellow": "#ffa000",
          "brightBlue": "#4271ae",
          "brightPurple": "#c774c1",
          "brightCyan": "#3e999f",
          "brightWhite": "#2c2c2c",
          "background": "#eeeeee",
          "foreground": "#3c3c3b",
          "cursorColor": "#25c3dc"
        }
    ],



    // Add custom keybindings to this array.
    // To unbind a key combination from your defaults.json, set the command to "unbound".
    // To learn more about keybindings, visit https://aka.ms/terminal-keybindings
    "keybindings":
    [
        // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
        // These two lines additionally bind them to Ctrl+C and Ctrl+V.
        // To learn more about selection, visit https://aka.ms/terminal-selection
        // { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        // { "command": "paste", "keys": "ctrl+v" },

        // Press Ctrl+Shift+F to open the search box
        { "command": "find", "keys": "ctrl+shift+f" },

        // Terminator-style splits
        { "command": { "action": "splitPane", "split": "vertical", "splitMode": "duplicate" }, "keys": "ctrl+shift+e" },
        { "command": { "action": "splitPane", "split": "horizontal", "splitMode": "duplicate" }, "keys": "ctrl+shift+o" },
        { "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+h" },
        { "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+l" },
        { "command": { "action": "moveFocus", "direction": "down" }, "keys": "alt+j" },
        { "command": { "action": "moveFocus", "direction": "up" }, "keys": "alt+k" },

        // Press Alt+Shift+D to open a new pane.
        // - "split": "auto" makes this pane open in the direction that provides the most surface area.
        // - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
        // To learn more about panes, visit https://aka.ms/terminal-panes
        { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }
    ]
}
@djsavvy commented on GitHub (Aug 27, 2020): ``` { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}", // You can add more global application settings here. // To learn more about global settings, visit https://aka.ms/terminal-global-settings // If enabled, selections are automatically copied to your clipboard. "copyOnSelect": false, // If enabled, formatted data is also copied to your clipboard "copyFormatting": false, "rowsToScroll": 1, "snapToGridOnResize": true, // A profile specifies a command to execute paired with information about how it should look and feel. // Each one of them will appear in the 'New Tab' dropdown, // and can be invoked from the commandline with `wt.exe -p xxx` // To learn more about profiles, visit https://aka.ms/terminal-profile-settings "profiles": { "defaults": { // Put settings here that you want to apply to all profiles. "fontFace": "FiraCode Nerd Font Mono", // "fontFace": "Cascadia Code PL", // => 3 >> 3 (ligature test) "fontSize": 10, "fontWeight": "regular", "antialiasingMode": "cleartype", "colorScheme": "PaperColor Light", "closeOnExit": "always", "historySize": 1000000, // "padding": "0, 0, -20, 0" }, "list": [ { "guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}", "hidden": false, "name": "Arch", "source": "Windows.Terminal.Wsl", "startingDirectory": "//wsl$/Arch/home/savvy" }, { // Make changes here to the powershell.exe profile. "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, { // Make changes here to the cmd.exe profile. "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "Command Prompt", "commandline": "cmd.exe", "hidden": false }, { "guid": "{e8862fd8-599e-4a8b-90b0-f785b50a3745}", "name": "DigitalOcean savvy@xxxxxxxxxxx", "commandline": "ssh savvy@xxx.xxx.xxx.xxx", "hidden": false, "icon": "https://snapshooter.io/assets/img/marketing/digitalocean-droplet.png" }, { "guid": "{09bce8e2-0e0a-4d9c-b6e8-196dd342c34d}", "name": "DigitalOcean root@xxxxxxxxxxxx", "commandline": "ssh root@xxx.xxx.xxx.xxx", "hidden": false, "icon": "https://snapshooter.io/assets/img/marketing/digitalocean-droplet.png" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure", "hidden": true } ] }, // Add custom color schemes to this array. // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes "schemes": [ { "name": "PaperColor Light", "black": "#f8f8f8", "white": "#2c2c2c", "red": "#d7005f", "green": "#718c00", "yellow": "#ff8f01", "blue": "#005f87", "purple": "#6a1e9a", "cyan": "#3e999f", "brightBlack": "#25c3dc", "brightRed": "#ef5251", "brightGreen": "#90c94d", "brightYellow": "#ffa000", "brightBlue": "#4271ae", "brightPurple": "#c774c1", "brightCyan": "#3e999f", "brightWhite": "#2c2c2c", "background": "#eeeeee", "foreground": "#3c3c3b", "cursorColor": "#25c3dc" } ], // Add custom keybindings to this array. // To unbind a key combination from your defaults.json, set the command to "unbound". // To learn more about keybindings, visit https://aka.ms/terminal-keybindings "keybindings": [ // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. // These two lines additionally bind them to Ctrl+C and Ctrl+V. // To learn more about selection, visit https://aka.ms/terminal-selection // { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" }, // { "command": "paste", "keys": "ctrl+v" }, // Press Ctrl+Shift+F to open the search box { "command": "find", "keys": "ctrl+shift+f" }, // Terminator-style splits { "command": { "action": "splitPane", "split": "vertical", "splitMode": "duplicate" }, "keys": "ctrl+shift+e" }, { "command": { "action": "splitPane", "split": "horizontal", "splitMode": "duplicate" }, "keys": "ctrl+shift+o" }, { "command": { "action": "moveFocus", "direction": "left" }, "keys": "alt+h" }, { "command": { "action": "moveFocus", "direction": "right" }, "keys": "alt+l" }, { "command": { "action": "moveFocus", "direction": "down" }, "keys": "alt+j" }, { "command": { "action": "moveFocus", "direction": "up" }, "keys": "alt+k" }, // Press Alt+Shift+D to open a new pane. // - "split": "auto" makes this pane open in the direction that provides the most surface area. // - "splitMode": "duplicate" makes the new pane use the focused pane's profile. // To learn more about panes, visit https://aka.ms/terminal-panes { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" } ] } ```
Author
Owner

@djsavvy commented on GitHub (Aug 27, 2020):

Feedback hub link for crash: https://aka.ms/AA9hioe

@djsavvy commented on GitHub (Aug 27, 2020): Feedback hub link for crash: https://aka.ms/AA9hioe
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

You seem to have closeOnExit set to always. Can you comment that out?

It’s possible that your default profile is exiting before it displays anything, which can look like a crash. If this is the case, we’ll need to go figure out why it’s exiting so fast.

@DHowett commented on GitHub (Aug 27, 2020): You seem to have `closeOnExit` set to always. Can you comment that out? It’s possible that your default profile is exiting before it displays anything, which can look like a crash. If this is the case, we’ll need to go figure out why it’s exiting so fast.
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

(This is why we switched the default closeOnExit setting to “if the process didn’t fail”)

@DHowett commented on GitHub (Aug 27, 2020): (This is why we switched the default `closeOnExit` setting to “if the process didn’t fail”)
Author
Owner

@djsavvy commented on GitHub (Aug 27, 2020):

Thanks for the suggestion! However, commenting out the closeOnExit line had no effect --- still exiting/crashing on startup.

@djsavvy commented on GitHub (Aug 27, 2020): Thanks for the suggestion! However, commenting out the `closeOnExit` line had no effect --- still exiting/crashing on startup.
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

Thanks!

@DHowett commented on GitHub (Aug 27, 2020): Thanks!
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

Okay, this is a shot in the dark. Can you change your fontWeight from regular to medium? I can't reproduce a crash with that value, but it does cause a settings load failure that might be implicated in a startup crash. 😄

@DHowett commented on GitHub (Aug 27, 2020): Okay, this is a shot in the dark. Can you change your fontWeight from `regular` to `medium`? I can't reproduce a crash with that value, but it _does_ cause a settings load failure that might be implicated in a startup crash. :smile:
Author
Owner

@djsavvy commented on GitHub (Aug 27, 2020):

Wow! That fixed it! Also, if I change the fontWeight back to regular after opening Windows Terminal Preview then it crashes.

Thanks so much for helping me debug --- I don't think crashing is the right behavior here, but I never would have guessed to look there. Thanks again.

@djsavvy commented on GitHub (Aug 27, 2020): Wow! That fixed it! Also, if I change the `fontWeight` back to `regular` after opening Windows Terminal Preview then it crashes. Thanks so much for helping me debug --- I don't think crashing is the right behavior here, but I never would have guessed to look there. Thanks again.
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

That's the weirdest part: this is what I get with the same version of Terminal (!)

image

Thanks for helping troubleshoot with us!

@DHowett commented on GitHub (Aug 27, 2020): That's the weirdest part: this is what I get with the same version of Terminal (!) ![image](https://user-images.githubusercontent.com/189190/91467159-0c999280-e845-11ea-830d-83b9542607fa.png) Thanks for helping troubleshoot with us!
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

oh no, the behavior changes on the insider build of windows

@DHowett commented on GitHub (Aug 27, 2020): _oh no, the behavior changes on the insider build of windows_
Author
Owner

@djsavvy commented on GitHub (Aug 27, 2020):

Oh boy. Good luck debugging that! (and if possible, keep me posted --- I'm so curious what could possibly cause something like this)

@djsavvy commented on GitHub (Aug 27, 2020): Oh boy. Good luck debugging that! (and if possible, keep me posted --- I'm so curious what could possibly cause something like this)
Author
Owner

@DHowett commented on GitHub (Aug 27, 2020):

So, to keep you in the loop!

The Windows Insider builds support hardware-enforced stack protection, and there was some work done in the compiler/linker shipped with Visual Studio 2019 16.7 to support laying down exception handling metadata.

It looks like there's a disagreement about what that metadata should look like between Windows and the compiled binary. 😄

Still figuring out whether it's a Windows bug or a compiler/linker issue!

@DHowett commented on GitHub (Aug 27, 2020): So, to keep you in the loop! The Windows Insider builds support [hardware-enforced stack protection](https://techcommunity.microsoft.com/t5/windows-kernel-internals/understanding-hardware-enforced-stack-protection/ba-p/1247815), and there was some work done [in the compiler/linker](https://docs.microsoft.com/en-us/cpp/build/reference/guard-enable-eh-continuation-metadata?view=vs-2019) shipped with Visual Studio 2019 16.7 to support laying down exception handling metadata. It looks like there's a disagreement about what that metadata should look like between Windows and the compiled binary. :smile: Still figuring out whether it's a Windows bug or a compiler/linker issue!
Author
Owner

@omardelrio commented on GitHub (Aug 31, 2020):

Experienced the same issue apparently - the new version crashes on startup.

I am on Windows build 20201.
Windows Terminal 1.3.2382.0

This is on my event log:

Faulting application name: WindowsTerminal.exe, version: 1.3.2008.25002, time stamp: 0x5f45907e
Faulting module name: ntdll.dll, version: 10.0.20201.1000, time stamp: 0x88c00ec6
Exception code: 0xc0000005

In my case, removing "antialiasingMode": "clearType" fixes it, these are my relevant settings:

                "fontFace": "MesloLGS NF",
                "fontWeight": "normal",
                "fontSize": 10,
                "antialiasingMode": "clearType",
@omardelrio commented on GitHub (Aug 31, 2020): Experienced the same issue apparently - the new version crashes on startup. I am on Windows build 20201. Windows Terminal 1.3.2382.0 This is on my event log: Faulting application name: WindowsTerminal.exe, version: 1.3.2008.25002, time stamp: 0x5f45907e Faulting module name: ntdll.dll, version: 10.0.20201.1000, time stamp: 0x88c00ec6 Exception code: 0xc0000005 In my case, removing ```"antialiasingMode": "clearType"``` fixes it, these are my relevant settings: ```` "fontFace": "MesloLGS NF", "fontWeight": "normal", "fontSize": 10, "antialiasingMode": "clearType", ````
Author
Owner

@DHowett commented on GitHub (Dec 10, 2020):

I believe the version of VS that we used to produce the builds after 1.3 is no longer problematic.

@DHowett commented on GitHub (Dec 10, 2020): I believe the version of VS that we used to produce the builds after 1.3 is no longer problematic.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10331