It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Very long line of text in source file causing Sourcetree (Win) v2.4.7.0 crash

I updated a HTML file and included a data URL (base64 of an image) that resulted in a text line with about 10,000 characters. Nothing wrong with this, and browsers are OK with it, but Sourcetree crashes when this update is present. Maybe a problem with the diff window or some other processing.

The length of a line, no matter how big, should not crash Sourcetree. Maybe put ellipses into the display if the text is too long for the window.

Reproducible: If I open ST before inserting the long line, ST is fine. Paste the long line into the file, then select the diff window in ST and it immediately crashes. After some experiments, I discovered that a line of 9,581 characters was OK, but anything above that crashes ST. So there's an arbitrary limit being exceeded somewhere.

1 answer

0 votes
Mike Corsaro Atlassian Team Jan 16, 2018

Hello! Could you reply back with the Bugsplat crash ID so I can further debug? Thanks.

A few minutes ago I inserted a random big line of text into one of my source files to generate a fresh BugSplat. The dialog box that pops up doesn't include a "crash ID". So, I put "For Mike Corsaro" at the start of the description, if that'll help you find it.

Mike Corsaro Atlassian Team Jan 16, 2018

Got it -- thanks. Looks like this is part of a known bug that has already been patched in the development branch. The fix should be released in the next week or so. Thanks!

Interestingly, this time the line was way over 20k before the crash happened.

Glad to hear there's a fix for this one. Thanks :)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,895 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you