When I change font the application will crash

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

This widget could not be displayed.

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

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

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)

Is there any solution for this problem?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

879 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you