Sourcetree 2.3.1.0 wont run
Asked by VisorMark:

Today sourcetree just decided to stop working. After trying to clear the config files etc i gave up and tried to reinstall:

- Uninstalled sourcetree via add remove programs (and in subsequent attempts using CCleaner)

- Deleted the folders: ...\\AppData\\Local\\Atlassian and ...\\AppData\\Local\\Sourcetree

After reinstalling i get the following error in the sourcetree log:

ERROR \[2017-09-19 15:44:28,674\] \[1\] \[SourceTree.AppRoot\] \[InitializeMef\] - Exception of type 'System.OutOfMemoryException' was thrown.

<br />

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)  
at System.Reflection.Assembly.GetTypes()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)  
at System.Linq.Enumerable.\<SelectManyIterator\>d__16\`2.MoveNext()  
at System.Collections.Generic.List\`1.InsertRange(Int32 index, IEnumerable\`1 collection)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable\`1 imports, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryPreviewImportsStateMachine(PartManager partManager, ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.PreviewImports(ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)  
at SourceTree.AppRoot.InitializeMef()  
ERROR \[2017-09-19 15:44:28,696\] \[1\] \[SourceTree.AppRoot\] \[.ctor\] - configurationManager is null  
ERROR \[2017-09-19 15:44:31,383\] \[1\] \[SourceTree.AppRoot\] \[InitializeMef\] - Exception of type 'System.OutOfMemoryException' was thrown.

<br />

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.  
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)  
at System.Reflection.Assembly.GetTypes()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()  
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)  
at System.Linq.Enumerable.\<SelectManyIterator\>d__16\`2.MoveNext()  
at System.Collections.Generic.List\`1.InsertRange(Int32 index, IEnumerable\`1 collection)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable\`1\& exports)  
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable\`1 imports, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.TryPreviewImportsStateMachine(PartManager partManager, ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ImportEngine.PreviewImports(ComposablePart part, AtomicComposition atomicComposition)  
at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)  
at SourceTree.AppRoot.InitializeMef()  
ERROR \[2017-09-19 15:44:31,402\] \[1\] \[SourceTree.AppRoot\] \[.ctor\] - configurationManager is null  
ERROR \[2017-09-19 15:44:31,451\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-09-19 15:44:34,775\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.ArgumentNullException: Value cannot be null.  
Parameter name: source

at System.Linq.OrderedEnumerable\`2..ctor(IEnumerable\`1 source, Func\`2 keySelector, IComparer\`1 comparer, Boolean descending)  
at SourceTree.AppRoot.InitializeCrashAnaylyticsServices()  
at SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
at SourceTree.App.OnStartup(StartupEventArgs e)

Please help me!


Answers:
author: Leonardo Pe?anha
body: Any news, Jesse?


author: jyo
body: Hi Mark,

This is a known issue-- our development team is working on a patch to fix this. Please be sure to follow any updates via the 'Install update' screen over the next week. I'll be sure to include a direct link to the patched version once it is released as well.

Thanks,

Jesse

comments: author: VisorMark
body: Hi Thanks Jesse!

I will watch for new versions, getting to the install update screen will be tricky as the app wont run for me :)


author: Leonardo Pe?anha
body: I have the same problem. My sourcetree does not start


author: timint
body: Same here. Tried downgrading to 2.2.4.0 but won't open.


author: Michelle Flynn
body: I also have same problem.