Found a profile with an invalid "icon" error #23038

Closed
opened 2026-01-31 08:30:32 +00:00 by claunia · 22 comments
Owner

Originally created by @arfadex on GitHub (Mar 18, 2025).

Windows Terminal version

1.21.10351.0

Windows build number

10.0.19045.0

Other Software

No response

Steps to reproduce

I tried uninstalling the program and reinstalling it, removing my current settings.json file.
And this error doesn't go away
Even tho i don't have any icon setting in my config file.

Expected Behavior

To run normally

Actual Behavior

Image

Originally created by @arfadex on GitHub (Mar 18, 2025). ### Windows Terminal version 1.21.10351.0 ### Windows build number 10.0.19045.0 ### Other Software _No response_ ### Steps to reproduce I tried uninstalling the program and reinstalling it, removing my current `settings.json` file. And this error doesn't go away Even tho i don't have any icon setting in my config file. ### Expected Behavior To run normally ### Actual Behavior ![Image](https://github.com/user-attachments/assets/09584cd0-012b-418f-9455-503a25a40d8f)
claunia added the Area-SettingsIssue-BugPriority-3Needs-Tag-FixProduct-Terminal labels 2026-01-31 08:30:32 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 18, 2025):

Ah! That's pretty annoying.

Do any of your profiles show up with no icon, by chance?

@DHowett commented on GitHub (Mar 18, 2025): Ah! That's pretty annoying. Do any of your profiles show up with no icon, by chance?
Author
Owner

@arfadex commented on GitHub (Mar 18, 2025):

Ah! That's pretty annoying.

Do any of your profiles show up with no icon, by chance?

All of them show up with icons.

@arfadex commented on GitHub (Mar 18, 2025): > Ah! That's pretty annoying. > > Do any of your profiles show up with no icon, by chance? All of them show up with icons.
Author
Owner

@DHowett commented on GitHub (Mar 18, 2025):

Hrm. Would you be able to share a copy of your settings.json?

@DHowett commented on GitHub (Mar 18, 2025): Hrm. Would you be able to share a copy of your `settings.json`?
Author
Owner

@arfadex commented on GitHub (Mar 18, 2025):

Hrm. Would you be able to share a copy of your settings.json?

Sure,

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "id": "User.copy.644BA8F2",
            "keys": "ctrl+c"
        },
        {
            "command": "unbound",
            "keys": "ctrl+shift+t"
        },
        {
            "command": "unbound",
            "keys": "alt+shift+'"
        },
        {
            "command": "unbound",
            "keys": "ctrl+shift+right"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "id": "User.splitPane.A6751878",
            "keys": "alt+minus"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "keys": "alt+plus"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "keys": "alt+shift+d"
        },
        {
            "command": 
            {
                "action": "newTab"
            },
            "id": "User.newTab.5DEADB41",
            "keys": "ctrl+t"
        },
        {
            "command": 
            {
                "action": "closeOtherTabs"
            },
            "id": "User.closeOtherTabs.0",
            "keys": "ctrl+shift+down"
        },
        {
            "command": "find",
            "id": "User.find",
            "keys": "ctrl+shift+f"
        },
        {
            "command": "paste",
            "id": "User.paste",
            "keys": "ctrl+v"
        },
        {
            "command": 
            {
                "action": "splitPane"
            },
            "id": "User.splitPane.91AB55B1"
        }
    ],
    "alwaysShowTabs": true,
    "centerOnLaunch": true,
    "confirmCloseAllTabs": false,
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "largePasteWarning": false,
    "launchMode": "default",
    "multiLinePasteWarning": false,
    "newTabMenu": 
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles": 
    {
        "defaults": 
        {
            "antialiasingMode": "grayscale",
            "bellStyle": "none",
            "colorScheme": "Catppuccin Mocha",
            "cursorShape": "filledBox",
            "experimental.retroTerminalEffect": false,
            "font": 
            {
                "face": "JetBrainsMono NF",
                "size": 11,
                "weight": "normal"
            },
            "intenseTextStyle": "bright",
            "opacity": 60,
            "startingDirectory": "D:\\",
            "useAcrylic": true
        },
        "list": 
        [
            {
                "commandline": "\"pwsh.exe\"  -nologo",
                "font": 
                {
                    "face": "JetBrainsMono Nerd Font"
                },
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "guid": "{d29017ae-d3fb-564b-a767-72f66b9035b7}",
                "hidden": false,
                "name": "Debian",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "commandline": "%SystemRoot%\\System32\\cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "Command Prompt"
            },
            {
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            }
        ]
    },
    "schemes": 
    [
        {
            "background": "#1E1E2E",
            "black": "#45475A",
            "blue": "#89B4FA",
            "brightBlack": "#585B70",
            "brightBlue": "#89B4FA",
            "brightCyan": "#94E2D5",
            "brightGreen": "#A6E3A1",
            "brightPurple": "#F5C2E7",
            "brightRed": "#F38BA8",
            "brightWhite": "#A6ADC8",
            "brightYellow": "#F9E2AF",
            "cursorColor": "#F5E0DC",
            "cyan": "#94E2D5",
            "foreground": "#CDD6F4",
            "green": "#A6E3A1",
            "name": "Catppuccin Mocha",
            "purple": "#F5C2E7",
            "red": "#F38BA8",
            "selectionBackground": "#585B70",
            "white": "#BAC2DE",
            "yellow": "#F9E2AF"
        },
        {
            "background": "#300A24",
            "black": "#171421",
            "blue": "#0037DA",
            "brightBlack": "#767676",
            "brightBlue": "#08458F",
            "brightCyan": "#2C9FB3",
            "brightGreen": "#26A269",
            "brightPurple": "#A347BA",
            "brightRed": "#C01C28",
            "brightWhite": "#F2F2F2",
            "brightYellow": "#A2734C",
            "cursorColor": "#FFFFFF",
            "cyan": "#3A96DD",
            "foreground": "#FFFFFF",
            "green": "#26A269",
            "name": "Ubuntu-ColorScheme",
            "purple": "#881798",
            "red": "#C21A23",
            "selectionBackground": "#FFFFFF",
            "white": "#CCCCCC",
            "yellow": "#A2734C"
        }
    ],
    "showTabsInTitlebar": true,
    "themes": 
    [
        {
            "name": "Catppuccin Mocha",
            "tab": 
            {
                "background": "#1E1E2EFF",
                "iconStyle": "default",
                "showCloseButton": "always",
                "unfocusedBackground": null
            },
            "tabRow": 
            {
                "background": "#181825FF",
                "unfocusedBackground": "#11111BFF"
            },
            "window": 
            {
                "applicationTheme": "dark",
                "experimental.rainbowFrame": false,
                "frame": null,
                "unfocusedFrame": null,
                "useMica": false
            }
        }
    ],
    "useAcrylicInTabRow": true
}
@arfadex commented on GitHub (Mar 18, 2025): > Hrm. Would you be able to share a copy of your `settings.json`? Sure, ```json { "$help": "https://aka.ms/terminal-documentation", "$schema": "https://aka.ms/terminal-profiles-schema", "actions": [ { "command": { "action": "copy", "singleLine": false }, "id": "User.copy.644BA8F2", "keys": "ctrl+c" }, { "command": "unbound", "keys": "ctrl+shift+t" }, { "command": "unbound", "keys": "alt+shift+'" }, { "command": "unbound", "keys": "ctrl+shift+right" }, { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "id": "User.splitPane.A6751878", "keys": "alt+minus" }, { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+plus" }, { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" }, { "command": { "action": "newTab" }, "id": "User.newTab.5DEADB41", "keys": "ctrl+t" }, { "command": { "action": "closeOtherTabs" }, "id": "User.closeOtherTabs.0", "keys": "ctrl+shift+down" }, { "command": "find", "id": "User.find", "keys": "ctrl+shift+f" }, { "command": "paste", "id": "User.paste", "keys": "ctrl+v" }, { "command": { "action": "splitPane" }, "id": "User.splitPane.91AB55B1" } ], "alwaysShowTabs": true, "centerOnLaunch": true, "confirmCloseAllTabs": false, "copyFormatting": "none", "copyOnSelect": false, "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "largePasteWarning": false, "launchMode": "default", "multiLinePasteWarning": false, "newTabMenu": [ { "type": "remainingProfiles" } ], "profiles": { "defaults": { "antialiasingMode": "grayscale", "bellStyle": "none", "colorScheme": "Catppuccin Mocha", "cursorShape": "filledBox", "experimental.retroTerminalEffect": false, "font": { "face": "JetBrainsMono NF", "size": 11, "weight": "normal" }, "intenseTextStyle": "bright", "opacity": 60, "startingDirectory": "D:\\", "useAcrylic": true }, "list": [ { "commandline": "\"pwsh.exe\" -nologo", "font": { "face": "JetBrainsMono Nerd Font" }, "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", "hidden": false, "name": "PowerShell", "source": "Windows.Terminal.PowershellCore" }, { "guid": "{d29017ae-d3fb-564b-a767-72f66b9035b7}", "hidden": false, "name": "Debian", "source": "Windows.Terminal.Wsl" }, { "commandline": "%SystemRoot%\\System32\\cmd.exe", "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "hidden": false, "name": "Command Prompt" }, { "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "hidden": false, "name": "Windows PowerShell" } ] }, "schemes": [ { "background": "#1E1E2E", "black": "#45475A", "blue": "#89B4FA", "brightBlack": "#585B70", "brightBlue": "#89B4FA", "brightCyan": "#94E2D5", "brightGreen": "#A6E3A1", "brightPurple": "#F5C2E7", "brightRed": "#F38BA8", "brightWhite": "#A6ADC8", "brightYellow": "#F9E2AF", "cursorColor": "#F5E0DC", "cyan": "#94E2D5", "foreground": "#CDD6F4", "green": "#A6E3A1", "name": "Catppuccin Mocha", "purple": "#F5C2E7", "red": "#F38BA8", "selectionBackground": "#585B70", "white": "#BAC2DE", "yellow": "#F9E2AF" }, { "background": "#300A24", "black": "#171421", "blue": "#0037DA", "brightBlack": "#767676", "brightBlue": "#08458F", "brightCyan": "#2C9FB3", "brightGreen": "#26A269", "brightPurple": "#A347BA", "brightRed": "#C01C28", "brightWhite": "#F2F2F2", "brightYellow": "#A2734C", "cursorColor": "#FFFFFF", "cyan": "#3A96DD", "foreground": "#FFFFFF", "green": "#26A269", "name": "Ubuntu-ColorScheme", "purple": "#881798", "red": "#C21A23", "selectionBackground": "#FFFFFF", "white": "#CCCCCC", "yellow": "#A2734C" } ], "showTabsInTitlebar": true, "themes": [ { "name": "Catppuccin Mocha", "tab": { "background": "#1E1E2EFF", "iconStyle": "default", "showCloseButton": "always", "unfocusedBackground": null }, "tabRow": { "background": "#181825FF", "unfocusedBackground": "#11111BFF" }, "window": { "applicationTheme": "dark", "experimental.rainbowFrame": false, "frame": null, "unfocusedFrame": null, "useMica": false } } ], "useAcrylicInTabRow": true } ```
Author
Owner

@lhecker commented on GitHub (Mar 19, 2025):

Notes from triage: We need error tracing for this dialog (which file, which line, the path to the error) and perhaps a list of errors instead of a single one.

@lhecker commented on GitHub (Mar 19, 2025): Notes from triage: We need error tracing for this dialog (which file, which line, the path to the error) and perhaps a list of errors instead of a single one.
Author
Owner

@arfadex commented on GitHub (Mar 19, 2025):

Notes from triage: We need error tracing for this dialog (which file, which line, the path to the error) and perhaps a list of errors instead of a single one.

How to do that?

@arfadex commented on GitHub (Mar 19, 2025): > Notes from triage: We need error tracing for this dialog (which file, which line, the path to the error) and perhaps a list of errors instead of a single one. How to do that?
Author
Owner

@lhecker commented on GitHub (Mar 20, 2025):

No, I meant that we, the maintainers, must add that as a feature, so that this error dialog is more helpful. 😅 This would help us debug this. Until then it's a little unclear why this is happening to you.

@lhecker commented on GitHub (Mar 20, 2025): No, I meant that we, the maintainers, must add that as a feature, so that this error dialog is more helpful. 😅 This would help us debug this. Until then it's a little unclear why this is happening to you.
Author
Owner

@arfadex commented on GitHub (Mar 20, 2025):

Is there a way to just hide the error? I use the terminal all the time and it's really annoying.

@arfadex commented on GitHub (Mar 20, 2025): Is there a way to just hide the error? I use the terminal all the time and it's really annoying.
Author
Owner

@DHowett commented on GitHub (Mar 20, 2025):

Since you do not have too many profiles, it may not be too difficult...

If you change the icon of every profile (add icon to your each profile), does it help?

"icon": "\u2764\ufe0f",

It's not going to help you differentiate them, but perhaps it will suppress the error. Sorry. :(

@DHowett commented on GitHub (Mar 20, 2025): Since you do not have too many profiles, it may not be too difficult... If you change the icon of every profile (add `icon` to your each profile), does it help? ```json "icon": "\u2764\ufe0f", ``` It's not going to help you differentiate them, but perhaps it will suppress the error. Sorry. :(
Author
Owner

@DHowett commented on GitHub (Mar 20, 2025):

Alternatively... do you have the issue in Windows Terminal Preview?

@DHowett commented on GitHub (Mar 20, 2025): Alternatively... do you have the issue in [Windows Terminal Preview](https://aka.ms/terminal-preview)?
Author
Owner

@arfadex commented on GitHub (Mar 20, 2025):

suppress the error.

Since you do not have too many profiles, it may not be too difficult...

If you change the icon of every profile (add icon to your each profile), does it help?

"icon": "\u2764\ufe0f",

It's not going to help you differentiate them, but perhaps it will suppress the error. Sorry. :(

Unfortunately it did not suppress the error.

@arfadex commented on GitHub (Mar 20, 2025): > suppress the error. > Since you do not have too many profiles, it may not be too difficult... > > If you change the icon of every profile (add `icon` to your each profile), does it help? > > "icon": "\u2764\ufe0f", > > It's not going to help you differentiate them, but perhaps it will suppress the error. Sorry. :( Unfortunately it did not suppress the error.
Author
Owner

@arfadex commented on GitHub (Mar 20, 2025):

Alternatively... do you have the issue in Windows Terminal Preview?

Yes, i do.
I just wanna know why even uninstalling the terminal and deleting all its files and installing it again results in the same error, even with a different config file. This means there are other remains stored somewhere else that i need to remove.

@arfadex commented on GitHub (Mar 20, 2025): > Alternatively... do you have the issue in [Windows Terminal Preview](https://aka.ms/terminal-preview)? Yes, i do. I just wanna know why even uninstalling the terminal and deleting all its files and installing it again results in the same error, even with a different config file. This means there are other remains stored somewhere else that i need to remove.
Author
Owner

@Zeroes1 commented on GitHub (Mar 24, 2025):

@arfadex check the path to settings.json what use WT and you operate, all right?

Image

@Zeroes1 commented on GitHub (Mar 24, 2025): @arfadex check the path to settings.json what use WT and you operate, all right? ![Image](https://github.com/user-attachments/assets/7228052a-15f2-4fce-978e-c31a437d39b6)
Author
Owner

@arfadex commented on GitHub (Mar 24, 2025):

@arfadex check path to settings.json what use WT and you operate, all right?

I have it here: %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

@arfadex commented on GitHub (Mar 24, 2025): > [@arfadex](https://github.com/arfadex) check path to settings.json what use WT and you operate, all right? I have it here: `%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json`
Author
Owner

@sbaron commented on GitHub (Mar 26, 2025):

Hi, @arfadex try to delete the folder C:\Users\<user>\AppData\Local\Microsoft\Windows Terminal\Fragments\
It did the trick for me.

@sbaron commented on GitHub (Mar 26, 2025): Hi, @arfadex try to delete the folder `C:\Users\<user>\AppData\Local\Microsoft\Windows Terminal\Fragments\` It did the trick for me.
Author
Owner

@arfadex commented on GitHub (Mar 26, 2025):

Hi, @arfadex try to delete the folder C:\Users\<user>\AppData\Local\Microsoft\Windows Terminal\Fragments\ It did the trick for me.

This solved it. Thank you!

@arfadex commented on GitHub (Mar 26, 2025): > Hi, [@arfadex](https://github.com/arfadex) try to delete the folder `C:\Users\<user>\AppData\Local\Microsoft\Windows Terminal\Fragments\` It did the trick for me. This solved it. Thank you!
Author
Owner

@d-mercier commented on GitHub (Apr 9, 2025):

I ran into this issue for the first time a couple days ago. This is the first time I've used Ubuntu 24.04, previously had been using Ubuntu 20.04. I had exported the Ubuntu 24.04 distribution and then imported it again, into a new folder path with a new distribution name.

wsl --export Ubuntu-24.04 c:\temp\test.tar
wsl --import test c:\wsl2\test c:\temp\test.tar

After opening terminal again the icon message immediately appears. In c:\wsl2\test is an Ubuntu shortcut.ico file that's referenced in the automatically created profile. This is the path in the profile (and the fragment file), but it can't be found by terminal:
"icon": "\\\\?\\c:\\wsl2\\test\\shortcut.ico"

Is that a valid path format? If so, why can't it find the ico?

@d-mercier commented on GitHub (Apr 9, 2025): I ran into this issue for the first time a couple days ago. This is the first time I've used Ubuntu 24.04, previously had been using Ubuntu 20.04. I had exported the Ubuntu 24.04 distribution and then imported it again, into a new folder path with a new distribution name. ``` wsl --export Ubuntu-24.04 c:\temp\test.tar wsl --import test c:\wsl2\test c:\temp\test.tar ``` After opening terminal again the icon message immediately appears. In c:\wsl2\test is an Ubuntu shortcut.ico file that's referenced in the automatically created profile. This is the path in the profile (and the fragment file), but it can't be found by terminal: `"icon": "\\\\?\\c:\\wsl2\\test\\shortcut.ico"` Is that a valid path format? If so, why can't it find the ico?
Author
Owner

@DC2152993 commented on GitHub (Apr 15, 2025):

Hi everyone,

I ran into this issue for the first time yesterday.

Issue

This is the first time I've using Ubuntu 24.04. I created one distro initially and exported it as a backup. For some reason the current distro got corrupted (unrelated). So I imported again from the back up I took earlier.

wsl --import ubuntunew c:\ubuntunew C:\Users\ubuntunew

After opening terminal again the icon message immediately appeared.

Reason

In c:\ubuntunew was an Ubuntu shortcut.ico file that's referenced in the automatically created profile.

The path mentioned in the profile settings was "icon": "\\?\c:\Users\shortcut.ico". The format was incorrect, the correct path format should be : C:\ubuntunew\shortcut.ico

Solution

I copied the path of the image, pasted in the icon field in profile settings and voila!! The icon appeared.

Somehow during import, the path was not correctly created in the profile.

Steps :

  1. Open Terminal
  2. Beside your current tab, click on the dropdown
  3. There will be a settings option, click on that
  4. In the settings, locate your ubuntu profile, click on your profile
  5. Inside your profile check what is the path to the icon
  6. If the format is like this "\\?\c:\Users\shortcut.ico", go to your created profile folder, right click on the image and select "copy as path". Paste the copied path in the icon field of your profile settings.
  7. Save it. Your job will be done. Welcome!!
@DC2152993 commented on GitHub (Apr 15, 2025): Hi everyone, I ran into this issue for the first time yesterday. **Issue** This is the first time I've using Ubuntu 24.04. I created one distro initially and exported it as a backup. For some reason the current distro got corrupted (unrelated). So I imported again from the back up I took earlier. wsl --import ubuntunew c:\ubuntunew C:\Users\ubuntunew After opening terminal again the icon message immediately appeared. **Reason** In c:\ubuntunew was an Ubuntu shortcut.ico file that's referenced in the automatically created profile. The path mentioned in the profile settings was "icon": "\\\\?\\c:\\Users\\shortcut.ico". The format was incorrect, the correct path format should be : C:\ubuntunew\shortcut.ico **Solution** I copied the path of the image, pasted in the icon field in profile settings and voila!! The icon appeared. Somehow during import, the path was not correctly created in the profile. Steps : 1. Open Terminal 2. Beside your current tab, click on the dropdown 3. There will be a settings option, click on that 4. In the settings, locate your ubuntu profile, click on your profile 5. Inside your profile check what is the path to the icon 6. If the format is like this "\\\\?\\c:\\Users\\shortcut.ico", go to your created profile folder, right click on the image and select "copy as path". Paste the copied path in the icon field of your profile settings. 7. Save it. Your job will be done. Welcome!!
Author
Owner

@rkmfl commented on GitHub (May 3, 2025):

Steps :

  1. Open Terminal
  2. Beside your current tab, click on the dropdown
  3. There will be a settings option, click on that
  4. In the settings, locate your ubuntu profile, click on your profile
  5. Inside your profile check what is the path to the icon
  6. If the format is like this "\?\c:\Users\shortcut.ico", go to your created profile folder, right click on the image and select "copy as path". Paste the copied path in the icon field of your profile settings.
  7. Save it. Your job will be done. Welcome!!

Thank you so much, this fixed the issue for me.

@rkmfl commented on GitHub (May 3, 2025): > **Steps :** > 1. Open Terminal > 2. Beside your current tab, click on the dropdown > 3. There will be a settings option, click on that > 4. In the settings, locate your ubuntu profile, click on your profile > 5. Inside your profile check what is the path to the icon > 6. If the format is like this "\\?\c:\Users\shortcut.ico", go to your created profile folder, right click on the image and select "copy as path". Paste the copied path in the icon field of your profile settings. > 7. Save it. Your job will be done. Welcome!! Thank you so much, this fixed the issue for me.
Author
Owner

@demensdeum commented on GitHub (May 13, 2025):

Image
Got this error after installing Arch on WSL2, I guess Arch does not have icon, huh

@demensdeum commented on GitHub (May 13, 2025): ![Image](https://github.com/user-attachments/assets/97ee986c-412b-4f58-b642-0478117a0423) Got this error after installing Arch on WSL2, I guess Arch does not have icon, huh
Author
Owner

@nyamcoder commented on GitHub (May 21, 2025):

Hi, @arfadex try to delete the folder C:\Users\<user>\AppData\Local\Microsoft\Windows Terminal\Fragments\ It did the trick for me.

For me also, thanks a lot (though the icon path was correct). 👍

Yet before deletion back up your settings.json, since after it your collection of profiles will be gone, replaced by default ones for cmd and pwsh!

Your may try to replace the new settings.json with your backup then, or re-set your (backed up) profiles in the wt settings manually one by one.

@nyamcoder commented on GitHub (May 21, 2025): > Hi, [@arfadex](https://github.com/arfadex) try to delete the folder `C:\Users\<user>\AppData\Local\Microsoft\Windows Terminal\Fragments\` It did the trick for me. For me also, thanks a lot (though the icon path was correct). 👍 Yet before deletion back up your settings.json, since after it your collection of profiles will be gone, replaced by default ones for cmd and pwsh! Your may try to replace the new settings.json with your backup then, or re-set your (backed up) profiles in the wt settings manually one by one.
Author
Owner

@codedread commented on GitHub (May 29, 2025):

This happened to me after I deleted an auto-created WSL profile for Ubuntu-24.04... suddenly I started seeing this error. The above comment about the Fragments folder showed that this profile is now "hidden": true and had an invalid "icon" starting with "\\?\F:\...". Deleting that front "\\?\" fixed this error.

(I believe this bug should be reopened to fix the error)

@codedread commented on GitHub (May 29, 2025): This happened to me after I deleted an auto-created WSL profile for Ubuntu-24.04... suddenly I started seeing this error. The above comment about the Fragments folder showed that this profile is now "hidden": true and had an invalid "icon" starting with "\\\\?\\F:\\...". Deleting that front "\\\\?\\" fixed this error. (I believe this bug should be reopened to fix the error)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23038