#16 ✓resolved
Nikos Dimitrakopoulos

[BUG] Application crashes when i try to view first commit on a local repo.

Reported by Nikos Dimitrakopoulos | April 20th, 2008 @ 06:09 AM | in 0.9 (Euterpe)

Hi there. I just installed the latest release (0.8.5) with latest RubyCocoa (0.13.2) and I have a problem. When I try to see the initial commit of a local repository the program exits immediately. All other commits are viewable and also this does not happen (at least so far) on cloned repositories. This is all the info I have, please let me know if I you want anything more that could help to trace the bug.

Comments and changes to this ticket

  • Justin Palmer

    Justin Palmer April 22nd, 2008 @ 11:42 AM

    • State changed from “new” to “open”
    • Milestone set to 0.9 (Euterpe)

    Hi Nikos,

    Can you tell me what Console.app says when GitNub crashes?

  • Nikos Dimitrakopoulos

    Nikos Dimitrakopoulos April 23rd, 2008 @ 02:05 AM

    Sure (why didn't I think of that earlier???

    Obviously (?) the app crashes here:

    diff_div.setInnerHTML(%(
      <h3>#{File.basename(diff.b_path)}</h3>
      <pre><code class="diffcode">#{colored_diff}</pre></code>
    ))
    

    Here is the log:

    [0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]  from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_import.rb:154:in `each_with_index' 
    [0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `each' 
    [0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `each_with_index' 
    [0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `update_main_document' 
    [0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:90:in `tableViewSelectionDidChange' 
    [0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]  from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' 
    [0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]  from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 
    com.apple.launchd[83] ([0x0-0x788788].com.alternateidea.rubycocoa.GitNubApp[44121]) Exited with exit code: 1 
    GitNub[44135] CommitsController#tableViewSelectionDidChange: TypeError: can't convert nil into String 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:201:in `basename' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:201:in `update_main_document' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_import.rb:154:in `each_with_index' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `each' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `each_with_index' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `update_main_document' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:90:in `tableViewSelectionDidChange' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135] /Applications/GitNub.app/Contents/Resources/CommitsController.rb:201:in `basename': can't convert nil into String (TypeError) 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:201:in `update_main_document' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_import.rb:154:in `each_with_index' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `each' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `each_with_index' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:173:in `update_main_document' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:90:in `tableViewSelectionDidChange' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' 
    [0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]  from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 
    com.apple.launchd[83] ([0x0-0x78a78a].com.alternateidea.rubycocoa.GitNubApp[44135]) Exited with exit code: 1
    

    Let me know if you want me to send you the repo or attach it here as a tarball (I don't want to upload it in github yet, it's more or less examples, tests & trash)

  • Deleted User

    Deleted User May 10th, 2008 @ 11:26 AM

    Is this ticket still valid? Does the latest version of GitNub still crash on this repo?

  • Nikos Dimitrakopoulos

    Nikos Dimitrakopoulos May 11th, 2008 @ 05:40 AM

    The truth is that I can't say. I just built it from the latest changeset (from github) but it doesn't work at all. The error message is:

    LSOpenFromURLSpec() failed with error -10810 for the file [...]

    I guess I must have done something wrong with the build but I don't have time right now to check it out... :( If this error code tells something to you to give me a hint on what went wrong I will try it again ASAP.

  • Deleted User

    Deleted User May 11th, 2008 @ 10:36 AM

    Open Console.app, clear the console, then try launching GitHub. When you get the error, take the contents from the Console and paste it here.

  • Erik Ostrom

    Erik Ostrom May 20th, 2008 @ 12:58 PM

    I got error -10810, building from latest sources, not sure what version of RubyCocoa (I think it came with Leopard?). In my case the error in the Console was:

    5/20/08 12:52:25 PM [0x0-0xea0ea].com.alternateidea.rubycocoa.GitNubApp[2985] /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- open4 (LoadError)

    and I resolved it with a simple 'sudo gem install open4'.

  • Justin Palmer

    Justin Palmer September 26th, 2008 @ 04:49 PM

    • State changed from “open” to “resolved”

    This has been resolved earlier.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages