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

SourceTree crashes on startup.

Gary Kundel June 7, 2023

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

3 answers

0 votes
Mukesh Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2023

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.

0 votes
Joel Pellaud June 13, 2023

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()

Mukesh Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 14, 2023

Hi @Joel Pellaud 

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.

Like Joel Pellaud likes this
Joel Pellaud June 15, 2023

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

Like Gary Kundel likes this
Gary Kundel June 21, 2023

That worked!

Like Joel Pellaud likes this
0 votes
Mukesh Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 7, 2023

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.

Gary Kundel June 13, 2023

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. 

Joel Pellaud June 13, 2023

I answered instead of replying here, sorry.

gkunkel1965 June 21, 2023

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 

Gary Kundel June 21, 2023

That said, Joel's solution worked. We still shouldn't be getting to this point.

Mukesh Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2023

Hi @gkunkel1965 
Sourcetree JAC tickets allow user to attach  files: https://jira.atlassian.com/browse/SRCTREEWIN-13130.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events