gitnub icon indicating copy to clipboard operation
gitnub copied to clipboard

Version 0.9.1 crashes on launch

Open brianjlandau opened this issue 16 years ago • 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'

brianjlandau avatar Jun 16 '09 18:06 brianjlandau

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

kch avatar Sep 10 '09 12:09 kch

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

foertter avatar Nov 06 '09 20:11 foertter

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

cstamas avatar Dec 11 '09 09:12 cstamas

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?

petermumford avatar Jul 14 '10 13:07 petermumford

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 avatar Jul 22 '10 16:07 bramn

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

bramn avatar Jul 22 '10 16:07 bramn

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!

petermumford avatar Jul 23 '10 09:07 petermumford

http://github.com/Caged/gitnub/issues#issue/1/comment/89294 Worked for me

le-personal avatar Jul 27 '10 20:07 le-personal

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)

peterhost avatar Oct 18 '10 13:10 peterhost