SourceTree "opens" but doesn't show the application window
Asked by Kevin Harter:

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!


Answers:
author: Brandon Gresham
body: Jira filed: [](https://jira.atlassian.com/browse/SRCTREE-2470)<https://jira.atlassian.com/browse/SRCTREE-2470>

Please go vote for this.


author: Seth
body: 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.

comments: author: Brandon Gresham
body: Good idea.

[](https://jira.atlassian.com/browse/SRCTREE-2470)<https://jira.atlassian.com/browse/SRCTREE-2470>


author: Michelinium
body: 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 thread2014-06-10 14:28:33.529 SourceTree[14679:507] +[NSImage imageWithSize:flipped:drawingHandler:]: unrecognized selector sent to class 0x7fff7e2a1ff02014-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=-56002014-06-10 14:30:24.618 SourceTree[14679:507] Couldn't get window class: error=-56002014-06-10 14:30:24.619 SourceTree[14679:507] Couldn't get window class: error=-56002014-06-10 14:30:30.953 SourceTree[14679:507] Couldn't get window class: error=-56002014-06-10 14:30:30.953 SourceTree[14679:507] Couldn't get window class: error=-56002014-06-10 14:30:31.492 SourceTree[14679:507] &lt;NSSplitView: 0x4004c51e0&gt;: the delegate &lt;STLogViewController: 0x400a7b080&gt; 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:(    "&lt;NSAutoresizingMaskLayoutConstraint:0x4004c0a60 h=--&amp; v=--&amp; H:[NSView:0x400ae1460(0)]&gt;",    "&lt;NSLayoutConstraint:0x400adce20 H:|-(0)-[MGScopeBar:0x400a82900]   (Names: '|':NSView:0x400ae1460 )&gt;",    "&lt;NSLayoutConstraint:0x400acfd80 H:[NSPopUpButton:0x4008c6660]-(2)-|   (Names: '|':NSView:0x400ae1460 )&gt;",    "&lt;NSLayoutConstraint:0x400a83360 H:[MGScopeBar:0x400a82900]-(8)-[NSTextField:0x4008e6bc0]&gt;",    "&lt;NSLayoutConstraint:0x4004c3760 H:[NSTextField:0x4008e6bc0]-(8)-[NSPopUpButton:0x4008c6660]&gt;",    "&lt;NSLayoutConstraint:0x4009cffc0 H:[NSPopUpButton:0x4008c6660(&gt;=100)]&gt;")Will attempt to recover by breaking constraint &lt;NSLayoutConstraint:0x4009cffc0 H:[NSPopUpButton:0x4008c6660(&gt;=100)]&gt;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:(    "&lt;NSAutoresizingMaskLayoutConstraint:0x4004c0a60 h=--&amp; v=--&amp; H:[NSView:0x400ae1460(0)]&gt;",    "&lt;NSLayoutConstraint:0x400adce20 H:|-(0)-[MGScopeBar:0x400a82900]   (Names: '|':NSView:0x400ae1460 )&gt;",    "&lt;NSLayoutConstraint:0x400acfd80 H:[NSPopUpButton:0x4008c6660]-(2)-|   (Names: '|':NSView:0x400ae1460 )&gt;",    "&lt;NSLayoutConstraint:0x400a83360 H:[MGScopeBar:0x400a82900]-(8)-[NSTextField:0x4008e6bc0]&gt;",    "&lt;NSLayoutConstraint:0x4004c3760 H:[NSTextField:0x4008e6bc0]-(8)-[NSPopUpButton:0x4008c6660]&gt;")Will attempt to recover by breaking constraint &lt;NSLayoutConstraint:0x400a83360 H:[MGScopeBar:0x400a82900]-(8)-[NSTextField:0x4008e6bc0]&gt;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:(    "&lt;NSAutoresizingMaskLayoutConstraint:0x4004c2740 h=--&amp; v=--&amp; V:[NSView:0x400ae1460(0)]&gt;",    "&lt;NSLayoutConstraint:0x400aef2a0 V:|-(0)-[MGScopeBar:0x400a82900]   (Names: '|':NSView:0x400ae1460 )&gt;",    "&lt;NSLayoutConstraint:0x400a9aa60 V:[MGScopeBar:0x400a82900(25)]&gt;",    "&lt;NSLayoutConstraint:0x4004927c0 V:[NSScrollView:0x4008dec40]-(0)-|   (Names: '|':NSView:0x400ae1460 )&gt;",    "&lt;NSLayoutConstraint:0x400a72720 V:[MGScopeBar:0x400a82900]-(-1)-[NSScrollView:0x4008dec40]&gt;")Will attempt to recover by breaking constraint &lt;NSLayoutConstraint:0x400a9aa60 V:[MGScopeBar:0x400a82900(25)]&gt;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:(    "&lt;NSAutoresizingMaskLayoutConstraint:0x400aa12e0 h=--&amp; v=--&amp; V:[NSView:0x400ac5560(0)]&gt;",    "&lt;NSLayoutConstraint:0x4008f3180 V:|-(0)-[NSView:0x4008d0440]   (Names: '|':NSView:0x400ac5560 )&gt;",    "&lt;NSLayoutConstraint:0x4008cb840 V:[NSView:0x4008d0440]-(0)-|   (Names: '|':NSView:0x400ac5560 )&gt;",    "&lt;NSLayoutConstraint:0x4008f30c0 V:[NSSplitView:0x4004c51e0]-(0)-|   (Names: '|':NSView:0x4008d0440 )&gt;",    "&lt;NSLayoutConstraint:0x4008f2fa0 V:|-(26)-[NSSplitView:0x4004c51e0]   (Names: '|':NSView:0x4008d0440 )&gt;")Will attempt to recover by breaking constraint &lt;NSLayoutConstraint:0x4008f30c0 V:[NSSplitView:0x4004c51e0]-(0)-|   (Names: '|':NSView:0x4008d0440 )&gt;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.


author: Brandon Gresham
body: JIRA filed: <https://jira.atlassian.com/browse/SRCTREE-2470>


author: Brandon Gresham
body: 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)<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.

:(

comments: author: Brandon Gresham
body: My mistake, they apparently are testing but my co-worker is still on Lion, which is obviously antiquating.

[https://jira.atlassian.com/browse/SRCTREE-2470?focusedCommentId=608951\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-608951](https://jira.atlassian.com/browse/SRCTREE-2470?focusedCommentId=608951&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-608951)