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

SourceTree Crash with File exists Error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • None
    • 1.6.14
    • None
    • System git: 1.9.5
      Windows 7 Professional 64-bit

    • Severity 1 - Critical

    Description

      Symptoms:

      Source Tree crashes on startup with the error:

      2015-02-23T13:10:26: Fatal error: 
      System.IO.IOException: The file exists.
      2015-02-23T13:10:26: Stack trace: 
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
      at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
      at System.Windows.Controls.GridViewColumnHeader.GetCursor(Int32 cursorID)
      at System.Windows.Controls.GridViewColumnHeader.get_SplitCursor()
      at System.Windows.Controls.GridViewColumnHeader.HookupGripperEvents()
      at System.Windows.FrameworkElement.ApplyTemplate()
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.GridViewHeaderRowPresenter.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
      at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at Microsoft.Windows.Themes.ListBoxChrome.MeasureOverride(Size availableSize)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Control.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
      at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Border.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Control.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
      at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
      at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Border.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Control.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.ContextLayoutManager.UpdateLayout()
      at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
      at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
      at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
      at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
      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-02-23T13:10:32: Fatal error: 
      System.IO.IOException: The file exists.
      2015-02-23T13:10:32: Stack trace: 
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
      at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
      at System.Windows.Controls.GridViewColumnHeader.GetCursor(Int32 cursorID)
      at System.Windows.Controls.GridViewColumnHeader.get_SplitCursor()
      at System.Windows.Controls.GridViewColumnHeader.HookupGripperEvents()
      at System.Windows.FrameworkElement.ApplyTemplate()
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.GridViewHeaderRowPresenter.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
      at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
      at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
      at System.Windows.UIElement.Measure(Size availableSize)
      at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
      at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
      

      Workaround:

      • Rename/delete directory %APP_DATA%\Local\Atlassian\SourceTree.exe_Url_(some weird string) or,
      • Delete all files in C:\Users\Michael\AppData\Local\Temp or,
      • Rename the file %APP_DATA%\Local\Atlassian\SourceTree\<date>_<hash>.txt then start Sourcetree

      Attachments

        1. sourcetree.log
          21 kB
        2. sourcetree.log
          214 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              8147e1a44f4e Tim Kist
              Votes:
              8 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: