none
WPF application crashing by Environment.FailFast on windows 7 OS environment RRS feed

  • Question

  • Facing crash in WPF layer in our sample application when selected all text and overwrite the selected text. This is presently occurred on Window 7 environment.

    Similar problem on windows 10 environment has been fixed by the solution provided on following MSDN request

    http://  social.msdn.microsoft.com/Forums/sqlserver/en-US/8fbc1910-6ea3-4266-ac26-f9e25c949933/wpf-crashing-by-environmentfailfast?forum=wpf

    By stopping the "Touch Keyboard and Handwriting Panel Service" windows service the problem get fixed on the windows 10 but windows 7 the problem still occurs. 

    Event log details

    Faulting application name: WpfApp1.exe, version: 1.0.0.0, time stamp: 0xd7fbb6f7

    Faulting module name: PresentationFramework.ni.dll, version: 4.7.3429.0, time stamp: 0x5cdb7ec3

    Exception code: 0x80131623

    Fault offset: 0x00000000010b2d2c

    Faulting process id: 0xfe4

    Faulting application start time: 0x01d56d2558c77b22

    Faulting application path: C:\Users\qaa\Desktop\WpfApp1\bin\Release\WpfApp1.exe

    Faulting module path: C:\Windows\assembly\NativeImages_v4.0.30319_64\Presentatio5ae0f00f#\726e2bc014b4a0641d0388f451ec87b6\PresentationFramework.ni.dll

    Report Id: 8ca7a49e-d91b-11e9-b33d-0050568000d8

    Application: WpfApp1.exe

    Framework Version: v4.0.30319

    Description: The application requested process termination through System.Environment.FailFast(string message).

    Message: Unrecoverable system error.

    Stack:

       at System.Environment.FailFast(System.String)

       at System.Windows.Documents.TextStore.VerifyTextStoreConsistency()

       at System.Windows.Documents.TextStore.GrantLock()

       at System.Windows.Documents.TextStore.GrantLockWorker(LockFlags)

       at System.Windows.Documents.TextStore.RequestLock(LockFlags, Int32 ByRef)

       at MS.Win32.UnsafeNativeMethods+ITfMessagePump.GetMessageW(System.Windows.Interop.MSG ByRef, IntPtr, Int32, Int32, Int32 ByRef)

       at MS.Win32.UnsafeNativeMethods+ITfMessagePump.GetMessageW(System.Windows.Interop.MSG ByRef, IntPtr, Int32, Int32, Int32 ByRef)

       at System.Windows.Threading.Dispatcher.GetMessage(System.Windows.Interop.MSG ByRef, IntPtr, Int32, Int32)

       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)

       at System.Windows.Application.RunDispatcher(System.Object)

       at System.Windows.Application.RunInternal(System.Windows.Window)

       at WpfApp1.App.Main()


    Tuesday, September 17, 2019 7:54 AM

All replies

  • Hi Shailesh Gharage

    > By stopping the "Touch Keyboard and Handwriting Panel Service" windows service the problem get fixed on the windows 10 but windows 7 the problem still occurs.

    Microsoft's development and maintenance of Windows 7/8 has been minimal, so it is possible , I advise that you use the new version of OS for your development environment.

    If you still want to use Windows 7 , I can see your Framework Version is v4.0 from the event log, could you mind to upgrade your framework to V4.8 or 4.7 to see if it could avoid the crash?

    Best regards

    Daisy Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, September 18, 2019 6:32 AM
  • Hi Daisy Tian,

    Thanks for reply! 

    We had done following action's as per your suggestion

    1. Installed .NET framework 8 on the windows 7 (virtual) system, which has already installed .NET 4.7 and .NET 4.5 on it.

    2. Removed all existing .NET framework and installed only .NET 4.8 framework

    Still the problem is NOT resolved.

    Tuesday, October 1, 2019 9:07 AM