Version 0.9.1 crashes on launch
brianjlandau opened this issue · 9 comments
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'
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
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:in
initWithContentRect_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:in
const_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:in
NSApplicationMain'
from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23
This is SL 10.6 issue, apply this fix http://github.com/Caged/gitnub/commit/b23158d8483762fb849fe477233ce6851fbf8e8d
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?
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 ;-)
Sorry, should have read the other issues too, this one fixed it for me:
http://github.com/Caged/gitnub/issues/unreads#issue/2 :-)
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!
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)