Skip to content

.NET 4.7 - WPF - Touch Enabled Devices Crash Applications #480

@johnmurphy01

Description

@johnmurphy01

Our WPF application is experiencing a random crash when running on some touch enabled devices when running Windows 10 Creator Update. One example is the Lenovo IdeaPad 510. After about 5-10 minutes of operation, any interaction with the app(using a mouse, so not even using the touch capability) will cause the app to crash. The following stack trace is logged in the EventViewer:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at MS.Win32.Penimc.UnsafeNativeMethods.GetPenEventMultiple(Int32, IntPtr[], IntPtr, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef, Int32 ByRef, IntPtr ByRef)
at System.Windows.Input.PenThreadWorker.ThreadProc()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

We discovered other WPF applications are experiencing this issue as well, including MS products such as Visual Studio and SQL Server Management Studio: https://developercommunity.visualstudio.com/content/problem/55303/visual-studio-may-terminate-unexpectedly-when-runn.html

There was a KB fix applied(bullet point 4): https://support.microsoft.com/en-in/help/4025342
However, our user experiencing the crash says they have this patch and the issue is persisting.

Is there a workaround to this? Is anyone at MS aware and working on this issue? Our customer is afraid to push our application to the public due to this issue that could be affecting numerous users with touch enabled devices. Any further insight into the problem could help our customer understand the impact of the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions