Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,227
Community Members
 
Community Events
168
Community Groups

source tree crashes when try to edit remotes. how to fix that?

Edited

I am using source tree version 3.3.9 and git version 2.29.2.windows.3. I connected local repository to remote via ssh, everything working well. but remote icon in the right top corner shows an exclamation mark to  indicate an error. when i try to edit my remote origin in settings, suddenly app crashes and close. i have completely reinstall the source tree but cannot fix that. is there any solution to fix that? 

4 answers

Same here
ERROR [2021-01-04 11:31:28,683] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2021-01-04 11:31:28,790] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2021-01-04 11:31:28,796] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2021-01-04 11:34:26,233] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2021-01-04 11:34:26,306] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2021-01-04 11:34:26,310] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist

(SourceTree 3.9.4)

 

Which is a shame.. The pull request feature was mostly what I have been using it for. Now with this it renders the application useless

I tried to uninstall the source tree, download it, then install it.
It worksed for me.

Any news on this issue?

Facing the same problem. Happening to me for remote GitHub repositories, private aswell as public.

I also get the log entry

ERROR [2021-01-06 19:48:09,949] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist

Although this message does appear on application start. When I try to edit and the app crashes there is no additional log entry made.

The Stacktrace I got from the Windows Eventmonitor looks promising though:

Anwendung: SourceTree.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.NullReferenceException
bei SourceTree.ViewModel.RemoteDetailsDialogViewModel.set_Url(System.String)
bei SourceTree.ViewModel.RemoteDetailsDialogViewModel..ctor(SourceTree.Model.Repository, System.String, System.String, System.Collections.Generic.List`1<System.String>, SourceTree.Model.RepositoryRemoteProjectLink, System.Action`2<SourceTree.ViewModel.AbstractDialogViewModel,Int32>, SourceTree.CustomActions.ICustomActionsManager, SourceTree.Scheduler.ISchedulerManager, SourceTree.Repositories.IRepositoryManager, SourceTree.Diagnostics.ITraceManager, SourceTree.Scheduler.IDispatcher, SourceTree.Accounts.IAccountManager, SourceTree.Diagnostics.IFailureHandler, SourceTree.Dvcss.IDvcsManager, SourceTree.Repositories.IRepositoryMonitorManager, SourceTree.View.FileLists.IFileListViewManager, SourceTree.View.Container.IFileListContainerViewManager, SourceTree.View.Diff.IDiffViewManager, SourceTree.Configuration.IConfigurationManager, SourceTree.View.Process.IProcessDialogViewManager, SourceTree.View.ChangeSets.IChangeSetViewManager, SourceTree.Notifications.INotificationsManager)
bei SourceTree.ViewModel.RepoSettingsDialogViewModel.EditRemote()
bei SourceTree.ViewModel.RepoSettingsDialogViewModel.<get_EditRemoteCommand>b__64_0(System.Object)
bei SourceTree.View.Utils.RelayCommand.Execute(System.Object)
bei SourceTree.View.Dialogs.RepoSettingsDialog.RemoteListDoubleClicked(System.Object, System.Windows.Input.MouseButtonEventArgs)
bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
bei System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
bei System.Windows.Controls.Control.HandleDoubleClick(System.Object, System.Windows.Input.MouseButtonEventArgs)
bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
bei System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
bei System.Windows.UIElement.OnMouseDownThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
bei System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
bei System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
bei System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
bei System.Windows.Application.RunDispatcher(System.Object)
bei System.Windows.Application.RunInternal(System.Windows.Window)
bei SourceTree.App.Main()

To add to this: This does not happen to me using Azure DevOps Remotes.

Happening to me as well!

Even after cloning fresh repository, Clicking "Repository settings", then trying to edit the default hangs then crashes the app.

 

Logs:
```

ERROR [2020-12-27 09:49:08,301] [1] [SourceTree.Notifications.NotificationsManager] [Log] - Unable to set owner as parent is not visible or non-existent
ERROR [2020-12-27 10:16:26,666] [1] [SourceTree.Exceptions.RemoteHostException] [Log] - Failed to check login for user [UserName]
ERROR [2020-12-27 10:17:10,152] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2020-12-27 10:17:10,156] [1] [Sourcetree.Installer.Squirrel.Utils.UpdateHelper] [Log] - Couldn't read staging user ID
ERROR [2020-12-28 13:26:32,049] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2020-12-28 14:29:05,547] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2020-12-28 14:29:05,593] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2020-12-28 14:29:05,596] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist

...

...

ERROR [2020-12-30 02:30:47,212] [1] [SourceTree.Notifications.NotificationsManager] [Log] - Unable to set owner as parent is not visible or non-existent
ERROR [2020-12-30 02:41:31,202] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2020-12-30 02:41:31,251] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist

...

...

ERROR [2021-01-03 13:14:41,010] [1] [SourceTree.Notifications.NotificationsManager] [Log] - Unable to set owner as parent is not visible or non-existent


ERROR [2021-01-03 13:22:31,525] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist

...

...

```


(SoruceTree 3.4.1, Git for Windows 2.92.2)

I tried to uninstall the source tree, download it, then install it.
It worksed for me.

0 votes

Hi John,

welcome to the Atlassian Community!

Have you had the chance to look into logs?
Probably an error is logged there pointing to a possible cause?

https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html

Let us know if you found something out!

Regards,
Daniel

sourcetree.log file returns,

ERROR [2020-12-12 22:06:10,730] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2020-12-12 22:06:10,768] [1] [SourceTree.Model.Repository] [Log] - Repository: [] does not exist
ERROR [2020-12-12 22:16:59,331] [1] [SourceTree.Utils.WindowsOSHelper] [Log] - OpenWebBrowser for git@bitbucket.org:LesleyJJ/hrm-backend.git failed with exception: System.ComponentModel.Win32Exception: The system cannot find the file specified

There is nothing visible that should lead to a crash but in case you can fix the source of the errors it might have a positive contribution to the overall situation.

The last error reminds of a bug for example:
https://jira.atlassian.com/browse/SRCTREEWIN-7964
In some other related cases it was reported due to missing 'git' on the system at all.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

79,121 views 135 29
Read article

Atlassian Community Events