Terminal crash when saving after deleting a profile #18200

Open
opened 2026-01-31 06:06:40 +00:00 by claunia · 0 comments
Owner

Originally created by @shueybubbles on GitHub (Aug 18, 2022).

Windows Terminal version

1.14.1962.0

Windows build number

Microsoft Windows [Version 10.0.19044.1889]

Other Software

No response

Steps to reproduce

Open Settings
Select the Windows Powershell profile
Delete it
Click Save

Expected Behavior

Profile to be deleted and no crash

Actual Behavior

Crash

>	KERNELBASE.dll!RaiseFailFastException(_EXCEPTION_RECORD * pExceptionRecord, _CONTEXT * pContextRecord, unsigned long dwFlags) Line 1201	C
 	combase.dll!RoFailFastWithErrorContextInternal2(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V2 * * aStowedExceptionPointers) Line 1455	C++
 	Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ProcessUnhandledError(DirectUI::ErrorInfo & errorInfo, unsigned int fSkipFailFastIfNoErrorContext, unsigned int * pfHandled) Line 616	C++
 	Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ReportUnhandledError(HRESULT hrError) Line 502	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::Tick() Line 1455	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage(HWND__ * msg, unsigned int lParam, unsigned __int64) Line 1041	C++
 	[Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::ProcessMessage(HWND__ *) Line 890	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 839	C++
 	Windows.UI.Xaml.dll!CDeferredInvoke::DispatchQueuedMessage(bool * dispatchedWork, bool * hasMoreWork) Line 301	C++
 	[Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::MessageTimerCallback() Line 1534	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::MessageTimerCallbackStatic(void * myUserData) Line 1526	C++
 	CoreMessaging.dll!System__Action$CallbackThunk(System::Delegate * _cn_pDelegate) Line 505	C++

ReportUnhandledError frame has this:



  | Name | Value | Type
-- | -- | -- | --
◢ | [CRestrictedError] | {_pszDescription=0x000001cc4213f660 L"The operation attempted to access data outside the valid range\r\n" ...} | combase.dll!CRestrictedError

I can share a DMP if needed.

Originally created by @shueybubbles on GitHub (Aug 18, 2022). ### Windows Terminal version 1.14.1962.0 ### Windows build number Microsoft Windows [Version 10.0.19044.1889] ### Other Software _No response_ ### Steps to reproduce Open Settings Select the Windows Powershell profile Delete it Click Save ### Expected Behavior Profile to be deleted and no crash ### Actual Behavior Crash ``` > KERNELBASE.dll!RaiseFailFastException(_EXCEPTION_RECORD * pExceptionRecord, _CONTEXT * pContextRecord, unsigned long dwFlags) Line 1201 C combase.dll!RoFailFastWithErrorContextInternal2(HRESULT hrError, unsigned long cStowedExceptions, _STOWED_EXCEPTION_INFORMATION_V2 * * aStowedExceptionPointers) Line 1455 C++ Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ProcessUnhandledError(DirectUI::ErrorInfo & errorInfo, unsigned int fSkipFailFastIfNoErrorContext, unsigned int * pfHandled) Line 616 C++ Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ReportUnhandledError(HRESULT hrError) Line 502 C++ Windows.UI.Xaml.dll!CXcpDispatcher::Tick() Line 1455 C++ Windows.UI.Xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage(HWND__ * msg, unsigned int lParam, unsigned __int64) Line 1041 C++ [Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::ProcessMessage(HWND__ *) Line 890 C++ Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 839 C++ Windows.UI.Xaml.dll!CDeferredInvoke::DispatchQueuedMessage(bool * dispatchedWork, bool * hasMoreWork) Line 301 C++ [Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::MessageTimerCallback() Line 1534 C++ Windows.UI.Xaml.dll!CXcpDispatcher::MessageTimerCallbackStatic(void * myUserData) Line 1526 C++ CoreMessaging.dll!System__Action$CallbackThunk(System::Delegate * _cn_pDelegate) Line 505 C++ ``` `ReportUnhandledError` frame has this: ```   | Name | Value | Type -- | -- | -- | -- ◢ | [CRestrictedError] | {_pszDescription=0x000001cc4213f660 L"The operation attempted to access data outside the valid range\r\n" ...} | combase.dll!CRestrictedError ``` I can share a DMP if needed.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:06:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18200