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

Sourcetree crashes on applying patch from RTC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 1.5.1, 1.6.22
    • None
    • System git 1.9.4 (msysgit)
      Windows 7 Enterprise x64

      Sourcetree crashes while applying specific patches emitted by Rational Team Concert on a git repository.

      The crash is always reproductible for problematic patches, but some other patches are applied without issues.

      Attached a patch that causes the issue (reduced for simplicity and confidentiality issues, but still causes crash)

      Stack trace from sourcetree.log:

      2015-11-06T17:26:50: Fatal error:
      System.ArgumentException: La seconde partie d'un chemin d'accès ne doit pas être un lecteur ou un nom UNC.
      Parameter name: path2

      2015-11-06T17:26:50: Stack trace:
      at System.IO.Path.InternalCombine(String path1, String path2)
      at System.IO.FileSystemEnumerableIterator`1.GetFullSearchString(String fullPath, String searchPattern)
      at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
      at System.IO.Directory.EnumerateFiles(String path, String searchPattern, SearchOption searchOption)
      at SourceTree.ViewModel.ApplyPatchDialogViewModel.AnalysePatchImpl(String patchText, Boolean& isCommit, Boolean& isExtendedDiff, Int32& stripLevel, String& basePath, String& msg) in C:\projects\bitbucket.org\atlassian\sourcetreewin-1.6\ViewModel\ApplyPatchDialogViewModel.cs:line 433
      at SourceTree.ViewModel.ApplyPatchDialogViewModel.<>c_DisplayClass62_0.<AnalysePatch>b_0() in C:\projects\bitbucket.org\atlassian\sourcetreewin-1.6\ViewModel\ApplyPatchDialogViewModel.cs:line 251
      at System.Threading.Tasks.Task`1.InnerInvoke()
      at System.Threading.Tasks.Task.Execute()
      — End of stack trace from previous location where exception was thrown —
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SourceTree.ViewModel.ApplyPatchDialogViewModel.<AnalysePatch>d__62.MoveNext() in C:\projects\bitbucket.org\atlassian\sourcetreewin-1.6\ViewModel\ApplyPatchDialogViewModel.cs:line 253
      — End of stack trace from previous location where exception was thrown —
      at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state)
      at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
      at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
      2015-11-06T17:26:59: Attempt to start ssh-agent.exe process [C:\Program Files (x86)\Git\bin\ssh-agent.exe]

              Unassigned Unassigned
              880304393b88 Arnaud Bellec
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: