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

Crash when rendering diff

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Highest
    • 1.8.2
    • 1.8.1
    • General
    • Windows 10 Pro, x64

    Description

      SourceTree was crashing once my repository's tab UI loaded. I restarted it several times and it continued to happen.

      I launched it without it crashing by quickly navigating to a different view. Having done this, I determined that it would crash when viewing the diff for a .css.map file. The application does not crash when I navigate to views which contain other diffs. Upon performing a checkout on the .css.map file through a terminal, SourceTree is capable of viewing the other uncommitted changes. Oddly, it doesn't crash when rendering some of my other .css.map files, but it fails to display the diff nonetheless. I created a foo.css.map file, to which I wrote a single character. SourceTree refuses to display a diff for this file.

      Here is the top of one of the stack traces in the crash log:

      ERROR [2016-02-16 15:03:10,356] [1] [SourceTree.AppRoot] [HandleCrash] - Fatal error
      System.ArgumentException: The number of elements in this collection must be less than or equal to '65535'.
      Parameter name: glyphIndices
         at System.Windows.Media.GlyphRun.Initialize(GlyphTypeface glyphTypeface, Int32 bidiLevel, Boolean isSideways, Double renderingEmSize, IList`1 glyphIndices, Point baselineOrigin, IList`1 advanceWidths, IList`1 glyphOffsets, IList`1 characters, String deviceFontName, IList`1 clusterMap, IList`1 caretStops, XmlLanguage language, TextFormattingMode textFormattingMode)
         at Atlassian.GutenbergTextView.TextLine.Draw(DrawingContext drawingContext) in C:\projects\GutenbergTextView\GutenbergTextView\Text\TextLine.cs:line 69
         at Atlassian.GutenbergTextView.RenderedLineVisual.RenderText() in C:\projects\GutenbergTextView\GutenbergTextView\Text\RenderedLineVisual.cs:line 107
         at Atlassian.GutenbergTextView.FormattedLine.GetOrCreateVisual() in C:\projects\GutenbergTextView\GutenbergTextView\Text\RenderedLineVisual.cs:line 65
         at Atlassian.GutenbergTextView.TextContentLayer.UpdateTextVisuals() in C:\projects\GutenbergTextView\GutenbergTextView\Text\TextContentLayer.cs:line 60
         at Atlassian.GutenbergTextView.TextContentLayer.ArrangeOverride(Size arrangeBounds) in C:\projects\GutenbergTextView\GutenbergTextView\Text\TextContentLayer.cs:line 115
      

      Attachments

        1. snip.png
          snip.png
          2 kB
        2. sourcetree.log
          123 kB

        Issue Links

          Activity

            People

              mcorsaro Mike Corsaro (Inactive)
              2d4504d6f4dc adam_oldfield
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: