Details
Description
If I add some file name with japanese character to git working directory, and open source tree which already has that git repository, then sourcetree crashes right after opening. I suspect that this is due to Japanese file name, because when I change the file name to english characters, the crash did not occur.
File name - コードレビュー観点.xls
Error log message -
ERROR [2016-03-02 13:31:34,495] [1] [SourceTree.AppRoot] [HandleCrash] - Fatal error
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at MS.Internal.FontCache.FontFaceLayoutInfo.IntMap.System.Collections.Generic.IDictionary<System.Int32,System.UInt16>.get_Item(Int32 i)
at Atlassian.Wpf.Control.PathTrimmingTextBlock.PathTrimmingTextBlock.TrimText(String text, Typeface typeFace, Double fontSize, Double parentalWidth)
at Atlassian.Wpf.Control.PathTrimmingTextBlock.PathTrimmingTextBlock.ApplyTrimmedText(TextBlock textBlock, String text)
at Atlassian.Wpf.Control.PathTrimmingTextBlock.PathTrimmingTextBlock.TextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Atlassian.Wpf.Control.PathTrimmingTextBlock.PathTrimmingTextBlock.OnLoaded(Object sender, RoutedEventArgs routedEventArgs)
at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)