microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.78k stars 8.34k forks source link

Crash after START /MIN wt.exe and resizing #7396

Closed KalleOlaviNiemitalo closed 4 years ago

KalleOlaviNiemitalo commented 4 years ago

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.450]
Windows Terminal version (if applicable): Windows Terminal Preview 1.2.2234.0

Steps to reproduce

  1. Ensure that the wt.exe app execution alias of Windows Terminal Preview is enabled.
  2. Ensure that Windows Terminal Preview is not already running and not pinned to the task bar.
  3. Start Command Prompt.
  4. Run START /MIN wt.exe in Command Prompt.
  5. A task bar button for Windows Terminal Preview then appears.
  6. Left-click the task bar button of Windows Terminal Preview.

Expected behavior

The window of Windows Terminal Preview should be restored, as if I had started it normally and minimized the window from its title bar.

Actual behavior

The left-click does not have any immediately visible effect, but it affects the window preview that appears if the mouse cursor hovers over the task bar button of Windows Terminal Preview.

Then, hover again, and right-click the window preview. The system menu of the window appears. Choose Move from the menu. The mouse cursor jumps to the top left corner of the screen. Press an arrow key. Move the mouse cursor to the middle of the screen. The Windows Terminal Preview window follows the mouse cursor but it is abnormally small. Left-click to leave the window at the middle of the screen.

Grab the bottom edge of the window and drag it up. The window doubles its height for a moment and then disappears. Event Viewer shows an Application Error with exception code 0xc000027b in the Application log.

Filed https://aka.ms/AA9dftx at Feedback Hub.

KalleOlaviNiemitalo commented 4 years ago

I tried WinDbg but don't have 9D4980ABB5634B7E87196DA52320EC4A1\TerminalControlFullPDB.pdb.

E:\BA\3\s\src\inc\til\bitmap.h(283)\TerminalControl.dll!00007FFC79D76259: (caller: 00007FFC79D7685F) Exception(1) tid(c4c) 80070057 The parameter is incorrect.
(7c40.c4c): C++ EH exception - code e06d7363 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
KERNELBASE!RaiseException+0x69:
00007ffc`bd873e49 0f1f440000      nop     dword ptr [rax+rax]
2:004> k
Call stack in TerminalControl+0x2ab5 in Windows_UI_Xaml!DirectUI::FrameworkElement::RaiseLayoutUpdated+0x42 ``` # Child-SP RetAddr Call Site 00 0000007c`1b2fb6e0 00007ffc`a4dd6210 KERNELBASE!RaiseException+0x69 01 0000007c`1b2fb7c0 00007ffc`79d02ab5 VCRUNTIME140!_CxxThrowException+0x90 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\throw.cpp @ 75] 02 0000007c`1b2fb820 00007ffc`79d2c022 TerminalControl+0x2ab5 03 0000007c`1b2fb920 00007ffc`79d2c051 TerminalControl+0x2c022 04 0000007c`1b2fce10 00007ffc`79d2c081 TerminalControl+0x2c051 05 0000007c`1b2fce70 00007ffc`79d2bdd8 TerminalControl+0x2c081 06 0000007c`1b2fced0 00007ffc`79d76259 TerminalControl+0x2bdd8 07 0000007c`1b2fcf20 00007ffc`79d7685f TerminalControl!DllGetActivationFactory+0x412b9 08 0000007c`1b2fcfb0 00007ffc`79d6e9bb TerminalControl!DllGetActivationFactory+0x418bf 09 0000007c`1b2fd1b0 00007ffc`79d14f97 TerminalControl!DllGetActivationFactory+0x39a1b 0a 0000007c`1b2fd1f0 00007ffc`79d25790 TerminalControl+0x14f97 0b 0000007c`1b2fd580 00007ffc`a64cc9cf TerminalControl+0x25790 0c 0000007c`1b2fd5e0 00007ffc`a64cc8ca Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::Raise+0x7f [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 275] 0d 0000007c`1b2fd640 00007ffc`a64c1a42 Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::UntypedRaise+0x4a [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 248] 0e 0000007c`1b2fd680 00007ffc`a640d941 Windows_UI_Xaml!DirectUI::FrameworkElement::RaiseLayoutUpdated+0x42 [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkelement_partial.cpp @ 975] 0f 0000007c`1b2fd6b0 00007ffc`a63ea482 Windows_UI_Xaml!DirectUI::DXamlCore::OnLayoutUpdated+0x121 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2131] 10 0000007c`1b2fd710 00007ffc`a64568ac Windows_UI_Xaml!DirectUI::DXamlCore::RaiseEvent+0x252 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2032] 11 0000007c`1b2fd7b0 00007ffc`a6455b4e Windows_UI_Xaml!CLayoutManager::UpdateLayout+0x27c [onecoreuap\windows\dxaml\xcp\core\layout\layoutmanager.cpp @ 357] 12 0000007c`1b2fd840 00007ffc`a63f41bd Windows_UI_Xaml!CCoreServices::NWDrawTree+0x23e [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6288] 13 0000007c`1b2fd950 00007ffc`a63f404f Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xad [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6078] 14 0000007c`1b2fd9b0 00007ffc`a63f3f76 Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f [onecoreuap\windows\dxaml\xcp\core\compositor\windowrendertarget.cpp @ 136] 15 0000007c`1b2fd9f0 00007ffc`a648ce9d Windows_UI_Xaml!CXcpBrowserHost::OnTick+0x96 [onecoreuap\windows\dxaml\xcp\host\win\browserdesktop\winbrowserhost.cpp @ 545] 16 0000007c`1b2fda50 00007ffc`a648cda6 Windows_UI_Xaml!CXcpDispatcher::Tick+0x8d [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1449] 17 0000007c`1b2fda90 00007ffc`a6366299 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x42 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1041] 18 (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::ProcessMessage+0xc5 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 890] 19 0000007c`1b2fdad0 00007ffc`a63682bb Windows_UI_Xaml!CXcpDispatcher::WindowProc+0x119 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 839] 1a 0000007c`1b2fdb20 00007ffc`a63681ac Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0xcb [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 301] 1b (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallback+0x13 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1534] 1c 0000007c`1b2fdb70 00007ffc`b92b53cb Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1526] 1d 0000007c`1b2fdba0 00007ffc`b92dc7fb CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x11b 1e 0000007c`1b2fdc20 00007ffc`b92b995b CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18b 1f 0000007c`1b2fdcb0 00007ffc`b92b8e16 CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x6fb 20 0000007c`1b2fdde0 00007ffc`b92b7051 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1d6 21 0000007c`1b2fded0 00007ffc`b92b6e73 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf1 22 0000007c`1b2fdfb0 00007ffc`be2ee338 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0xa3 23 0000007c`1b2fe030 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 24 0000007c`1b2fe1c0 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 25 0000007c`1b2fe220 00007ffc`c008fbf4 user32!_fnDWORD+0x33 26 0000007c`1b2fe280 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 27 0000007c`1b2fe308 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 28 0000007c`1b2fe310 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 29 0000007c`1b2fe410 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 2a 0000007c`1b2fe450 00007ffc`ba2339b2 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 2b 0000007c`1b2fe490 00007ffc`ba21d769 UxTheme!OnDwpSysCommand+0x32 [shell\themes\uxtheme\nctheme.cpp @ 7573] 2c 0000007c`1b2fe4c0 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 2d 0000007c`1b2fe6a0 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 2e 0000007c`1b2fe6e0 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 2f 0000007c`1b2fe740 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 30 0000007c`1b2fe820 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 31 0000007c`1b2fe940 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 32 0000007c`1b2fe9c0 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 33 0000007c`1b2feb50 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 34 0000007c`1b2febb0 00007ffc`c008fbf4 user32!_fnDWORD+0x33 35 0000007c`1b2fec10 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 36 0000007c`1b2fec98 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 37 0000007c`1b2feca0 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 38 0000007c`1b2feda0 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 39 0000007c`1b2fede0 00007ffc`ba233907 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 3a 0000007c`1b2fee20 00007ffc`ba21d769 UxTheme!OnDwpNcLButtonDown+0xa7 [shell\themes\uxtheme\nctheme.cpp @ 7155] 3b 0000007c`1b2fee60 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 3c 0000007c`1b2ff040 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 3d 0000007c`1b2ff080 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 3e 0000007c`1b2ff0e0 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 3f 0000007c`1b2ff1c0 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 40 0000007c`1b2ff2e0 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 41 0000007c`1b2ff360 00007ffc`be2edd79 user32!UserCallWinProcCheckWow+0x2f8 42 0000007c`1b2ff4f0 00007ff6`c38d5369 user32!DispatchMessageWorker+0x249 43 0000007c`1b2ff570 00007ff6`c38e3122 WindowsTerminalFullPDB+0x5369 44 0000007c`1b2ff760 00007ffc`bf8e6fd4 WindowsTerminalFullPDB+0x13122 45 0000007c`1b2ff7a0 00007ffc`c003cec1 KERNEL32!BaseThreadInitThunk+0x14 46 0000007c`1b2ff7d0 00000000`00000000 ntdll!RtlUserThreadStart+0x21 ```
2:004> g
(7c40.c4c): C++ EH exception - code e06d7363 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
KERNELBASE!RaiseException+0x69:
00007ffc`bd873e49 0f1f440000      nop     dword ptr [rax+rax]
2:004> k
Call stack in TerminalControl+0x45db in VCRUNTIME140_1!__FrameHandler4::CxxCallCatchBlock+0x115 ``` # Child-SP RetAddr Call Site 00 0000007c`1b2f8260 00007ffc`a4dd6210 KERNELBASE!RaiseException+0x69 01 0000007c`1b2f8340 00007ffc`79d045db VCRUNTIME140!_CxxThrowException+0x90 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\throw.cpp @ 75] 02 0000007c`1b2f83a0 00007ffc`79d02bef TerminalControl+0x45db 03 0000007c`1b2f8460 00007ffc`79d050e4 TerminalControl+0x2bef 04 0000007c`1b2f84d0 00007ffc`79d55073 TerminalControl+0x50e4 05 0000007c`1b2f9570 00007ffc`79da35b2 TerminalControl!DllGetActivationFactory+0x200d3 06 0000007c`1b2f95c0 00007ffc`a4dc1080 TerminalControl!DllGetActivationFactory+0x6e612 07 0000007c`1b2f95f0 00007ffc`a4dc26b5 VCRUNTIME140_1!_CallSettingFrame_LookupContinuationIndex+0x20 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\amd64\handlers.asm @ 98] 08 0000007c`1b2f9620 00007ffc`c00904a6 VCRUNTIME140_1!__FrameHandler4::CxxCallCatchBlock+0x115 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\frame.cpp @ 1367] 09 0000007c`1b2f9700 00007ffc`79d6e9bb ntdll!RcConsolidateFrames+0x6 0a 0000007c`1b2fd1b0 00007ffc`79d14f97 TerminalControl!DllGetActivationFactory+0x39a1b 0b 0000007c`1b2fd1f0 00007ffc`79d25790 TerminalControl+0x14f97 0c 0000007c`1b2fd580 00007ffc`a64cc9cf TerminalControl+0x25790 0d 0000007c`1b2fd5e0 00007ffc`a64cc8ca Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::Raise+0x7f [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 275] 0e 0000007c`1b2fd640 00007ffc`a64c1a42 Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::UntypedRaise+0x4a [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 248] 0f 0000007c`1b2fd680 00007ffc`a640d941 Windows_UI_Xaml!DirectUI::FrameworkElement::RaiseLayoutUpdated+0x42 [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkelement_partial.cpp @ 975] 10 0000007c`1b2fd6b0 00007ffc`a63ea482 Windows_UI_Xaml!DirectUI::DXamlCore::OnLayoutUpdated+0x121 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2131] 11 0000007c`1b2fd710 00007ffc`a64568ac Windows_UI_Xaml!DirectUI::DXamlCore::RaiseEvent+0x252 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2032] 12 0000007c`1b2fd7b0 00007ffc`a6455b4e Windows_UI_Xaml!CLayoutManager::UpdateLayout+0x27c [onecoreuap\windows\dxaml\xcp\core\layout\layoutmanager.cpp @ 357] 13 0000007c`1b2fd840 00007ffc`a63f41bd Windows_UI_Xaml!CCoreServices::NWDrawTree+0x23e [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6288] 14 0000007c`1b2fd950 00007ffc`a63f404f Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xad [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6078] 15 0000007c`1b2fd9b0 00007ffc`a63f3f76 Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f [onecoreuap\windows\dxaml\xcp\core\compositor\windowrendertarget.cpp @ 136] 16 0000007c`1b2fd9f0 00007ffc`a648ce9d Windows_UI_Xaml!CXcpBrowserHost::OnTick+0x96 [onecoreuap\windows\dxaml\xcp\host\win\browserdesktop\winbrowserhost.cpp @ 545] 17 0000007c`1b2fda50 00007ffc`a648cda6 Windows_UI_Xaml!CXcpDispatcher::Tick+0x8d [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1449] 18 0000007c`1b2fda90 00007ffc`a6366299 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x42 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1041] 19 (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::ProcessMessage+0xc5 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 890] 1a 0000007c`1b2fdad0 00007ffc`a63682bb Windows_UI_Xaml!CXcpDispatcher::WindowProc+0x119 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 839] 1b 0000007c`1b2fdb20 00007ffc`a63681ac Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0xcb [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 301] 1c (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallback+0x13 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1534] 1d 0000007c`1b2fdb70 00007ffc`b92b53cb Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1526] 1e 0000007c`1b2fdba0 00007ffc`b92dc7fb CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x11b 1f 0000007c`1b2fdc20 00007ffc`b92b995b CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18b 20 0000007c`1b2fdcb0 00007ffc`b92b8e16 CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x6fb 21 0000007c`1b2fdde0 00007ffc`b92b7051 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1d6 22 0000007c`1b2fded0 00007ffc`b92b6e73 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf1 23 0000007c`1b2fdfb0 00007ffc`be2ee338 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0xa3 24 0000007c`1b2fe030 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 25 0000007c`1b2fe1c0 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 26 0000007c`1b2fe220 00007ffc`c008fbf4 user32!_fnDWORD+0x33 27 0000007c`1b2fe280 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 28 0000007c`1b2fe308 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 29 0000007c`1b2fe310 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 2a 0000007c`1b2fe410 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 2b 0000007c`1b2fe450 00007ffc`ba2339b2 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 2c 0000007c`1b2fe490 00007ffc`ba21d769 UxTheme!OnDwpSysCommand+0x32 [shell\themes\uxtheme\nctheme.cpp @ 7573] 2d 0000007c`1b2fe4c0 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 2e 0000007c`1b2fe6a0 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 2f 0000007c`1b2fe6e0 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 30 0000007c`1b2fe740 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 31 0000007c`1b2fe820 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 32 0000007c`1b2fe940 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 33 0000007c`1b2fe9c0 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 34 0000007c`1b2feb50 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 35 0000007c`1b2febb0 00007ffc`c008fbf4 user32!_fnDWORD+0x33 36 0000007c`1b2fec10 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 37 0000007c`1b2fec98 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 38 0000007c`1b2feca0 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 39 0000007c`1b2feda0 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 3a 0000007c`1b2fede0 00007ffc`ba233907 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 3b 0000007c`1b2fee20 00007ffc`ba21d769 UxTheme!OnDwpNcLButtonDown+0xa7 [shell\themes\uxtheme\nctheme.cpp @ 7155] 3c 0000007c`1b2fee60 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 3d 0000007c`1b2ff040 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 3e 0000007c`1b2ff080 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 3f 0000007c`1b2ff0e0 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 40 0000007c`1b2ff1c0 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 41 0000007c`1b2ff2e0 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 42 0000007c`1b2ff360 00007ffc`be2edd79 user32!UserCallWinProcCheckWow+0x2f8 43 0000007c`1b2ff4f0 00007ff6`c38d5369 user32!DispatchMessageWorker+0x249 44 0000007c`1b2ff570 00007ff6`c38e3122 WindowsTerminalFullPDB+0x5369 45 0000007c`1b2ff760 00007ffc`bf8e6fd4 WindowsTerminalFullPDB+0x13122 46 0000007c`1b2ff7a0 00007ffc`c003cec1 KERNEL32!BaseThreadInitThunk+0x14 47 0000007c`1b2ff7d0 00000000`00000000 ntdll!RtlUserThreadStart+0x21 ```
2:004> g
E:\BA\3\s\src\renderer\dx\DxRenderer.cpp(781)\TerminalControl.dll!00007FFC79DA35B2: (caller: 00007FFC79D14F97) ReturnHr(1) tid(c4c) 80070057 The parameter is incorrect.
    Msg:[E:\BA\3\s\src\inc\til\bitmap.h(283)\TerminalControl.dll!00007FFC79D76259: (caller: 00007FFC79D7685F) Exception(1) tid(c4c) 80070057 The parameter is incorrect.
] 
E:\BA\3\s\src\cascadia\TerminalControl\TermControl.cpp(632)\TerminalControl.dll!00007FFC79D15AE7: (caller: 00007FFC79D25790) Exception(2) tid(c4c) 80070057 The parameter is incorrect.
(7c40.c4c): C++ EH exception - code e06d7363 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
KERNELBASE!RaiseException+0x69:
00007ffc`bd873e49 0f1f440000      nop     dword ptr [rax+rax]
2:004> k
Call stack in TerminalControl+0x2ab5 in Windows_UI_Xaml!DirectUI::FrameworkElement::RaiseLayoutUpdated+0x42 ``` # Child-SP RetAddr Call Site 00 0000007c`1b2fb9b0 00007ffc`a4dd6210 KERNELBASE!RaiseException+0x69 01 0000007c`1b2fba90 00007ffc`79d02ab5 VCRUNTIME140!_CxxThrowException+0x90 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\throw.cpp @ 75] 02 0000007c`1b2fbaf0 00007ffc`79d2c022 TerminalControl+0x2ab5 03 0000007c`1b2fbbf0 00007ffc`79d2c051 TerminalControl+0x2c022 04 0000007c`1b2fd0e0 00007ffc`79d2c081 TerminalControl+0x2c051 05 0000007c`1b2fd140 00007ffc`79d2bdd8 TerminalControl+0x2c081 06 0000007c`1b2fd1a0 00007ffc`79d15ae7 TerminalControl+0x2bdd8 07 0000007c`1b2fd1f0 00007ffc`79d25790 TerminalControl+0x15ae7 08 0000007c`1b2fd580 00007ffc`a64cc9cf TerminalControl+0x25790 09 0000007c`1b2fd5e0 00007ffc`a64cc8ca Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::Raise+0x7f [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 275] 0a 0000007c`1b2fd640 00007ffc`a64c1a42 Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::UntypedRaise+0x4a [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 248] 0b 0000007c`1b2fd680 00007ffc`a640d941 Windows_UI_Xaml!DirectUI::FrameworkElement::RaiseLayoutUpdated+0x42 [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkelement_partial.cpp @ 975] 0c 0000007c`1b2fd6b0 00007ffc`a63ea482 Windows_UI_Xaml!DirectUI::DXamlCore::OnLayoutUpdated+0x121 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2131] 0d 0000007c`1b2fd710 00007ffc`a64568ac Windows_UI_Xaml!DirectUI::DXamlCore::RaiseEvent+0x252 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2032] 0e 0000007c`1b2fd7b0 00007ffc`a6455b4e Windows_UI_Xaml!CLayoutManager::UpdateLayout+0x27c [onecoreuap\windows\dxaml\xcp\core\layout\layoutmanager.cpp @ 357] 0f 0000007c`1b2fd840 00007ffc`a63f41bd Windows_UI_Xaml!CCoreServices::NWDrawTree+0x23e [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6288] 10 0000007c`1b2fd950 00007ffc`a63f404f Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xad [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6078] 11 0000007c`1b2fd9b0 00007ffc`a63f3f76 Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f [onecoreuap\windows\dxaml\xcp\core\compositor\windowrendertarget.cpp @ 136] 12 0000007c`1b2fd9f0 00007ffc`a648ce9d Windows_UI_Xaml!CXcpBrowserHost::OnTick+0x96 [onecoreuap\windows\dxaml\xcp\host\win\browserdesktop\winbrowserhost.cpp @ 545] 13 0000007c`1b2fda50 00007ffc`a648cda6 Windows_UI_Xaml!CXcpDispatcher::Tick+0x8d [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1449] 14 0000007c`1b2fda90 00007ffc`a6366299 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x42 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1041] 15 (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::ProcessMessage+0xc5 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 890] 16 0000007c`1b2fdad0 00007ffc`a63682bb Windows_UI_Xaml!CXcpDispatcher::WindowProc+0x119 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 839] 17 0000007c`1b2fdb20 00007ffc`a63681ac Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0xcb [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 301] 18 (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallback+0x13 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1534] 19 0000007c`1b2fdb70 00007ffc`b92b53cb Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1526] 1a 0000007c`1b2fdba0 00007ffc`b92dc7fb CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x11b 1b 0000007c`1b2fdc20 00007ffc`b92b995b CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18b 1c 0000007c`1b2fdcb0 00007ffc`b92b8e16 CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x6fb 1d 0000007c`1b2fdde0 00007ffc`b92b7051 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1d6 1e 0000007c`1b2fded0 00007ffc`b92b6e73 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf1 1f 0000007c`1b2fdfb0 00007ffc`be2ee338 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0xa3 20 0000007c`1b2fe030 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 21 0000007c`1b2fe1c0 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 22 0000007c`1b2fe220 00007ffc`c008fbf4 user32!_fnDWORD+0x33 23 0000007c`1b2fe280 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 24 0000007c`1b2fe308 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 25 0000007c`1b2fe310 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 26 0000007c`1b2fe410 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 27 0000007c`1b2fe450 00007ffc`ba2339b2 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 28 0000007c`1b2fe490 00007ffc`ba21d769 UxTheme!OnDwpSysCommand+0x32 [shell\themes\uxtheme\nctheme.cpp @ 7573] 29 0000007c`1b2fe4c0 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 2a 0000007c`1b2fe6a0 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 2b 0000007c`1b2fe6e0 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 2c 0000007c`1b2fe740 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 2d 0000007c`1b2fe820 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 2e 0000007c`1b2fe940 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 2f 0000007c`1b2fe9c0 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 30 0000007c`1b2feb50 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 31 0000007c`1b2febb0 00007ffc`c008fbf4 user32!_fnDWORD+0x33 32 0000007c`1b2fec10 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 33 0000007c`1b2fec98 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 34 0000007c`1b2feca0 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 35 0000007c`1b2feda0 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 36 0000007c`1b2fede0 00007ffc`ba233907 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 37 0000007c`1b2fee20 00007ffc`ba21d769 UxTheme!OnDwpNcLButtonDown+0xa7 [shell\themes\uxtheme\nctheme.cpp @ 7155] 38 0000007c`1b2fee60 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 39 0000007c`1b2ff040 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 3a 0000007c`1b2ff080 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 3b 0000007c`1b2ff0e0 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 3c 0000007c`1b2ff1c0 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 3d 0000007c`1b2ff2e0 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 3e 0000007c`1b2ff360 00007ffc`be2edd79 user32!UserCallWinProcCheckWow+0x2f8 3f 0000007c`1b2ff4f0 00007ff6`c38d5369 user32!DispatchMessageWorker+0x249 40 0000007c`1b2ff570 00007ff6`c38e3122 WindowsTerminalFullPDB+0x5369 41 0000007c`1b2ff760 00007ffc`bf8e6fd4 WindowsTerminalFullPDB+0x13122 42 0000007c`1b2ff7a0 00007ffc`c003cec1 KERNEL32!BaseThreadInitThunk+0x14 43 0000007c`1b2ff7d0 00000000`00000000 ntdll!RtlUserThreadStart+0x21 ```
2:004> g
(7c40.c4c): C++ EH exception - code e06d7363 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
KERNELBASE!RaiseException+0x69:
00007ffc`bd873e49 0f1f440000      nop     dword ptr [rax+rax]
2:004> k
Call stack in TerminalControl+0x45db in VCRUNTIME140_1!__FrameHandler4::CxxCallCatchBlock+0x115 ``` # Child-SP RetAddr Call Site 00 0000007c`1b2f8430 00007ffc`a4dd6210 KERNELBASE!RaiseException+0x69 01 0000007c`1b2f8510 00007ffc`79d045db VCRUNTIME140!_CxxThrowException+0x90 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\throw.cpp @ 75] 02 0000007c`1b2f8570 00007ffc`79d02bef TerminalControl+0x45db 03 0000007c`1b2f8630 00007ffc`79d050e4 TerminalControl+0x2bef 04 0000007c`1b2f86a0 00007ffc`79d045f5 TerminalControl+0x50e4 05 0000007c`1b2f9740 00007ffc`79d0d05d TerminalControl+0x45f5 06 0000007c`1b2f9790 00007ffc`79d9fb6e TerminalControl+0xd05d 07 0000007c`1b2f9850 00007ffc`a4dc1080 TerminalControl!DllGetActivationFactory+0x6abce 08 0000007c`1b2f9880 00007ffc`a4dc26b5 VCRUNTIME140_1!_CallSettingFrame_LookupContinuationIndex+0x20 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\amd64\handlers.asm @ 98] 09 0000007c`1b2f98b0 00007ffc`c00904a6 VCRUNTIME140_1!__FrameHandler4::CxxCallCatchBlock+0x115 [d:\agent\_work\3\s\src\vctools\crt\vcruntime\src\eh\frame.cpp @ 1367] 0a 0000007c`1b2f9990 00007ffc`79d25790 ntdll!RcConsolidateFrames+0x6 0b 0000007c`1b2fd580 00007ffc`a64cc9cf TerminalControl+0x25790 0c 0000007c`1b2fd5e0 00007ffc`a64cc8ca Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::Raise+0x7f [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 275] 0d 0000007c`1b2fd640 00007ffc`a64c1a42 Windows_UI_Xaml!DirectUI::CEventSourceBase,IInspectable,IInspectable>::UntypedRaise+0x4a [onecoreuap\windows\dxaml\xcp\dxaml\lib\JoltClasses.h @ 248] 0e 0000007c`1b2fd680 00007ffc`a640d941 Windows_UI_Xaml!DirectUI::FrameworkElement::RaiseLayoutUpdated+0x42 [onecoreuap\windows\dxaml\xcp\dxaml\lib\frameworkelement_partial.cpp @ 975] 0f 0000007c`1b2fd6b0 00007ffc`a63ea482 Windows_UI_Xaml!DirectUI::DXamlCore::OnLayoutUpdated+0x121 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2131] 10 0000007c`1b2fd710 00007ffc`a64568ac Windows_UI_Xaml!DirectUI::DXamlCore::RaiseEvent+0x252 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2032] 11 0000007c`1b2fd7b0 00007ffc`a6455b4e Windows_UI_Xaml!CLayoutManager::UpdateLayout+0x27c [onecoreuap\windows\dxaml\xcp\core\layout\layoutmanager.cpp @ 357] 12 0000007c`1b2fd840 00007ffc`a63f41bd Windows_UI_Xaml!CCoreServices::NWDrawTree+0x23e [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6288] 13 0000007c`1b2fd950 00007ffc`a63f404f Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xad [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6078] 14 0000007c`1b2fd9b0 00007ffc`a63f3f76 Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f [onecoreuap\windows\dxaml\xcp\core\compositor\windowrendertarget.cpp @ 136] 15 0000007c`1b2fd9f0 00007ffc`a648ce9d Windows_UI_Xaml!CXcpBrowserHost::OnTick+0x96 [onecoreuap\windows\dxaml\xcp\host\win\browserdesktop\winbrowserhost.cpp @ 545] 16 0000007c`1b2fda50 00007ffc`a648cda6 Windows_UI_Xaml!CXcpDispatcher::Tick+0x8d [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1449] 17 0000007c`1b2fda90 00007ffc`a6366299 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x42 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1041] 18 (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::ProcessMessage+0xc5 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 890] 19 0000007c`1b2fdad0 00007ffc`a63682bb Windows_UI_Xaml!CXcpDispatcher::WindowProc+0x119 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 839] 1a 0000007c`1b2fdb20 00007ffc`a63681ac Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0xcb [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 301] 1b (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallback+0x13 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1534] 1c 0000007c`1b2fdb70 00007ffc`b92b53cb Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1526] 1d 0000007c`1b2fdba0 00007ffc`b92dc7fb CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x11b 1e 0000007c`1b2fdc20 00007ffc`b92b995b CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18b 1f 0000007c`1b2fdcb0 00007ffc`b92b8e16 CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x6fb 20 0000007c`1b2fdde0 00007ffc`b92b7051 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1d6 21 0000007c`1b2fded0 00007ffc`b92b6e73 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf1 22 0000007c`1b2fdfb0 00007ffc`be2ee338 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0xa3 23 0000007c`1b2fe030 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 24 0000007c`1b2fe1c0 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 25 0000007c`1b2fe220 00007ffc`c008fbf4 user32!_fnDWORD+0x33 26 0000007c`1b2fe280 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 27 0000007c`1b2fe308 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 28 0000007c`1b2fe310 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 29 0000007c`1b2fe410 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 2a 0000007c`1b2fe450 00007ffc`ba2339b2 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 2b 0000007c`1b2fe490 00007ffc`ba21d769 UxTheme!OnDwpSysCommand+0x32 [shell\themes\uxtheme\nctheme.cpp @ 7573] 2c 0000007c`1b2fe4c0 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 2d 0000007c`1b2fe6a0 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 2e 0000007c`1b2fe6e0 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 2f 0000007c`1b2fe740 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 30 0000007c`1b2fe820 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 31 0000007c`1b2fe940 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 32 0000007c`1b2fe9c0 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 33 0000007c`1b2feb50 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 34 0000007c`1b2febb0 00007ffc`c008fbf4 user32!_fnDWORD+0x33 35 0000007c`1b2fec10 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 36 0000007c`1b2fec98 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 37 0000007c`1b2feca0 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 38 0000007c`1b2feda0 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 39 0000007c`1b2fede0 00007ffc`ba233907 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 3a 0000007c`1b2fee20 00007ffc`ba21d769 UxTheme!OnDwpNcLButtonDown+0xa7 [shell\themes\uxtheme\nctheme.cpp @ 7155] 3b 0000007c`1b2fee60 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 3c 0000007c`1b2ff040 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 3d 0000007c`1b2ff080 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 3e 0000007c`1b2ff0e0 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 3f 0000007c`1b2ff1c0 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 40 0000007c`1b2ff2e0 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 41 0000007c`1b2ff360 00007ffc`be2edd79 user32!UserCallWinProcCheckWow+0x2f8 42 0000007c`1b2ff4f0 00007ff6`c38d5369 user32!DispatchMessageWorker+0x249 43 0000007c`1b2ff570 00007ff6`c38e3122 WindowsTerminalFullPDB+0x5369 44 0000007c`1b2ff760 00007ffc`bf8e6fd4 WindowsTerminalFullPDB+0x13122 45 0000007c`1b2ff7a0 00007ffc`c003cec1 KERNEL32!BaseThreadInitThunk+0x14 46 0000007c`1b2ff7d0 00000000`00000000 ntdll!RtlUserThreadStart+0x21 ```
2:004> g
TerminalControl.dll!00007FFC79D9FB6E: ReturnHr(2) tid(c4c) 80070057 The parameter is incorrect.
    Msg:[E:\BA\3\s\src\cascadia\TerminalControl\TermControl.cpp(632)\TerminalControl.dll!00007FFC79D15AE7: (caller: 00007FFC79D25790) Exception(2) tid(c4c) 80070057 The parameter is incorrect.
] 
onecore\com\combase\dcomrem\preventrundownbias.cpp(1310)\combase.dll!00007FFCBF50681C: (caller: 00007FFCBF506649) LogHr(1) tid(5be8) 80070005 Access is denied.
(7c40.c4c): Unknown exception - code c000027b (!!! second chance !!!)
KERNELBASE!RaiseFailFastException+0x15c:
00007ffc`bd95b3cc 0f1f440000      nop     dword ptr [rax+rax]
2:004> k
Call stack in Windows_UI_Xaml!DirectUI::ErrorHelper::ProcessUnhandledError+0xf4 ``` # Child-SP RetAddr Call Site 00 0000007c`1b2fce10 00007ffc`bf64bfca KERNELBASE!RaiseFailFastException+0x15c 01 0000007c`1b2fd3f0 00007ffc`a6967370 combase!RoFailFastWithErrorContextInternal2+0x43a [onecore\com\combase\winrt\error\error.cpp @ 1455] 02 0000007c`1b2fd650 00007ffc`a6967581 Windows_UI_Xaml!DirectUI::ErrorHelper::ProcessUnhandledError+0xf4 [onecoreuap\windows\dxaml\xcp\dxaml\lib\errorhelper.cpp @ 616] 03 0000007c`1b2fd690 00007ffc`a6624491 Windows_UI_Xaml!DirectUI::ErrorHelper::ReportUnhandledError+0xf1 [onecoreuap\windows\dxaml\xcp\dxaml\lib\errorhelper.cpp @ 502] 04 0000007c`1b2fd710 00007ffc`a64568ac Windows_UI_Xaml!DirectUI::DXamlCore::RaiseEvent+0x23a261 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 2101] 05 0000007c`1b2fd7b0 00007ffc`a6455b4e Windows_UI_Xaml!CLayoutManager::UpdateLayout+0x27c [onecoreuap\windows\dxaml\xcp\core\layout\layoutmanager.cpp @ 357] 06 0000007c`1b2fd840 00007ffc`a63f41bd Windows_UI_Xaml!CCoreServices::NWDrawTree+0x23e [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6288] 07 0000007c`1b2fd950 00007ffc`a63f404f Windows_UI_Xaml!CCoreServices::NWDrawMainTree+0xad [onecoreuap\windows\dxaml\xcp\core\dll\xcpcore.cpp @ 6078] 08 0000007c`1b2fd9b0 00007ffc`a63f3f76 Windows_UI_Xaml!CWindowRenderTarget::Draw+0x6f [onecoreuap\windows\dxaml\xcp\core\compositor\windowrendertarget.cpp @ 136] 09 0000007c`1b2fd9f0 00007ffc`a648ce9d Windows_UI_Xaml!CXcpBrowserHost::OnTick+0x96 [onecoreuap\windows\dxaml\xcp\host\win\browserdesktop\winbrowserhost.cpp @ 545] 0a 0000007c`1b2fda50 00007ffc`a648cda6 Windows_UI_Xaml!CXcpDispatcher::Tick+0x8d [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1449] 0b 0000007c`1b2fda90 00007ffc`a6366299 Windows_UI_Xaml!CXcpDispatcher::OnReentrancyProtectedWindowMessage+0x42 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1041] 0c (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::ProcessMessage+0xc5 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 890] 0d 0000007c`1b2fdad0 00007ffc`a63682bb Windows_UI_Xaml!CXcpDispatcher::WindowProc+0x119 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 839] 0e 0000007c`1b2fdb20 00007ffc`a63681ac Windows_UI_Xaml!CDeferredInvoke::DispatchQueuedMessage+0xcb [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 301] 0f (Inline Function) --------`-------- Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallback+0x13 [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1534] 10 0000007c`1b2fdb70 00007ffc`b92b53cb Windows_UI_Xaml!CXcpDispatcher::MessageTimerCallbackStatic+0x1c [onecoreuap\windows\dxaml\xcp\win\shared\xcpwindow.cpp @ 1526] 11 0000007c`1b2fdba0 00007ffc`b92dc7fb CoreMessaging!Microsoft__CoreUI__Dispatch__TimeoutHandler$CallbackThunk+0x11b 12 0000007c`1b2fdc20 00007ffc`b92b995b CoreMessaging!Microsoft::CoreUI::Dispatch::TimeoutManager::Callback_OnDispatch+0x18b 13 0000007c`1b2fdcb0 00007ffc`b92b8e16 CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x6fb 14 0000007c`1b2fdde0 00007ffc`b92b7051 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x1d6 15 0000007c`1b2fded0 00007ffc`b92b6e73 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_DoWork+0xf1 16 0000007c`1b2fdfb0 00007ffc`be2ee338 CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter_WindowProc+0xa3 17 0000007c`1b2fe030 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 18 0000007c`1b2fe1c0 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 19 0000007c`1b2fe220 00007ffc`c008fbf4 user32!_fnDWORD+0x33 1a 0000007c`1b2fe280 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 1b 0000007c`1b2fe308 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 1c 0000007c`1b2fe310 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 1d 0000007c`1b2fe410 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 1e 0000007c`1b2fe450 00007ffc`ba2339b2 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 1f 0000007c`1b2fe490 00007ffc`ba21d769 UxTheme!OnDwpSysCommand+0x32 [shell\themes\uxtheme\nctheme.cpp @ 7573] 20 0000007c`1b2fe4c0 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 21 0000007c`1b2fe6a0 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 22 0000007c`1b2fe6e0 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 23 0000007c`1b2fe740 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 24 0000007c`1b2fe820 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 25 0000007c`1b2fe940 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 26 0000007c`1b2fe9c0 00007ffc`be2edebc user32!UserCallWinProcCheckWow+0x2f8 27 0000007c`1b2feb50 00007ffc`be3006a3 user32!DispatchClientMessage+0x9c 28 0000007c`1b2febb0 00007ffc`c008fbf4 user32!_fnDWORD+0x33 29 0000007c`1b2fec10 00007ffc`bdf51124 ntdll!KiUserCallbackDispatcherContinue 2a 0000007c`1b2fec98 00007ffc`be2ecaf5 win32u!NtUserMessageCall+0x14 2b 0000007c`1b2feca0 00007ffc`be2ec2af user32!RealDefWindowProcWorker+0x1f5 2c 0000007c`1b2feda0 00007ffc`ba219b52 user32!RealDefWindowProcW+0x4f 2d 0000007c`1b2fede0 00007ffc`ba233907 UxTheme!DoMsgDefault+0x2e [shell\themes\uxtheme\handlers.cpp @ 550] 2e 0000007c`1b2fee20 00007ffc`ba21d769 UxTheme!OnDwpNcLButtonDown+0xa7 [shell\themes\uxtheme\nctheme.cpp @ 7155] 2f 0000007c`1b2fee60 00007ffc`ba21d1d1 UxTheme!_ThemeDefWindowProc+0x589 [shell\themes\uxtheme\sethook.cpp @ 1072] 30 0000007c`1b2ff040 00007ffc`be2ec7e3 UxTheme!ThemeDefWindowProcW+0x11 [shell\themes\uxtheme\sethook.cpp @ 1114] 31 0000007c`1b2ff080 00007ff6`c38dc653 user32!DefWindowProcW+0x1a3 32 0000007c`1b2ff0e0 00007ff6`c38e0658 WindowsTerminalFullPDB+0xc653 33 0000007c`1b2ff1c0 00007ff6`c38dd406 WindowsTerminalFullPDB+0x10658 34 0000007c`1b2ff2e0 00007ffc`be2ee338 WindowsTerminalFullPDB+0xd406 35 0000007c`1b2ff360 00007ffc`be2edd79 user32!UserCallWinProcCheckWow+0x2f8 36 0000007c`1b2ff4f0 00007ff6`c38d5369 user32!DispatchMessageWorker+0x249 37 0000007c`1b2ff570 00007ff6`c38e3122 WindowsTerminalFullPDB+0x5369 38 0000007c`1b2ff760 00007ffc`bf8e6fd4 WindowsTerminalFullPDB+0x13122 39 0000007c`1b2ff7a0 00007ffc`c003cec1 KERNEL32!BaseThreadInitThunk+0x14 3a 0000007c`1b2ff7d0 00000000`00000000 ntdll!RtlUserThreadStart+0x21 ```
KalleOlaviNiemitalo commented 4 years ago

I cannot reproduce the crash in Windows Terminal 1.3.2651.0 or Windows Terminal Preview 1.4.2652.0, on Microsoft Windows [Version 10.0.19041.508]. Therefore closing.

DHowett commented 4 years ago

That’s rather more alarming given we haven’t changed anything (!)

KalleOlaviNiemitalo commented 4 years ago

Retested:

  1. Deleted settings.json.
  2. Tested Windows Terminal Preview 1.4.2652.0. Cannot reproduce.
  3. Downgraded to Microsoft.WindowsTerminalPreview_1.2.2234.0_8wekyb3d8bbwe.msixbundle.
  4. Deleted settings.json.
  5. Tested Windows Terminal Preview 1.2.2234.0. It crashes.
KalleOlaviNiemitalo commented 4 years ago

Can you see from telemetry whether users are still getting crashes like that, and on which versions?