Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-13981

SourceTree crashes shortly after launching application.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Highest
    • 3.4.15
    • 3.4.11
    • Bitbucket
    • None
    • Severity 1 - Critical

    Description

      We currently can't use the SourceTree windows application on any workstation issued by our company. The application installs but then simply closes a couple of seconds after it is launched. The behavior is identical on three workstations where SourceTree was evaluated.

      Windows and hardware specifics: 11th Gen Intel(R) Core(TM) i7-11850H, 16.0 GB ram, Windows 10 Pro, 21H1,OS build 19043.2251, 120.2212.4180.0

      During installation (defaults selected throughout) the following error occurs:

      After clicking 'cancel', the installer appears to download Mercurial again, with the second attempt being successful (apparently).

      After installation completes and attempting to launch Sourcetree it crashes, sourcetree.log has the following records:

      2023-01-26T13:41:53: LogHost: Initializing to normal mode
      ERROR [2023-01-26 13:43:25,294] [1] [SourceTree.Notifications.NotificationsManager] [Log] - Unable to set owner as parent is not visible or non-existent
      ERROR [2023-01-26 13:43:31,674] [1] [SourceTree.App] [Log] - Failed to start
      System.ComponentModel.Win32Exception (0x80004005): Access is denied
         at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
         at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
         at SourceTree.Security.PageantSshKeyAgent.Launch(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank)
         at SourceTree.AppRoot.OnboardIfRequired()
         at SourceTree.AppRoot.<OnStartup>d__24.MoveNext()
      — End of stack trace from previous location where exception was thrown —
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
         at SourceTree.App.<OnStartup>d__9.MoveNext()
      ERROR [2023-01-26 13:43:41,168] [1] [SourceTree.App] [Log] - Access is denied
      System.ComponentModel.Win32Exception (0x80004005): Access is denied
         at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
         at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
         at SourceTree.Security.PageantSshKeyAgent.Launch(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank)
         at SourceTree.AppRoot.DoStartupTasksAfterFirstWindowDisplayed()
         at SourceTree.MainWindow.OnContentRendered(EventArgs e)
         at System.Windows.Window.<PostContentRendered>b__202_0(Object unused)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
      ERROR [2023-01-26 13:43:41,185] [1] [SourceTree.App] [Log] - Access is denied
      System.ComponentModel.Win32Exception (0x80004005): Access is denied
         at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
         at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
         at SourceTree.Security.PageantSshKeyAgent.Launch(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank)
         at SourceTree.AppRoot.DoStartupTasksAfterFirstWindowDisplayed()
         at SourceTree.MainWindow.OnContentRendered(EventArgs e)
         at System.Windows.Window.<PostContentRendered>b__202_0(Object unused)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
      ERROR [2023-01-26 13:43:41,186] [1] [SourceTree.App] [Log] - Access is denied The application is terminating.
      System.ComponentModel.Win32Exception (0x80004005): Access is denied
         at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
         at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
         at SourceTree.Security.PageantSshKeyAgent.Launch(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank, String keyfile)
         at SourceTree.Security.DefaultSshKeyManager.LaunchSshAgent(Boolean promptForKeyIfBlank)
         at SourceTree.AppRoot.DoStartupTasksAfterFirstWindowDisplayed()
         at SourceTree.MainWindow.OnContentRendered(EventArgs e)
         at System.Windows.Window.<PostContentRendered>b__202_0(Object unused)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
         at System.Windows.Threading.DispatcherOperation.InvokeImpl()
         at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
         at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Windows.Threading.DispatcherOperation.Invoke()
         at System.Windows.Threading.Dispatcher.ProcessQueue()
         at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
         at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
         at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
         at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
         at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
         at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
         at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
         at System.Windows.Application.RunDispatcher(Object ignore)
         at System.Windows.Application.RunInternal(Window window)
         at SourceTree.App.Main()

      We have tried several older versions, including v3.0.17 and v2.6.10, which have the same issue of closing/crashing a couple of seconds after the launch.

      Could you please provide a workaround/fix? Thanks.

      Attachments

        Issue Links

          Activity

            People

              e85ff1f4514c Vipin Yadav
              02527410e7b9 Martin Becker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: