Settings reload appears to ignore changes, rewrite file with _Defaults_ #1759

Closed
opened 2026-01-30 22:35:44 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (Jun 19, 2019).

We're still actively investigating this, but I this seems real.

May be related to the following error message being logged

c:\users\migrie\dev\private\openconsole\src\cascadia\terminalapp\cascadiasettingsserialization.cpp(265)\TerminalApp.dll!00007FFEB9122BC4: (caller: 00007FFEB9121641) LogHr(1) tid(66a8) 80070020 The process cannot access the file because it is being used by another process.
    [TerminalApp::CascadiaSettings::_ReadSettings]

Possibly related to #1293 but we're unsure how that could be it

Originally created by @zadjii-msft on GitHub (Jun 19, 2019). We're still actively investigating this, but I this seems real. May be related to the following error message being logged ``` c:\users\migrie\dev\private\openconsole\src\cascadia\terminalapp\cascadiasettingsserialization.cpp(265)\TerminalApp.dll!00007FFEB9122BC4: (caller: 00007FFEB9121641) LogHr(1) tid(66a8) 80070020 The process cannot access the file because it is being used by another process. [TerminalApp::CascadiaSettings::_ReadSettings] ``` Possibly related to #1293 but we're unsure how that could be it
claunia added the Area-SettingsIssue-BugProduct-TerminalSeverity-DataLoss labels 2026-01-30 22:35:45 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jun 19, 2019):

This definitely repros with a single terminal window open.

In CascadiaSettings::_ReadSettings, when we attempt to read the file, we fail to open the file for reading. CreateFile fails with GLE=0x80070020, which is ERROR_SHARING_VIOLATION.

It probably also fails with many terminals.

@zadjii-msft commented on GitHub (Jun 19, 2019): This definitely repros with a single terminal window open. In `CascadiaSettings::_ReadSettings`, when we attempt to read the file, we fail to open the file for reading. `CreateFile` fails with GLE=`0x80070020`, which is `ERROR_SHARING_VIOLATION`. It probably _also_ fails with _many_ terminals.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1759