Home Dashboard Directory Help
Search

Framework Crash occurring while entering Japanese Kana in WPF text Box after setting focus. by hemanath ravi


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 787284
Opened: 5/20/2013 7:47:55 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description



Hi,

When I enter Japanese Kana character in WPF TextBox soon after setting Focus, System.Environment.FailFast Exception is occuring.

The following details is obtained from event log,

場所 System.Environment.FailFast(System.String)
場所 MS.Internal.Invariant.FailFast(System.String, System.String)
場所 System.Windows.Controls.TextBoxView.System.Windows.Documents.ITextView.GetRectangleFromTextPosition(System.Windows.Documents.ITextPointer)
場所 System.Windows.Documents.CompositionAdorner+AttributeRange.AddCompositionLines()
場所 System.Windows.Documents.CompositionAdorner.InvalidateAdorner()
場所 System.Windows.Documents.TextServicesDisplayAttributePropertyRanges.OnEndEdit(ITfContext, Int32, ITfEditRecord)
場所 System.Windows.Documents.TextServicesProperty.OnEndEdit(ITfContext, Int32, ITfEditRecord)
場所 System.Windows.Documents.TextStore.MS.Win32.UnsafeNativeMethods.ITfTextEditSink.OnEndEdit(ITfContext, Int32, ITfEditRecord)
場所 MS.Win32.UnsafeNativeMethods+ITextStoreACPSink.OnLockGranted(LockFlags)
場所 System.Windows.Documents.TextStore.GrantLock()
場所 System.Windows.Documents.TextStore.GrantLockWorker(LockFlags)
場所 System.Windows.Documents.TextStore.RequestLock(LockFlags, Int32 ByRef)
場所 MS.Win32.UnsafeNativeMethods+ITfKeystrokeMgr.KeyDown(Int32, Int32, Boolean ByRef)
場所 System.Windows.Input.TextServicesContext.Keystroke(Int32, Int32, KeyOp)
場所 System.Windows.Input.TextServicesManager.TextServicesKeystroke(System.Windows.Input.TextServicesContext, System.Windows.Input.KeyEventArgs, Boolean)
場所 System.Windows.Input.TextServicesManager.PostProcessInput(System.Object, System.Windows.Input.ProcessInputEventArgs)
場所 System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler, System.Windows.Input.ProcessInputEventArgs)
場所 System.Windows.Input.InputManager.ProcessStagingArea()
場所 System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
場所 System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
場所 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean, Int32)
場所 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG ByRef, System.Windows.Input.ModifierKeys)
場所 System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
場所 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
場所 System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
場所 System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.HwndSource+WeakEventPreprocessMessage.OnPreprocessMessage(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.ThreadMessageEventHandler.Invoke(System.Windows.Interop.MSG ByRef, Boolean ByRef)
場所 System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG ByRef)
場所 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
場所 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
場所 System.Windows.Application.RunDispatcher(System.Object)
場所 System.Windows.Application.RunInternal(System.Windows.Window)
場所 System.Windows.Application.Run(System.Windows.Window)
場所 CommonPlatforms.Program.PlatfomrProcessStart(System.String[])
場所 CommonPlatforms.Program.Main(System.String[])
PC Details:

OS - Windows 7 Japanese OS

Items Installed :

Microsoft .NET Framework 4 Client Profile

Microsoft .NET Framework 4 Client Profile Language Pack - 日本語(Japanese)

Microsoft .NET Framework 4 Extended

Microsoft .NET Framework 4 Extended Language Pack - 日本語(Japanese)

Can anyone provide me the rootcause and solution to this issue?

Is there any hotfix or update from Microsoft to solve this issue?

I have posted the same issue in MSDN forums which has sample code
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/6df62512-4a1a-44e4-b6e9-bcbc613b801d
Details
Sign in to post a comment.
Posted by hemanath ravi on 8/21/2013 at 1:53 AM
Hi...
Kindly let me know if there is any microsoft update for this issue.

Regards,
Hemanath
Posted by hemanath ravi on 5/24/2013 at 3:38 AM
Hi,
Kindly let me know the status whether you have reproduced with the sample given.

Regards,
Hemanath
Posted by hemanath ravi on 5/23/2013 at 10:31 PM
Hi,
This issue is also occurring in English OS also with Japanese IME installed. And the default entry of the textbox should be Japanese characters.

Kindly let me know in case of problem reproducing the issue.
Posted by Microsoft on 5/21/2013 at 3:24 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 5/20/2013 at 7:52 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
MainWindow.xaml.cs 5/20/2013 2 KB
MainWindow.xaml 5/20/2013 2 KB