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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

790 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you