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
Issue Links
- duplicates
-
SRCTREEWIN-4514 Crash when selecting changed file - The number of elements in this collection must be less than or equal to '65535'.
- Closed
-
SRCTREEWIN-4215 Latest sourcetree crashes repeatedly
- Closed
-
SRCTREEWIN-4554 Crash when select binary asset
- Closed
- is duplicated by
-
SRCTREEWIN-4173 Crash application at start
- Closed
-
SRCTREEWIN-4371 Launching application fails
- Closed
-
SRCTREEWIN-4400 App open with error message on startup
- Closed
-
SRCTREEWIN-4464 After update crashed on registration and now crashes on launch
- Closed
-
SRCTREEWIN-4626 Since the last update the whole program is broken, crashes all the time
- Closed
-
SRCTREEWIN-4612 Crash on application start
- Closed