Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

When I change font the application will crash

poren cheng January 11, 2018

when i select menu 'tools->Option->Diff tab'
click change Font button
sourcetree will crash

somebody have same question?

how can i fix this problem?

 

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2018

Hi! Can you tell us which Sourcetree and OS version are you using? Also, which font are you selecting when the app crash? Does it happen for any font?

Regards!

Ana

poren cheng January 14, 2018

OS:win7 7601 : Service Pack 1
Sourcetree:2.3.5 and 2.4.7 both same problem

font:sorry i'm Taiwanese people,i'm not sure isn't Consolas ?

sourcetree error.jpg

poren cheng January 15, 2018

here is sourcetree.log file

-----------------------------------------------------------------------

ERROR [2018-01-16 12:22:41,726] [1] [SourceTree.Analytics.Crash.BugSplat.CrashAnalyticsService] [DispatcherUnhandledExceptionHandler] - DispatcherUnhandledExceptionHandler for [Sourcetree, 2.3.5.0] called with [System.Windows.Threading.Dispatcher, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs]
System.TypeInitializationException: 'System.Windows.Media.Fonts' 的類型初始設定式發生例外狀況。 ---> System.IO.FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Windows7SP1 ---> System.IO.FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Windows7SP1
於 MS.Internal.FontFace.CompositeFontParser.Fail(String message, Exception innerException)
於 MS.Internal.FontFace.CompositeFontParser.ParseFontFamilyCollectionElement()
於 MS.Internal.FontFace.CompositeFontParser..ctor(Stream fileStream)
--- 內部例外狀況堆疊追蹤的結尾 ---
於 MS.Internal.FontFace.CompositeFontParser.Fail(String message, Exception innerException)
於 MS.Internal.FontFace.CompositeFontParser..ctor(Stream fileStream)
於 MS.Internal.FontCache.FamilyCollection.SystemCompositeFonts.GetCompositeFontFamilyAtIndex(Int32 index)
於 MS.Internal.FontCache.FamilyCollection.GetFontFamilies(Uri fontFamilyBaseUri, String fontFamilyLocationReference)
於 System.Windows.Media.Fonts.CreateFamilyCollection(Uri fontLocation, Uri fontFamilyBaseUri, String fontFamilyLocationReference)
於 System.Windows.Media.Fonts..cctor()
--- 內部例外狀況堆疊追蹤的結尾 ---
於 SourceTree.ViewModel.FontPickerWindowViewModel..ctor()
於 SourceTree.ViewModel.PreferencesWindowViewModel.ChangeDiffFont()
於 MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
於 System.Windows.Controls.Primitives.ButtonBase.OnClick()
於 System.Windows.Controls.Button.OnClick()
於 System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
於 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
於 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
於 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
於 System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
於 System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
於 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
於 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
於 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
於 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
於 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
於 System.Windows.Input.InputManager.ProcessStagingArea()
於 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
於 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
於 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
於 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
於 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
於 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
於 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
於 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
於 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

poren cheng February 4, 2018

Is there any solution for this problem?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events