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

Source-Tree 2.0.20.1 keep crashing right after start

Frank Fock May 11, 2017

After installation of Source-Tree it runs once. Then after exit and a fresh start it appears but at the same time immediately crashes with:

Problemsignatur:

Problemereignisname: APPCRASH

Anwendungsname: SourceTree.exe

Anwendungsversion: 2.0.20.1

Anwendungszeitstempel: 5910598c

Fehlermodulname: git2-785d8c4.DLL

Fehlermodulversion: 0.24.0.0

Fehlermodulzeitstempel: 56d9a1cc

Ausnahmecode: c0000005

Ausnahmeoffset: 0000000000021103

Betriebsystemversion: 6.1.7601.2.1.0.256.4

Gebietsschema-ID: 1031

Zusatzinformation 1: 3e17

Zusatzinformation 2: 3e1714e5fcbcaa4a78fade95c83df052

Zusatzinformation 3: 0d05

Zusatzinformation 4: 0d05273131234648987bb72a10835966

Other tools and git command line are working on the same system. An old version (before 1.9) worked too. I cannot use SourceTree anymore and had to switch to some other Git-UI.

 

5 answers

1 vote
s@110 May 25, 2017

move or remove .git directory from your home directory, if you haven't tried yet.

0 votes
Richard Taylor May 11, 2017

I have the same problem, though only in some of my repos.

Note that git2-785d8c4.dll appears to be LibGit2 v0.24.0 from May 2016.  This is more than 1 year old, and LibGit2 is now on v0.24.6 with several security related releases including fixes for at least 2 CVEs.

To be honest it's a bit concerning to be forced to upgrade for security reasons and find that the new version (a) crashes, and (b) has out of date libraries with known security issues.

Michael Minns Atlassian Team May 11, 2017

We are currently testing a SourceTree update with updated dependencies

Richard Taylor May 11, 2017

Excellent, can I test it when it is available, or is it already available through the beta track?

Michael Minns Atlassian Team May 31, 2017

Hi Richard,

A release should be available in the beta group next week.

0 votes
Ana Retamal Ortiz Atlassian Team May 11, 2017 • edited

Hi Frank, our first guess is that this could be caused by a corrupt user.config in %localappdata%\Atlassian\SourceTree.exe_url_\hash\2.0.20.1\user.config. Can you try removing/backing up that file, restarting and see if it works?

If it still doesn't, it would be helpful to have a look at the sourcetree.log files. You can find them as explained at SourceTree logfile location. Please submit your logs via a Support ticket and let us know here you did that, so we can proceed accordingly. Remember to include your Windows version.

Best regards,

Ana

Frank Fock May 11, 2017 • edited May 16, 2017

I have removed the whole %localappdata%\Atlassian\* stuff several times. That does not change anything. Even *not* configuring any Git repositories at the first successful start after fresh installation will *not* prevent Sourcetree from crashing after second (and more) start. Windows version is 7 Enterprise (see crash report above).  

The sourcetree.log file is completely empty - so no need to upload it ;-)

0 votes
James Wilkinson May 12, 2017

I've experienced the same issue after updating to v2.0.20.1 yesterday.

I tried uninstalling and reinstalling SourceTree, but the error persisted. After several attempts, I managed to capture the error popup:

---------------------------
Error encountered
---------------------------
'git status' failed with code 128: fatal: unable to access 'H:\/.config/git/config': Invalid argument
 (C:\GitHub\<reponame>)
---------------------------
OK   
---------------------------

H: is a network share at my office, but I am working remotely today and don't have access to the office network. Previously I was using SourceTree v1.9.10.0 and this issue was not present.

Why does SourceTree save a config file to a network share instead of locally and where can I change this? 

Michael Minns Atlassian Team May 31, 2017

That is actually a git config file not aactually a SourceTree one.

Git does save configuration files to user's home directories.

You mention v1.9 worked in this environment, in which case it may be a difference between git.exe used in <=1.10 and libgit2 used in >=2.

0 votes
Frank Fock Jun 29, 2017 • edited Jul 03, 2017

The crash still happens with version 2.1.2.5 after the Application has been exited for the first time. Then right after starting it, it keeps crashing at a 100% rate:

 

Problemsignatur:

Problemereignisname: APPCRASH

Anwendungsname: SourceTree.exe

Anwendungsversion: 2.1.2.5

Anwendungszeitstempel: 59354ffa

Fehlermodulname: git2-785d8c4.DLL

Fehlermodulversion: 0.24.0.0

Fehlermodulzeitstempel: 56d9a1cc

Ausnahmecode: c0000005

Ausnahmeoffset: 0000000000021103

Betriebsystemversion: 6.1.7601.2.1.0.256.4

Gebietsschema-ID: 1031

Zusatzinformation 1: 3e17

Zusatzinformation 2: 3e1714e5fcbcaa4a78fade95c83df052

Zusatzinformation 3: 0d05

Zusatzinformation 4: 0d05273131234648987bb72a10835966

Den Thorn Jul 19, 2017 • edited

I had similar issue - ST run only once ok (right after install), then every single nexyt startup it gave me up to 4 messages "git status fail 128 must be run on the working tree (c:\Users\MYUSERNAME) "  and crashed after that.

I created an empty .git folder inside c:\Users\MYUSERNAME and it fixed crashes, now it works ok

Cheers!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,858 views 14 18
Join discussion

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