2019. december 31., kedd

SourceTree egyszercsak nem indul

Windows környezetben a SourceTree indításakor az a jelenség fogadott, hogy az indulást követően dolgozott valamin a CPU-n, majd bármilyen látható hibajelzés nélkül azonnal be is zárult még a betöltés során. Megpróbáltam magát a SourceTree-t is és az OS-t is újraindítani, de nem javult a helyzet.

A naplófájlt megnézve, az alábbi hibaüznetet találtam:
C:\Users\<username>\AppData\Local\Atlassian\SourceTree\sourcetree.log
ERROR [2019-12-02 11:23:45,180] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2019-12-02 11:23:45,382] [1] [SourceTree.App] [OnStartup] - Failed to start

System.NullReferenceException: Object reference not set to an instance of an object.

at SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](String title, String message, Tuple`2 customAction, String cancelLabel, String suppressionSetting, Action`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)
at SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)
at SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()
at SourceTree.AppRoot.RunPreFlightChecks()
at SourceTree.AppRoot.OnStartup(StartupEventArgs e)
at SourceTree.App.OnStartup(StartupEventArgs e)

A hiba az Atlassian issue tracker szerint a 2.3.5-ös verzióban javítva lett, így az elsődleges javítást a frissítés jelenti. Előfordulhat azonban olyan szituáció is, hogy nem akarunk vagy éppen nem tudunk frissíteni valami miatt, ekkor az automatikus takarítást engedélyezve is feléleszthető:
C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe_Url_<guid>\<sourcetree_version>\user.config
<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String">
  <value>True</value>
</setting>