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

Doesn't start with System.InvalidOperationException

    XMLWordPrintable

Details

    • Severity 1 - Critical

    Description

      Installed the new 2.0.20.1 version after uninstalling the previous 1.9.* version. Program runs fine when it's opened by the installer. Attempting to run the program afterwards the program immediately crashes silently.

      The log file reads;

      ERROR [2017-06-02 00:06:42,547] [1] [SourceTree.App] [OnStartup] - Failed to start
      System.InvalidOperationException: Cannot set Owner property to a Window that has not been shown previously.
      at System.Windows.Window.set_Owner(Window value)
      at SourceTree.Notifications.NotificationsManager.ShowNotificationDialog[T](NotificationDialogWindow notificationWindow, Tuple`2 customAction, VistaTaskDialogIcon icon)
      at SourceTree.Repo.RepoHandlerGitOld.CheckLargeFilesInstalled(Boolean fixAndpromptUser)
      at SourceTree.Repo.RepoHandlerGitOld.CheckIfGitLfsRequiredForRepo(String path, Boolean fixAndpromptUser)
      at SourceTree.Repo.RepoHandlerGitOld.CheckConfigForRepo(String path, Boolean fixAndpromptUser)
      at SourceTree.ViewModel.RepositoryTabContainerViewModel.AddNew(String path, Boolean wasCloned, RepoViewMode atView, String viewData)
      at SourceTree.ViewModel.RepositoryTabContainerViewModel.AddOrActivate(String path, RepoViewMode atView, String viewData)
      at SourceTree.ViewModel.RepositoryTabContainerViewModel.OpenRepoInTab(String path, RepoViewMode atView, String viewData)
      at SourceTree.AppRoot.SingleInstanceOpenRepo(Boolean isFirstInstance, String targetRepo, RepoViewMode view, String data)
      at SourceTree.AppRoot.ProcessArguments(Boolean isFirstInstance)
      at SourceTree.AppRoot.DoWindowStartupTasks()
      at SourceTree.ViewModel.MainWindowViewModel..ctor(IRepositoryTabContainerViewModel repositoryTabContainerViewModel, ICustomActionsManager customActionsManager, IRepositoryManager repositoryManager, IAnalyticsDataManager analyticsDataManager, ITraceManager traceManager, IDispatcher dispatcher, IAccountManager accountManager, IFailureHandler failureHandler, IDvcsManager dvcsManager, IConfigurationManager configurationManager, IInstanceManager instanceManager, ISchedulerManager schedulerManager, IWebManager webManager, IRepositoryMonitorManager repositoryMonitorManager, ISshKeyManager sshKeyManager, INotificationsManager notificationsManager, IPreferencesManager preferencesManager)
      at SourceTree.MainWindow..ctor(IRepositoryTabContainerViewModel repositoryTabContainerViewModel, ICustomActionsManager customActionsManager, IRepositoryManager repositoryManager, IAnalyticsDataManager analyticsDataManager, ITraceManager traceManager, IDispatcher dispatcher, IAccountManager accountManager, IFailureHandler failureHandler, IDvcsManager dvcsManager, IConfigurationManager configurationManager, IInstanceManager instanceManager, ISchedulerManager schedulerManager, IWebManager webManager, IRepositoryMonitorManager repositoryMonitorManager, IApplicationManager applicationManager, ISshKeyManager sshKeyManager, INotificationsManager notificationsManager, IBookmarkManager bookmarkManager, IPreferencesManager preferencesManager)
      at SourceTree.AppRoot.OnStartup(StartupEventArgs e)
      at SourceTree.App.OnStartup(StartupEventArgs e)
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              9324e0760076 Michael Kenny
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: