Settings can't be reloaded with a "threading" error #23756

Closed
opened 2026-01-31 08:51:40 +00:00 by claunia · 12 comments
Owner

Originally created by @Efreak on GitHub (Oct 26, 2025).

Windows Terminal version

1.24.2812.0

Windows build number

10.0.26200.6899

Other Software

Software that has been running when I see the error (usually no more than 2-3 tabs at a time):

  • CMD.exe (ie, just a blank terminal left open)
  • koboldcpp (running up to 4 small LLMs ranging from pythia 70m to llama 1b, a total of 3.88gb right now)
  • random programs that I happen to have left running (some dotnet dlls, calibre with debugger attached, some python/nodejs scripts, etc)
  • WSL2 environments
  • SSH connections (usually they're disconnected by the time I sit down)
  • cygwin bash shell

Steps to reproduce

Leave Windows Terminal running overnight. The error pops up on its own.

Expected Behavior

No errors without user input.
No reloading the settings file when it hasn't even changed (unless this is coming from before then?)

Actual Behavior

A window pops up with An outgoing call cannot be made since the application is dispatching an input-synchronous call.


Screenshot:

Image
Originally created by @Efreak on GitHub (Oct 26, 2025). ### Windows Terminal version 1.24.2812.0 ### Windows build number 10.0.26200.6899 ### Other Software Software that has been running when I see the error (usually no more than 2-3 tabs at a time): - CMD.exe (ie, just a blank terminal left open) - koboldcpp (running up to 4 small LLMs ranging from pythia 70m to llama 1b, a total of 3.88gb right now) - random programs that I happen to have left running (some dotnet dlls, calibre with debugger attached, some python/nodejs scripts, etc) - WSL2 environments - SSH connections (usually they're disconnected by the time I sit down) - cygwin bash shell ### Steps to reproduce Leave Windows Terminal running overnight. The error pops up on its own. ### Expected Behavior No errors without user input. No reloading the settings file when it hasn't even changed (unless this is coming from before then?) ### Actual Behavior A window pops up with *An outgoing call cannot be made since the application is dispatching an input-synchronous call*. -------- Screenshot: <img width="686" height="364" alt="Image" src="https://github.com/user-attachments/assets/ee6bd63b-25ec-4832-87b2-579777096dd0" />
claunia added the Area-SettingsIssue-BugNeeds-Tag-FixNeeds-ReproProduct-Terminal labels 2026-01-31 08:51:40 +00:00
Author
Owner

@Efreak commented on GitHub (Oct 26, 2025):

Note: This is currently also happening when I open a new instance of the terminal (either opening a new window from the start menu, or dragging an existing tab out of its window, even if it's the only tab in that window)

@Efreak commented on GitHub (Oct 26, 2025): Note: This is currently also happening when I open a new instance of the terminal (either opening a new window from the start menu, or dragging an existing tab out of its window, even if it's the only tab in that window)
Author
Owner

@codefox42 commented on GitHub (Oct 27, 2025):

I have also been seeing this message on several computers since at least October 20. I couldn't recognize a pattern yet, but leaving the terminal window open overnight would at least suit my situation.

@codefox42 commented on GitHub (Oct 27, 2025): I have also been seeing this message on several computers since at least October 20. I couldn't recognize a pattern yet, but leaving the terminal window open overnight would at least suit my situation.
Author
Owner

@lhecker commented on GitHub (Oct 27, 2025):

The yellow error message is quite helpful though. It's probably related to this then?
5ae95d7df0/src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp (L72-L92)

I wonder if we need to make the entire settings loading an async function...

@lhecker commented on GitHub (Oct 27, 2025): The yellow error message is quite helpful though. It's probably related to this then? https://github.com/microsoft/terminal/blob/5ae95d7df0ee3050ad36b98cd8f3f8d55005f0d2/src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp#L72-L92 I wonder if we need to make the entire settings loading an async function...
Author
Owner

@DHowett commented on GitHub (Oct 27, 2025):

Huh. I don't know why that would have changed, though?

@DHowett commented on GitHub (Oct 27, 2025): Huh. I don't know why that would have _changed_, though?
Author
Owner

@lhecker commented on GitHub (Oct 27, 2025):

Yeah, we have several new bugs that I'm not sure where they're coming from (e.g. the jumping scroll one, or the one with the trackpad). This one as well, shouldn't be affected by the windowing refactor, I think?

It's a long shot, but the only thing I can imagine what causes this is that previously we'd reload settings on a thread that's not a UI thread (it was the main()-thread for WindowEmperor).

@lhecker commented on GitHub (Oct 27, 2025): Yeah, we have several new bugs that I'm not sure where they're coming from (e.g. the jumping scroll one, or the one with the trackpad). This one as well, shouldn't be affected by the windowing refactor, I think? It's a long shot, but the only thing I can imagine what causes this is that previously we'd reload settings on a thread that's not a UI thread (it was the `main()`-thread for WindowEmperor).
Author
Owner

@BPJEnnova commented on GitHub (Nov 27, 2025):

For information: I got the same message but found out that the cause was PowerToys's "Light Switch" option. I had it set to Behavior Apps, and that apparently tries to change the settings when I switch between Light and Dark theme.

Just for information if someone else found this thread for that reason.

@BPJEnnova commented on GitHub (Nov 27, 2025): For information: I got the same message but found out that the cause was PowerToys's "Light Switch" option. I had it set to Behavior Apps, and that apparently tries to change the settings when I switch between Light and Dark theme. Just for information if someone else found this thread for that reason.
Author
Owner

@kchawla-pi commented on GitHub (Dec 12, 2025):

PowerToysReport_2025-12-12-13-34-04.zip
Clarifying that I observed the same behavior with Powertoys' Light Switch but not when switching color themes using "Windows Settings > Personalization"

The error does not appear when using Switch Theme option from Auto Dark Mode.

@kchawla-pi commented on GitHub (Dec 12, 2025): [PowerToysReport_2025-12-12-13-34-04.zip](https://github.com/user-attachments/files/24133446/PowerToysReport_2025-12-12-13-34-04.zip) Clarifying that I observed the same behavior with Powertoys' Light Switch but not when switching color themes using "Windows Settings > Personalization" The error does not appear when using Switch Theme option from Auto Dark Mode.
Author
Owner

@soerennielsen commented on GitHub (Dec 16, 2025):

I have also been seeing this message on several computers since at least October 20. I couldn't recognize a pattern yet, but leaving the terminal window open overnight would at least suit my situation.

Powertoys Light Switch was release around here.

I see the same errors and I also have light switch set to switch between light and dark (dark at evenings). What then happens is that the PC is woken the next morning and light switch will have a job of switching theme at the time when everything else is waking up. I often get the "Failed to reload settings" error after a resume, which often coincides with light switch activity.

@soerennielsen commented on GitHub (Dec 16, 2025): > I have also been seeing this message on several computers since at least October 20. I couldn't recognize a pattern yet, but leaving the terminal window open overnight would at least suit my situation. Powertoys Light Switch was release around here. I see the same errors and I also have light switch set to switch between light and dark (dark at evenings). What then happens is that the PC is woken the next morning and light switch will have a job of switching theme at the time when everything else is waking up. I often get the "Failed to reload settings" error after a resume, which often coincides with light switch activity.
Author
Owner

@BradKnowles commented on GitHub (Jan 14, 2026):

I'm also seeing this, but do not have PowerToys installed.

@BradKnowles commented on GitHub (Jan 14, 2026): I'm also seeing this, but do not have PowerToys installed.
Author
Owner

@soerennielsen commented on GitHub (Jan 17, 2026):

At the moment I can reliably reproduce by:

  1. Having one terminal (windows terminal) - does not matter if I have one or multiple tabs both powershell and msdos based tabs, one is enough.
  2. Win+R cmd to open a new terminal. The new terminal shows the error every single time

After a while I close all terminals, and then I'm back to it being non-reproducable.

The first terminal was a long running one that had persisted about 2 days and through multiple sleep cycles.

I believe the common denominator in the cases I've seen: It requires two different terminal, one of them having been through some powercycles/long lived. The first terminal seem to have some unreleased lock. I can look at handles etc. the next time it happens.

@soerennielsen commented on GitHub (Jan 17, 2026): At the moment I can reliably reproduce by: 1. Having one terminal (windows terminal) - does not matter if I have one or multiple tabs both powershell and msdos based tabs, one is enough. 2. Win+R cmd to open a new terminal. The new terminal shows the error every single time After a while I close all terminals, and then I'm back to it being non-reproducable. The first terminal was a long running one that had persisted about 2 days and through multiple sleep cycles. I believe the common denominator in the cases I've seen: It requires two different terminal, one of them having been through some powercycles/long lived. The first terminal seem to have some unreleased lock. I can look at handles etc. the next time it happens.
Author
Owner

@Efreak commented on GitHub (Jan 21, 2026):

Having power toys is not required to reproduce. I just reproduced this in a fresh install of Windows 11 that only has terminal and powershell installed (installed Windows, got myself fully up to date, installed some optional components/features like ssh server, then opened terminal to run a ps1 script from unigetui and the error popped up)

@Efreak commented on GitHub (Jan 21, 2026): Having power toys is not required to reproduce. I just reproduced this in a *fresh* install of Windows 11 that only has terminal and powershell installed (installed Windows, got myself fully up to date, installed some optional components/features like ssh server, then opened terminal to run a ps1 script from unigetui and the error popped up)
Author
Owner

@DHowett commented on GitHub (Jan 22, 2026):

We're backporting the band-aid fix for this issue to 1.23. :)

FWIW, I tried for about an hour and I couldn't reproduce it with any amount of app fragment profiles (which is where our threading issues are), theme changes or settings file updates. Alas.

@DHowett commented on GitHub (Jan 22, 2026): We're backporting the band-aid fix for this issue to 1.23. :) FWIW, I tried for about an hour and I couldn't reproduce it with any amount of app fragment profiles (which is where our threading issues are), theme changes or settings file updates. Alas.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23756