SourceTree won't start since a few days
Asked by Hanno van Dijk:

For a few days now SourceTree keeps crashing on Win 10.

I have tried reinstalling, installing previous versions, removing app data, removing localdata, checked if user.config was corrupt, but to no avail.  
The app just keeps crashing..  

Naam van toepassing met fout: SourceTree.exe, versie: 1.10.23.1, tijdstempel: 0x58b065f8

Naam van module met fout: KERNELBASE.dll, versie: 10.0.15063.483, tijdstempel: 0xaa6457d1

Uitzonderingscode: 0xe0434352

Foutmarge: 0x0000000000069e08

Id van proces met fout: 0x1160

Starttijd van toepassing met fout: 0x01d310fcc1210449

Pad naar toepassing met fout: C:\\Users\\Hanno's Computer\\AppData\\Local\\SourceTree\\app-1.10.23.1\\SourceTree.exe

Pad naar module met fout: C:\\WINDOWS\\System32\\KERNELBASE.dll

Rapport-id: 58a4e5ba-846b-4df2-bce7-458104381e82

Volledige pakketnaam met fout:

Relatieve toepassings-id van pakket met fout:

Toepassing: SourceTree.exe

Framework-versie: v4.0.30319

Beschrijving: het proces is be?indigd als gevolg van een onverwerkte uitzondering.

Uitzonderingsinformatie: System.Runtime.InteropServices.SEHException

bij System.Array.InternalCreate(Void\*, Int32, Int32\*, Int32\*)

bij System.Array.CreateInstance(System.Type, Int32)

bij System.Array.UnsafeCreateInstance(System.Type, Int32)

bij System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean)

bij System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, System.RuntimeType)

bij Bid.getIdentity(System.Reflection.Module)

bij Bid.initEntryPoint()

bij Bid.internalInitialize()

bij Bid..cctor()

?

Uitzonderingsinformatie: System.TypeInitializationException

bij Bid.Trace(System.String, Int32)

bij System.Data.DataSet..ctor()

bij MS.Internal.SystemDataExtension.IsDataSetCollectionProperty(System.ComponentModel.PropertyDescriptor)

bij MS.Internal.Data.ValueTable.ShouldCache(System.Object, System.ComponentModel.PropertyDescriptor)

bij MS.Internal.Data.DataBindEngine.RegisterForCacheChanges(System.Object, System.Object)

bij MS.Internal.Data.PropertyPathWorker.ReplaceItem(Int32, System.Object, System.Object)

bij MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32, System.ComponentModel.ICollectionView, System.Object, Boolean)

bij MS.Internal.Data.ClrBindingWorker.AttachDataItem()

bij System.Windows.Data.BindingExpression.Activate(System.Object)

bij System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt)

bij System.Windows.Data.BindingExpression.AttachOverride(System.Windows.DependencyObject, System.Windows.DependencyProperty)

bij System.Windows.Data.BindingExpressionBase.OnAttach(System.Windows.DependencyObject, System.Windows.DependencyProperty)

bij System.Windows.StyleHelper.GetInstanceValue(System.Windows.UncommonField\`1\<System.Collections.Specialized.HybridDictionary\[\]\>, System.Windows.DependencyObject, System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, Int32, System.Windows.DependencyProperty, Int32, System.Windows.EffectiveValueEntry ByRef)

bij System.Windows.StyleHelper.GetChildValueHelper(System.Windows.UncommonField\`1\<System.Collections.Specialized.HybridDictionary\[\]\>, MS.Utility.ItemStructList\`1\<System.Windows.ChildValueLookup\> ByRef, System.Windows.DependencyProperty, System.Windows.DependencyObject, MS.Internal.FrameworkObject, Int32, Boolean, System.Windows.EffectiveValueEntry ByRef, System.Windows.ValueLookupType ByRef, System.Windows.FrameworkElementFactory)

bij System.Windows.StyleHelper.GetChildValue(System.Windows.UncommonField\`1\<System.Collections.Specialized.HybridDictionary\[\]\>, System.Windows.DependencyObject, Int32, MS.Internal.FrameworkObject, System.Windows.DependencyProperty, MS.Utility.FrugalStructList\`1\<System.Windows.ChildRecord\> ByRef, System.Windows.EffectiveValueEntry ByRef, System.Windows.ValueLookupType ByRef, System.Windows.FrameworkElementFactory)

bij System.Windows.StyleHelper.GetValueFromTemplatedParent(System.Windows.DependencyObject, Int32, MS.Internal.FrameworkObject, System.Windows.DependencyProperty, MS.Utility.FrugalStructList\`1\<System.Windows.ChildRecord\> ByRef, System.Windows.FrameworkElementFactory, System.Windows.EffectiveValueEntry ByRef)

bij System.Windows.StyleHelper.ApplyTemplatedParentValue(System.Windows.DependencyObject, MS.Internal.FrameworkObject, Int32, MS.Utility.FrugalStructList\`1\<System.Windows.ChildRecord\> ByRef, System.Windows.DependencyProperty, System.Windows.FrameworkElementFactory)

bij System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(System.Windows.DependencyObject, MS.Internal.FrameworkObject, Int32, MS.Utility.FrugalStructList\`1\<System.Windows.ChildRecord\> ByRef, Boolean, System.Windows.FrameworkElementFactory)

bij System.Windows.FrameworkTemplate.InvalidatePropertiesOnTemplate(System.Windows.DependencyObject, System.Object)

bij System.Windows.FrameworkTemplate.HandleBeforeProperties(System.Object, System.Windows.DependencyObject ByRef, System.Windows.DependencyObject, System.Windows.FrameworkElement, System.Windows.Markup.INameScope)

bij System.Windows.FrameworkTemplate+\<\>c__DisplayClass45_0.\<LoadOptimizedTemplateContent\>b__2(System.Object, System.Xaml.XamlObjectEventArgs)

bij System.Xaml.XamlObjectWriter.OnBeforeProperties(System.Object)

bij System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(MS.Internal.Xaml.Context.ObjectWriterContext)

bij System.Xaml.XamlObjectWriter.WriteStartMember(System.Xaml.XamlMember)

bij System.Windows.FrameworkTemplate.LoadTemplateXaml(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter)

bij System.Windows.FrameworkTemplate.LoadTemplateXaml(System.Xaml.XamlObjectWriter)

bij System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(System.Windows.DependencyObject, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector, System.Collections.Generic.List\`1\<System.Windows.DependencyObject\>, System.Windows.UncommonField\`1\<System.Collections.Hashtable\>)

bij System.Windows.FrameworkTemplate.LoadContent(System.Windows.DependencyObject, System.Collections.Generic.List\`1\<System.Windows.DependencyObject\>)

bij System.Windows.StyleHelper.ApplyTemplateContent(System.Windows.UncommonField\`1\<System.Collections.Specialized.HybridDictionary\[\]\>, System.Windows.DependencyObject, System.Windows.FrameworkElementFactory, Int32, System.Collections.Specialized.HybridDictionary, System.Windows.FrameworkTemplate)

bij System.Windows.FrameworkTemplate.ApplyTemplateContent(System.Windows.UncommonField\`1\<System.Collections.Specialized.HybridDictionary\[\]\>, System.Windows.FrameworkElement)

bij System.Windows.FrameworkElement.ApplyTemplate()

bij System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)

bij System.Windows.UIElement.Measure(System.Windows.Size)

bij System.Windows.Controls.StackPanel.StackMeasureHelper(System.Windows.Controls.IStackMeasure, System.Windows.Controls.IStackMeasureScrollData, System.Windows.Size)

bij System.Windows.Controls.StackPanel.MeasureOverride(System.Windows.Size)

bij System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)

bij System.Windows.UIElement.Measure(System.Windows.Size)

bij System.Windows.ContextLayoutManager.UpdateLayout()

bij System.Windows.Interop.HwndSource.SetLayoutSize()

bij System.Windows.Interop.HwndSource.set_RootVisualInternal(System.Windows.Media.Visual)

bij System.Windows.Window.SetRootVisual()

bij System.Windows.Window.SetRootVisualAndUpdateSTC()

bij System.Windows.Window.SetupInitialState(Double, Double, Double, Double)

bij System.Windows.Window.CreateSourceWindow(Boolean)

bij System.Windows.Window.ShowHelper(System.Object)

bij System.Windows.Window.ShowDialog()

bij SourceTree.UI.OnboardingManager.Run()

bij SourceTree.AppRoot.OnboardIfRequired()

bij SourceTree.AppRoot.OnStartup(System.Windows.StartupEventArgs)

bij SourceTree.App.OnStartup(System.Windows.StartupEventArgs)

bij System.Windows.Application.\<.ctor\>b__1_0(System.Object)

bij System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

bij System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

bij System.Windows.Threading.DispatcherOperation.InvokeImpl()

bij System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

bij System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

bij System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)

bij MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)

bij System.Windows.Threading.DispatcherOperation.Invoke()

bij System.Windows.Threading.Dispatcher.ProcessQueue()

bij System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

bij MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

bij MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)

bij System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

bij System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

bij System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)

bij MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

bij MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)

bij System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)

bij System.Windows.Application.RunDispatcher(System.Object)

bij System.Windows.Application.RunInternal(System.Windows.Window)

bij SourceTree.App.Main()

?

?


Answers:
author: Ana Retamal
body: Hi Hanno, I see several things that could be causing this problem.

* It could be related to the version of .Net framework you're using (Framework-versie: v4.0.30319). Uninstall it and install .Net 4.5.2 (at least).
* Looks like you also have quite an old version of SourceTree (SourceTree.exe, versie: 1.10.23.1), have you tried installing the newest version from [our website](https://www.sourcetreeapp.com/).
* When you said you tried uninstalling, were you performing a clean uninstall? These are the steps:

1. [Wipe SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html).
2. Uninstall SourceTree (if it shows on the App\&Features list)
3. Backup then delete the directory below before proceeding with next step
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete *SourceTree* \& *SourceTree-Settings* folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all SourceTree Files/Folder.

Let us know how it goes!

Best regards,

Ana


Tags: windows