Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simultaneous Mouse and multi-touch input Crash (CppWinRT) #3257

Closed
techjogger opened this issue Dec 16, 2022 · 7 comments
Closed

Simultaneous Mouse and multi-touch input Crash (CppWinRT) #3257

techjogger opened this issue Dec 16, 2022 · 7 comments
Labels
area-Input bug Something isn't working

Comments

@techjogger
Copy link

Describe the bug

Simultaneous Mouse and multi-touch input causes an ...... Unhandled exception at 0x00007FF8408A26DB (Microsoft.InputStateManager.dll) in ***.exe: Fatal program exit requested.

Steps to reproduce the bug

Run a Windows App SDK 1.2.2 App
Simultaneously use the Mouse and two figures .
App crashes...

Expected behavior

App does not crash!!!

Screenshots

crash

NuGet package version

Windows App SDK 1.2.1: 1.2.221116.1

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

No response

@techjogger
Copy link
Author

Any updates on a fix to this crash? Again, this will crash all Apps built with the WASDK.

@techjogger
Copy link
Author

This crash is still present in WASDK 1.4 preview. Please fix!!

@dmitry-egorov
Copy link

dmitry-egorov commented Jul 12, 2023

I'm experiencing the same crash, when using pen and touch input at the same time. Using Microsoft.WindowsAppSDK 1.3.230602002.

It usually happens when I do the touch input, especially with multiple touch points, while the cursor from the pen is still visible.

@dmitry-egorov
Copy link

dmitry-egorov commented Jul 12, 2023

Just to provide some more context, here's what the app is writing to the debug output just before the crash:

14:55:11:372 onecoreuap\windows\moderncore\inputv2\systeminputhosts\lifted\lib\inprocinputhandler.cpp(653)\Microsoft.InputStateManager.dll!00007FF88347378D: (caller: 00007FF883475018) LogHr(1) tid(1820) 8007029C An assertion failure has occurred.
14:55:11:372 onecoreuap\windows\moderncore\inputv2\systeminputhosts\lifted\lib\inprocinputhandler.cpp(653)\Microsoft.InputStateManager.dll!00007FF88347378D: (caller: 00007FF883475018) FailFast(1) tid(1820) 8007029C An assertion failure has occurred.
14:55:11:981 Unhandled exception at 0x00007FF88347378D (Microsoft.InputStateManager.dll) in ***.exe: Fatal program exit requested.

And here's the callstack:

KernelBase.dll!RaiseFailFastException()
Microsoft.InputStateManager.dll!wil::details::WilDynamicLoadRaiseFailFastException(struct _EXCEPTION_RECORD *,struct _CONTEXT *,unsigned long)
Microsoft.InputStateManager.dll!wil::details::WilRaiseFailFastException(struct _EXCEPTION_RECORD *,struct CONTEXT *,unsigned long)
Microsoft.InputStateManager.dll!wil::details::WilFailFast(struct wil::FailureInfo const &)
Microsoft.InputStateManager.dll!wil::details::ReportFailure_NoReturn<3>(void *,unsigned int,char const *,char const *,char const *,void *,struct wil::details::ResultStatus const &,unsigned short const *,enum wil::details::ReportFailureOptions)
Microsoft.InputStateManager.dll!wil::details::ReportFailure_Base<3,0>(void *,unsigned int,char const *,char const *,char const *,void *,struct wil::details::ResultStatus const &,unsigned short const *,enum wil::details::ReportFailureOptions)
Microsoft.InputStateManager.dll!wil::details::ReportFailure_GetLastError<3>(void *,unsigned int,char const *,char const *,char const *,void *)
Microsoft.InputStateManager.dll!wil::details::in1diag3::FailFast_GetLastError(void *,unsigned int,char const *)
Microsoft.InputStateManager.dll!InProcInputHandler::PopulateContactInFrame(unsigned int,unsigned int,class std::vector<struct LiftedPointerData,class std::allocator > &)
Microsoft.InputStateManager.dll!InputSinkInfrastructure::WindowProcedureCallback(struct HWND
*,unsigned int,unsigned __int64,int64)
Microsoft.InputStateManager.dll!MessageOnlyWindow::WindowProcedure(struct HWND
*,unsigned int,unsigned __int64,__int64)
user32.dll!UserCallWinProcCheckWow()
user32.dll!DispatchMessageWorker()
dwmcorei.dll!CLocalMit::Run()
kernel32.dll!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()

This crash is really critical for our app, since its core functionality involves simultanious use of pen and touch. It would be great to at least get a workaround for this issue. Nothing we can do on our side, since it's a fatal crash happening in the internals of the sdk.

@codendone
Copy link
Contributor

Closing as dup of microsoft/microsoft-ui-xaml#8022.

Note that it seems there is a similar issue with pen and multi-touch: microsoft/microsoft-ui-xaml#8813

@stevenbrix
Copy link

stevenbrix commented Jun 21, 2024

Hey @codendone, #8022 is closed as a dupe of this one. Is that intentional?

@codendone
Copy link
Contributor

@stevenbrix I corrected the duplicate id in microsoft/microsoft-ui-xaml#8022 to microsoft/microsoft-ui-xaml#7622. That bug is fixed in 1.4.

The pen plus multi-touch issue mentioned above, microsoft/microsoft-ui-xaml#8813, is still active and not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Input bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants