microsoft / microsoft/microsoft-ui-xaml
Fail fast crash from Microsoft.InputStateManager.dll, seems related to touchpad input
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
I am seeing quite a lot of crashes in the Partner Center from my WinUI 3 app published in the Store with the title `FAIL_FAST_FATAL_APP_EXIT_8000ffff_Microsoft.InputStateManager.dll!InProcInputHandler::QueueAndDeliverFrame`. The devices listed are Latitude 3420 and TravelLite TL14-52M (both laptops with touchpads) on Windows build 10.0.26200. Here is the stack trace.
```
KERNELBASE.dll | RaiseFailFastException | 0x0000000000000188
Microsoft.InputStateManager.dll | wil::details::WilDynamicLoadRaiseFailFastException | 0x0000000000000054
Microsoft.InputStateManager.dll | wil::details::WilRaiseFailFastException | 0x0000000000000017
Microsoft.InputStateManager.dll | wil::details::WilFailFast | 0x00000000000000A6
Microsoft.InputStateManager.dll | wil::details::ReportFailure_NoReturn_3_ | 0x0000000000000296
Microsoft.InputStateManager.dll | wil::details::ReportFailure_Base_3,0_ | 0x0000000000000030
Microsoft.InputStateManager.dll | wil::details::ReportFailure_Hr_3_ | 0x000000000000005A
Microsoft.InputStateManager.dll | wil::details::in1diag3::FailFast_Unexpected | 0x0000000000000024
Microsoft.InputStateManager.dll | wil::details::in1diag3::FailFast_If | 0x000000000000089A
Microsoft.InputStateManager.dll | InProcInputHandler::QueueAndDeliverFrame | 0x0000000000000B0F
Microsoft.InputStateManager.dll | std::_Func_class_void,PointerFrame const &,bool_::operator | 0x0000000000000029
Microsoft.InputStateManager.dll | LiftedFrameBuilder::EnqueueFrame | 0x0000000000000059
Microsoft.InputStateManager.dll | LiftedFrameBuilder::AddPointerToFrame | 0x00000000000000B4
Microsoft.InputStateManager.dll | InProcInputHandler::BuildPointerFrame | 0x000000000000005C
Microsoft.InputStateManager.dll | InProcInputHandler::ProcessPointerInput | 0x0000000000000261
Microsoft.InputStateManager.dll | InputSinkInfrastructure::ProcessTouchpadInput::__l3::_lambda_1_::operator | 0x0000000000000046
Microsoft.InputStateManager.dll | std::invoke | 0x0000000000000046
Microsoft.InputStateManager.dll | std::_Func_impl_no_alloc_`InputSinkInfrastructure::ProcessTouchpadInput'::`3'::_lambda_1_,void_::_Do_call | 0x000000000000004C
Microsoft.InputStateManager.dll | std::_Func_class_void_::operator | 0x0000000000000015
Microsoft.InputStateManager.dll | DeferInvokeOnMessageSession::__l2::_lambda_1_::operator | 0x000000000000001A
Microsoft.InputStateManager.dll | `DeferInvokeOnMessageSession'::`2'::_lambda_1_::_lambda_invoker_cdecl_ | 0x000000000000002C
CoreMessagingXP.dll | Microsoft::CoreUI::ActionCallback::ImportAdapter$::__l2::_lambda_a81ff790741c2a62f2197c2561f5fe49_::operator | 0x0000000000000014
CoreMessagingXP.dll | CFlat::SehSafe::Execute__lambda_a81ff790741c2a62f2197c2561f5fe49_ _ | 0x0000000000000021
CoreMessagingXP.dll | Microsoft::CoreUI::ActionCallback::ImportAdapter$ | 0x0000000000000066
CoreMessagingXP.dll | CFlat::DelegateImpl_Microsoft::CoreUI::ActionCallback,0,void __cdecl(void),long __cdecl(void *),0_::Invoke | 0x0000000000000013
CoreMessagingXP.dll | Microsoft::CoreUI::Support::ActivationContext::CallbackWithActivationContext | 0x0000000000000054
CoreMessagingXP.dll | Microsoft::CoreUI::Messaging::MessageSession::Callback_InvokeDeferInvoke | 0x0000000000000060
CoreMessagingXP.dll | CFlat::DelegateImpl_System::Action$2_CFlat::SmartPtr_Microsoft::CoreUI::ActionCallback_,System::UIntPtr_,0,void __cdecl(Microsoft::CoreUI::ActionCallback *,System::UIntPtr),void,0_::Invoke | 0x0000000000000016
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch | 0x00000000000006C7
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch | 0x0000000000000102
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchNextItem | 0x00000000000001BC
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchLoop | 0x00000000000001B9
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop | 0x0000000000000164
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue | 0x000000000000015A
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch | 0x0000000000000098
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatchRaw | 0x000000000000004E
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::UserAdapter::DoWork | 0x00000000000000A7
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::UserAdapter::HandleDispatchNotifyMessage | 0x0000000000000132
CoreMessagingXP.dll | Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc | 0x000000000000005E
user32.dll | UserCallWinProcCheckWow | 0x0000000000000356
user32.dll | DispatchClientMessage | 0x000000000000009C
user32.dll | __fnDWORD | 0x0000000000000033
ntdll.dll | KiUserCallbackDispatcherContinue | 0x0000000000000000
win32u.dll | ZwUserPeekMessage | 0x0000000000000014
user32.dll | _PeekMessage | 0x000000000000003F
user32.dll | PeekMessageW | 0x0000000000000168
dwmcorei.dll | CLocalMit::Run | 0x000000000000015E
kernel32.dll | BaseThreadInitThunk | 0x0000000000000017
ntdll.dll | RtlUserThreadStart | 0x000000000000002C
```
I noticed the `ProcessTouchpadInput` function in the stack trace.
Seems potentially related to this issue - https://github.com/microsoft/microsoft-ui-xaml/issues/10929
### Steps to reproduce the bug
See description
### Expected behavior
No crash
### Screenshots
_No response_
### NuGet package version
2.4 and also previous versions 2.x
### Packaging type
Packaged (MSIX)
### Windows version
Windows 11 version 24H2 LTSC (26100, June Update)
### IDE
_No response_
### Additional context
_No response_
Contributor guide
Research direction
Start by comparing this report with linked issue #10929 and inspect the reported ProcessTouchpadInput and QueueAndDeliverFrame stack entries. Confirm whether the crash is reproducible on the listed Windows 24H2 builds and whether a WinUI change can address it; done requires a confirmed cause and regression coverage or a documented platform dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100