SourceTree "opens" but doesn't show the application window

I installed a fresh copy of SourceTree 1.9.4 on a new machine. It "opens" but doesn't show an application window at all. I can open Preferences, About, etc. but clicking on New/Clone won't show anything. I deleted the Preferences and Application Support files to no avail. Even rebooted!

5 answers

1 accepted

0 votes
Accepted answer

Jira filed: https://jira.atlassian.com/browse/SRCTREE-2470

Please go vote for this.

Hello there,
I am experiencing the same (SourceTree 1.9.4/OSX 10.7.5).

New/Clone - opens nothing.
Open Recent > my last repo - opens nothing.
Show Bookmarks - opens nothing.
Show Hosted Repositories - opens nothing.

My syslog during start of app:

2014-06-10 14:28:33.502 SourceTree[14679:507] registerCustomValueTransformers on main thread
2014-06-10 14:28:33.529 SourceTree[14679:507] +[NSImage imageWithSize:flipped:drawingHandler:]: unrecognized selector sent to class 0x7fff7e2a1ff0
2014-06-10 14:28:33.530 SourceTree[14679:507] +[NSImage imageWithSize:flipped:drawingHandler:]: unrecognized selector sent to class 0x7fff7e2a1ff0

More syslog when I opened folder:

2014-06-10 14:30:24.618 SourceTree[14679:507] Couldn't get window class: error=-5600
2014-06-10 14:30:24.618 SourceTree[14679:507] Couldn't get window class: error=-5600
2014-06-10 14:30:24.619 SourceTree[14679:507] Couldn't get window class: error=-5600
2014-06-10 14:30:30.953 SourceTree[14679:507] Couldn't get window class: error=-5600
2014-06-10 14:30:30.953 SourceTree[14679:507] Couldn't get window class: error=-5600
2014-06-10 14:30:31.492 SourceTree[14679:507] <NSSplitView: 0x4004c51e0>: the delegate <STLogViewController: 0x400a7b080> was sent -splitView:resizeSubviewsWithOldSize: and left the subview frames in an inconsistent state:
2014-06-10 14:30:31.492 SourceTree[14679:507] Split view bounds: {{0, 0}, {110, 0}}
2014-06-10 14:30:31.492 SourceTree[14679:507]     Subview frame: {{0, 0}, {50, 191}}
2014-06-10 14:30:31.493 SourceTree[14679:507]     Subview frame: {{51, 0}, {300, 191}}
2014-06-10 14:30:31.493 SourceTree[14679:507] The outer edges of the subview frames are supposed to line up with the split view's bounds' edges. NSSplitView is working around the problem, perhaps at the cost of more redrawing. (This message is only logged once per NSSplitView.)
2014-06-10 14:30:31.551 SourceTree[14679:507] Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x4004c0a60 h=--& v=--& H:[NSView:0x400ae1460(0)]>",
    "<NSLayoutConstraint:0x400adce20 H:|-(0)-[MGScopeBar:0x400a82900]   (Names: '|':NSView:0x400ae1460 )>",
    "<NSLayoutConstraint:0x400acfd80 H:[NSPopUpButton:0x4008c6660]-(2)-|   (Names: '|':NSView:0x400ae1460 )>",
    "<NSLayoutConstraint:0x400a83360 H:[MGScopeBar:0x400a82900]-(8)-[NSTextField:0x4008e6bc0]>",
    "<NSLayoutConstraint:0x4004c3760 H:[NSTextField:0x4008e6bc0]-(8)-[NSPopUpButton:0x4008c6660]>",
    "<NSLayoutConstraint:0x4009cffc0 H:[NSPopUpButton:0x4008c6660(>=100)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x4009cffc0 H:[NSPopUpButton:0x4008c6660(>=100)]>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
2014-06-10 14:30:31.554 SourceTree[14679:507] Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x4004c0a60 h=--& v=--& H:[NSView:0x400ae1460(0)]>",
    "<NSLayoutConstraint:0x400adce20 H:|-(0)-[MGScopeBar:0x400a82900]   (Names: '|':NSView:0x400ae1460 )>",
    "<NSLayoutConstraint:0x400acfd80 H:[NSPopUpButton:0x4008c6660]-(2)-|   (Names: '|':NSView:0x400ae1460 )>",
    "<NSLayoutConstraint:0x400a83360 H:[MGScopeBar:0x400a82900]-(8)-[NSTextField:0x4008e6bc0]>",
    "<NSLayoutConstraint:0x4004c3760 H:[NSTextField:0x4008e6bc0]-(8)-[NSPopUpButton:0x4008c6660]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x400a83360 H:[MGScopeBar:0x400a82900]-(8)-[NSTextField:0x4008e6bc0]>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
2014-06-10 14:30:31.555 SourceTree[14679:507] Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x4004c2740 h=--& v=--& V:[NSView:0x400ae1460(0)]>",
    "<NSLayoutConstraint:0x400aef2a0 V:|-(0)-[MGScopeBar:0x400a82900]   (Names: '|':NSView:0x400ae1460 )>",
    "<NSLayoutConstraint:0x400a9aa60 V:[MGScopeBar:0x400a82900(25)]>",
    "<NSLayoutConstraint:0x4004927c0 V:[NSScrollView:0x4008dec40]-(0)-|   (Names: '|':NSView:0x400ae1460 )>",
    "<NSLayoutConstraint:0x400a72720 V:[MGScopeBar:0x400a82900]-(-1)-[NSScrollView:0x4008dec40]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x400a9aa60 V:[MGScopeBar:0x400a82900(25)]>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
2014-06-10 14:30:31.559 SourceTree[14679:507] Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x400aa12e0 h=--& v=--& V:[NSView:0x400ac5560(0)]>",
    "<NSLayoutConstraint:0x4008f3180 V:|-(0)-[NSView:0x4008d0440]   (Names: '|':NSView:0x400ac5560 )>",
    "<NSLayoutConstraint:0x4008cb840 V:[NSView:0x4008d0440]-(0)-|   (Names: '|':NSView:0x400ac5560 )>",
    "<NSLayoutConstraint:0x4008f30c0 V:[NSSplitView:0x4004c51e0]-(0)-|   (Names: '|':NSView:0x4008d0440 )>",
    "<NSLayoutConstraint:0x4008f2fa0 V:|-(26)-[NSSplitView:0x4004c51e0]   (Names: '|':NSView:0x4008d0440 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x4008f30c0 V:[NSSplitView:0x4004c51e0]-(0)-|   (Names: '|':NSView:0x4008d0440 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
2014-06-10 14:30:31.575 SourceTree[14679:507] Layout still needs update after calling -[WebHTMLView layout].  WebHTMLView or one of its superclasses may have overridden -layout without calling super. Or, something may have dirtied layout in the middle of updating it.  Both are programming errors in Cocoa Autolayout.  The former is pretty likely to arise if some pre-Cocoa Autolayout class had a method called layout, but it should be fixed.

Windows restoration on start works only via Mac OS method which may be related some way.

Seems like a lot of good data has been collected, and it sounds like a bug in SourceTree. Has anyone filed a bug at jira.atlassian.com? Is so, post it here as an answer so others can vote it up.

We are seeing the exact same thing here. On my machine (OSX) where the client has been running for several months, working fine. On my co-workers machine (OSX) we just downloaded the latest client this morning and can't get a display to appear either. Prefs, About, that stuff works. But "Repository -> Repository Settings" doesn't display anything. Examining his logs found "unrecognized selector sent to class". Googling that reveals some sort of XCode bug may be to blame. http://stackoverflow.com/questions/10784207/uilabel-copywithzone-unrecognized-selector-sent-to-instance

At my last shop our team did fresh installs on every new release. Appears that Atlassian isn't doing that.

:(

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

830 views 3 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