Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.9.1 crashes on launch #1

Open
brianjlandau opened this issue Jun 16, 2009 · 9 comments
Open

Version 0.9.1 crashes on launch #1

brianjlandau opened this issue Jun 16, 2009 · 9 comments

Comments

@brianjlandau
Copy link

I found this error in the console log: ApplicationController#awakeFromNib: SystemStackError: stack level too deep
Happens in /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb
In a call that originates from:
/Applications/GitNub.app/Contents/Resources/ApplicationController.rb:55:in 'awakeFromNib'

@kch
Copy link

kch commented Sep 10, 2009

I'm not sure your issue is the same I had. A million different things can cause an app to die on launch. But, here's what got it running for me:

$ sudo /usr/bin/gem install grit

@foertter
Copy link

foertter commented Nov 6, 2009

thanks kch, but that fix didn't work for me :(

Here is my error

TexturedWindow#initWithContentRect_styleMask_backing_defer: NameError: uninitialized constant TexturedWindow::NSMinYEdge
/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_import.rb:192:in const_missing' /Applications/GitNub.app/Contents/Resources/TexturedWindow.rb:14:ininitWithContentRect_styleMask_backing_defer'
/Applications/GitNub.app/Contents/Resources/rb_main.rb:23:in NSApplicationMain' /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_import.rb:192:inconst_missing': uninitialized constant TexturedWindow::NSMinYEdge (NameError)
from /Applications/GitNub.app/Contents/Resources/TexturedWindow.rb:14:in initWithContentRect_styleMask_backing_defer' from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:inNSApplicationMain'
from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23

@cstamas
Copy link

cstamas commented Dec 11, 2009

This is SL 10.6 issue, apply this fix http://github.com/Caged/gitnub/commit/b23158d8483762fb849fe477233ce6851fbf8e8d

@petermumford
Copy link

I'm getting this error as well (ApplicationController#awakeFromNib: SystemStackError: stack level too deep) I've check to make sure the above link is using CGRectMinYEdge not NSMinYEdge, which it is. below this error I'm getting:

14/07/2010 14:26:11 [0x0-0xfb0fb].com.alternateidea.rubycocoa.GitNubApp[3480] /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1723:in `size'

14/07/2010 14:26:11 [0x0-0xfb0fb].com.alternateidea.rubycocoa.GitNubApp[3480] /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_attachments.rb:1723:in `count'

Do you have any idea why I might be getting this?

@bramn
Copy link

bramn commented Jul 22, 2010

I'm having the same issue I guess. Don't know where to look for the log file, but the icon pops up and instantly disappears again from the Dock. Too bad, the app looks great, better than GitX ;-)

@bramn
Copy link

bramn commented Jul 22, 2010

Sorry, should have read the other issues too, this one fixed it for me:
http://github.com/Caged/gitnub/issues/unreads#issue/2 :-)

@petermumford
Copy link

it still fails for me when I change the file in the above link. I'm still getting the same error as before. Would really like to get this working. bramn: are you running Snow Leopard (10.6.4)? I only ask because a lot of my settings changed when I upgraded!

@le-personal
Copy link

@peterhost
Copy link

the Leopard fix cstammas mentions (for those who would wonder) consists of editing the
/Applications/GitNub.app/Contents/Resources/TexturedWindow.rb file (inside the app) and replacing the line :

self.setContentBorderThickness_forEdge(44.0, NSMinYEdge)

with :
self.setContentBorderThickness_forEdge(44.0, CGRectMinYEdge)
self.registerForDraggedTypes([NSURLPboardType, NSFilenamesPboardType])

(second line is not modified in the diff (http://github.com/Caged/gitnub/commit/b23158d8483762fb849fe477233ce6851fbf8e8d), but it wasn't in the TextureWindow.rb file in the prepackaged GitNub.app either)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants