SourceTree crashes on startup.
Asked by Gary Kundel:

SourceTree crashes on startup. We're running Windows 10. This seems to be an issue with recent releases. Version 3.4.9 works.


Answers:
author: Mukesh Kumar
body: We have fixed this issue in Sourcetree 3.4.14 which will be available soon.

Currently Sourcetree 3.4.14 beta is available for beta users.


author: Joel Pellaud
body: Hi,

Same issue, got a windows 10 update last night. I did try both <https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-is-failing-to-start/qaq-p/2105728> solutions and none works.

\[UPDATE\] : Deleting all **C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian\\SourceTree.exe_Url_\[GUID\]**folders solved the issue in my case (not te SourceTree folder).

Log:

ERROR \[2023-06-14 08:28:59,558\] \[1\] \[Sourcetree.Composition.VSMef.Net471.VSMefCompositionManager\] \[Log\] - Unable to load MEF components  
System.InvalidOperationException: La s?quence ne contient aucun ?l?ment.  
? System.Linq.Enumerable.First\[TSource\](IEnumerable\`1 source)  
? Microsoft.VisualStudio.Composition.PartDiscovery.GetElementTypeFromMany(Type type)  
? Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_ImportingSiteTypeWithoutCollection()  
? Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_IsLazy()  
? Microsoft.VisualStudio.Composition.RuntimeComposition.RuntimeImport.get_LazyFactory()  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.SatisfyImports()  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.SatisfyImmediateImports()  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.\<\>c__DisplayClass15_0.\<GetExportedValueHelper\>b__0()  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func\`3 lazyFactory)  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.\<CreateValue\>b__10_0(RuntimeImport import)  
? System.Linq.Enumerable.WhereSelectArrayIterator\`2.MoveNext()  
? System.Linq.Buffer\`1..ctor(IEnumerable\`1 source)  
? System.Linq.Enumerable.ToArray\[TSource\](IEnumerable\`1 source)  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.\<\>c__DisplayClass15_0.\<GetExportedValueHelper\>b__0()  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportElement(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import, RuntimeExport export, Func\`3 lazyFactory)  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.GetValueForImportSite(RuntimePartLifecycleTracker importingPartTracker, RuntimeImport import)  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.\<CreateValue\>b__10_0(RuntimeImport import)  
? System.Linq.Enumerable.WhereSelectArrayIterator\`2.MoveNext()  
? System.Linq.Buffer\`1..ctor(IEnumerable\`1 source)  
? System.Linq.Enumerable.ToArray\[TSource\](IEnumerable\`1 source)  
? Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext(PartLifecycleState nextState)  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveToState(PartLifecycleState requiredState)  
? Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()  
? System.Lazy\`1.CreateValue()  
? System.Lazy\`1.LazyInitValue()  
? Microsoft.VisualStudio.Composition.NetFxAdapters.MefV1ExportProvider.\<\>c__DisplayClass12_0.\<UnwrapExport\>b__1()  
? System.ComponentModel.Composition.Primitives.Export.get_Value()  
? System.ComponentModel.Composition.ReflectionModel.ImportingItem.Cast(Type type, Export export)  
? System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.SetImport(ImportingItem item, Export\[\] exports)  
? System.ComponentModel.Composition.Hosting.ImportEngine.PartManager.TrySetImport(ImportDefinition import, Export\[\] exports)  
? System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable\`1 imports, AtomicComposition atomicComposition)  
? System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part)  
? System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports)  
? System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImportsOnce(ComposablePart part)  
? System.ComponentModel.Composition.Hosting.CompositionContainer.SatisfyImportsOnce(ComposablePart part)  
? System.ComponentModel.Composition.AttributedModelServices.SatisfyImportsOnce(ICompositionService compositionService, Object attributedPart)  
? Sourcetree.Composition.VSMef.Net471.VSMefCompositionManager.\<Compose\>d__5.MoveNext()

comments: author: Mukesh Kumar
body: Hi [@Joel Pellaud](/t5/user/viewprofilepage/user-id/2425674)

Some clients machines are throwing this error.

There is a JAC ticket related to this issue <https://jira.atlassian.com/browse/SRCTREEWIN-13130>.

We are looking into this issue.


author: Joel Pellaud
body: Deleting all **C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian\\SourceTree.exe_Url_\[GUID\]**folders solved the issue in my case (not te SourceTree folder).


author: Gary Kundel
body: That worked!


author: Mukesh Kumar
body: Please find the log file and send it here from below path.

**C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian\\Sourcetree\\sourcetree.log**

Log file can help us analyze the issue better.

comments: author: Gary Kundel
body: As of late, I've instructed Desktop support to install 3.4.9 but we'll set up a test. I'll keep you posted.


author: Joel Pellaud
body: I answered instead of replying here, sorry.


author: Panometric
body: [@Mukesh Kumar](/t5/user/viewprofilepage/user-id/4883692) I think this is the same problem.   
<https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-won-t-start-after-Windows-Update-on-June-13-2023/qaq-p/2390682>

Seems persistent from 2019 bug. **Please** see if it can get fixed. Thanks.

<https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-won-t-load/qaq-p/1078409>


author: gkunkel1965
body: The error just happened for me. Unfortunately, your page won't allow me to paste the log file here. Paste is not an option and \[Ctrl-v\] causes the page to become unresponsive


author: Gary Kundel
body: That said, Joel's solution worked. We still shouldn't be getting to this point.


author: Mukesh Kumar
body: Hi [@gkunkel1965](/t5/user/viewprofilepage/user-id/281599)   
Sourcetree JAC tickets allow user to attach files: <https://jira.atlassian.com/browse/SRCTREEWIN-13130>.