SourceTree has stopped working.

I am using Windows 7 and Sourcetree 2.x.  Previous answers on this forum were not helping.  I uninstalled Sourcetree, removed all Atlassian and Sourcetree directories in localappdata and in c:\program data, deleted everything I could in localappdata/temp (there's stilla file in use in use called "1"), and rebooted.  Same thing, "Sourcetree has stopped working.

The Windows 7 Event Log shows 2 errors, Application and  .NET Runtime.  I tired poting the event log entries but was not allowed to do so. 

 

1 answer

1 accepted

0 vote
Mike Corsaro Atlassian Team Jun 01, 2017

Hello! Do you get a BugSplat crash dialog when this happens? Also, could you make sure your version of .NET is upgraded to the latest verison? Thanks!

I'm using .NET Framework 4.6.2

Not sure where to check for bugsplat

localappdata/Atlassian/SourceTree/sourcetree.log is empty

Mike Corsaro Atlassian Team Jun 01, 2017

You would have seen a "Send crash report dialog". If possible, could you post the event log entries too? Thanks.

No "send crash report" dialog appeared.

I tried to send the event logs but got an error:

"Your reply was not accepted. Please check for inappropriate language or spam."

Mike Corsaro Atlassian Team Jun 01, 2017

Fill-free to just attach an image of the error and the details of the error.

Mike Corsaro Atlassian Team Jun 01, 2017

It sounds like WMI may have become corrupted. Could you try the following for me?

  • Open up 'Computer Management' (Right click on the Windows 'start' button)
  • Select 'Services and Applications' (left side panel)
  • Right click on 'WMI Control' > 'Properties'
  • Check and see if the description under "General" lists any error or warning

I'm not seeing "Computer Management" 

Under local services in Component Services I see WMI Performance Adapter and it's status is blank (i.e., not "Started")

Mike Corsaro Atlassian Team Jun 01, 2017

Hit WIN+R and type "compmgmt.msc" without the quotes. You may ignore the WMI Performance Adapter status.

Mike Corsaro Atlassian Team Jun 01, 2017

Ah, there's the answer: it looks like the "Win32_OperatingSystem" WMI object cannot be found (?!).

 

Check if the repository is corrupted or not by running following command from command prompt with admin rights: winmgmt /verifyrepository. If it is corrupted the returned result will be “Repository is inconsistent.”

If it does not come back as consistent, you'll need to follow the steps here.

You'll need to use "CIMWin32.mof" and "CIMWin32.dll"

It's running--taking a long time

The repo is inconsistent.  I'm going to ask my IT department to take it from here, so there may be a delay in getting back to you. 

Mike Corsaro Atlassian Team Jun 01, 2017

Got it -- thanks for the follow-up.

repaired WMI with:

winmgmt /salvagerepository

and then was able to successfully install sourcetree.  Thanks for your help!

Mike Corsaro Atlassian Team Jun 05, 2017

Awesome! Glad to hear that!

source tree.PNG

I am also facing the similar issues..when i checked WMI control properties there is no issues in that.Can u please guide

Hello @Mike Corsaro, I have the same problem but my WMI doesn't show any errors. Any chance that you could help me solve this problem?

Same here. My WMI showed "Invalid Namespace", but the CMD returned "WMI repository is consistent"
WMI.png
When I try to debug it opens Visual Studio, but doesn't show anything other than "The application is in break mode"

error.png

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

557 views 1 2
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