#19 ✓resolved
Brian Donovan

Crash on Launch LSOpenFromURLSpec() failed

Reported by Brian Donovan | May 1st, 2008 @ 06:22 PM | in 0.9 (Euterpe)

Pulled d380c947f09b, ran "rake run", and got this error: LSOpenFromURLSpec() failed with error -10810 for the file /Users/donovan/Code/gitnub/build/Release/GitNub.app

Comments and changes to this ticket

  • ronin-19008 (at lighthouseapp)

    ronin-19008 (at lighthouseapp) May 2nd, 2008 @ 12:16 AM

    Make sure you've installed all the listed requirements:

    RubyCocoa

    open4

    And also one that I can't see mentioned in the docs:

    mime-types

    If you look in to the Console, you'll see some useful messages as you run nub - I've just cracked this myself in the last five minutes...

  • Brian Donovan

    Brian Donovan May 2nd, 2008 @ 11:02 AM

    Thanks for the tip Robert. I looked in the system log and found this:

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- lib/grit/lib/grit (LoadError)

    but it didn't go away after installing the grit gem.

  • ronin-19008 (at lighthouseapp)

    ronin-19008 (at lighthouseapp) May 2nd, 2008 @ 12:43 PM

    No problem. Take a look at the installation page on the wiki:

    http://github.com/Caged/gitnub/w...

    particularly the stuff about sub modules. I had the same problem!

  • Brian Donovan

    Brian Donovan May 2nd, 2008 @ 12:53 PM

    Yay! Sorry for not RTFM first.

  • Justin Palmer

    Justin Palmer May 2nd, 2008 @ 02:26 PM

    Glad you guys got this sorted. The docs were slightly outdated, I've since updated them.

    I'm including mime-types with gitnub, but based on your comment it looks like mime-types isn't being included, Robert?

  • ronin-19008 (at lighthouseapp)

    ronin-19008 (at lighthouseapp) May 2nd, 2008 @ 10:56 PM

    I think that's right - I cloned a clean copy, did the submodule stuff but got the LSOpen error for mime/types. I then gem installed mime-types and all was well.

  • Deleted User

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

    I've fixed my own fork (kballard/gitnub) such that the bundled mime-types will actually be used. It also tweaks the `rake run` task such that it checks for the open4 library and errors out if it's not found. That should solve this ticket.

  • Patrick Mosby

    Patrick Mosby June 18th, 2008 @ 04:51 AM

    • Assigned user cleared.

    I downloaded the GitNub source from GitHub, installed and built it the way it's written in the guide and still get this error:

    LSOpenFromURLSpec() failed with error -10810 for the file /Users/patrick/Coding/XCode/gitnub.

    When I look at my console logs it says:

    18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require': no such file to load -- open4 (LoadError) 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire' 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /Applications/GitNub.app/Contents/Resources/lib/grit/lib/grit.rb:13 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire' 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /Applications/GitNub.app/Contents/Resources/ApplicationController.rb:14 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /Applications/GitNub.app/Contents/Resources/rb_main.rb:16:in require' 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /Applications/GitNub.app/Contents/Resources/rb_main.rb:16:inrb_main_init' 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /Applications/GitNub.app/Contents/Resources/rb_main.rb:15:in each' 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /Applications/GitNub.app/Contents/Resources/rb_main.rb:15:inrb_main_init' 18.06.08 13:43:06 [0x0-0x255255].com.alternateidea.rubycocoa.GitNubApp[65094] from /Applications/GitNub.app/Contents/Resources/rb_main.rb:22 18.06.08 13:43:06 com.apple.launchd149 Exited with exit code: 1

    I installed open4 via 'sudo gem install open4' and 'gem list' lists it as locally installed.

    What have I done wrong?

    Thanks in advance

  • Justin Palmer

    Justin Palmer June 18th, 2008 @ 10:29 AM

    • Assigned user cleared.
    • Milestone cleared.

    Do you happen to have a custom built Ruby installed? Seems I might end up having to bundle the open4 gem as well.

    If you do have a custom Ruby, you might have to build RubyCocoa too, otherwise it has problems finding which gems to use (/usr/local/ or /System/Library/Ruby.framework).

  • Justin Palmer

    Justin Palmer June 18th, 2008 @ 10:36 AM

    • State changed from “new” to “open”
  • Justin Palmer

    Justin Palmer June 18th, 2008 @ 10:36 AM

    • Assigned user set to “Justin Palmer”
    • Milestone set to 0.9 (Euterpe)
  • Deleted User

    Deleted User June 18th, 2008 @ 10:40 AM

    Instead of bundling open4, you could just re-implement it. It can't be

    terribly difficult to do.

    -Kevin Ballard

    On Jun 18, 2008, at 10:29 AM, Lighthouse wrote:

  • Patrick Mosby

    Patrick Mosby June 18th, 2008 @ 10:54 AM

    Hm strange, I have open4 in /usr/local/lib/ruby/gems/1.8/gems/ but not in /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/

    Do you know how I could fix this?

    Thanks in advance

  • Justin Palmer

    Justin Palmer June 18th, 2008 @ 11:29 AM

    Patrick, try this:

    sudo /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem install open4 
    

    That should install open4 in the correct location.

  • Patrick Mosby

    Patrick Mosby June 18th, 2008 @ 11:32 AM

    Thanks, this worked great!

  • Tom

    Tom June 24th, 2008 @ 03:54 PM

    0.85 was working fine, but when i used sparkle to update to 0.9 i started getting this:

    toms-macbook:chyrp Tom$ nub

    LSOpenFromURLSpec() failed with error -10810 for the file /Developer/gitrepos/chyrp.

    :(

  • Tom

    Tom June 25th, 2008 @ 12:46 AM

    Doing gem install open4 fixed it.

  • Ryan Booker

    Ryan Booker June 25th, 2008 @ 12:09 PM

    • Tag set to @high, error

    I have a installed:

    ruby 1.8.7 with --enable-shared

    open4

    mime-types

    RubyCocoa (from the dmg as the source wont compile)

    GitNub.

    Can't find open4.

    Why do I need to install in in the framework if the gem is installed?

  • Ryan Booker

    Ryan Booker June 25th, 2008 @ 12:22 PM

    FYI to build RubyCocoa you need MORE than --enable-shared on your ruby install.

    I used:

    ./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1

    RubyCocoa compiled fine after that.

    However it didn't help the open4 issue. It still only looks in the framework.

  • Ryan Booker

    Ryan Booker June 25th, 2008 @ 12:39 PM

    Building GitNub from the latest compiles, but doesn't run. It fails when looking for grit. Even with the gem installed. It is looking in the framework again (like for open4). The "grit" folder in libs is also empty. If that matters.

  • Deleted User

    Deleted User June 25th, 2008 @ 12:49 PM

    Ryan, grit is pulled in as a submodule. Did you handle that?

  • Ryan Booker

    Ryan Booker June 25th, 2008 @ 12:58 PM

    • Tag cleared.

    Sorry. Now I'm back to open4 needing to be installed in the framework gems. Rather than it using my custom install.

    (removed @high error tags that it appears I added by mistake)

  • Deleted User

    Deleted User June 25th, 2008 @ 01:04 PM

    Ryan, GitNub uses the Ruby framework to load up ruby and run the real source. So yes, you need to install it in the framework.

    You should be able to use `/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/gem install open4`.

  • Brad Gessler

    Brad Gessler June 26th, 2008 @ 06:14 PM

    If all of these gems are prerequisites to install GitNub; doesn't it make sense to indicate so in the INSTALL directions?

  • Justin Palmer

    Justin Palmer June 30th, 2008 @ 06:46 PM

    The only gem required is open4. This ticket has spanned a couple versions. The next version of GitNub will bundle open4, but for now the solution is to do this if you have a custom Ruby/RubyCocoa:

    sudo /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem install open4 
    
  • Justin Palmer

    Justin Palmer August 5th, 2008 @ 06:07 PM

    • State changed from “open” to “resolved”

    Fixed here: http://github.com/Caged/gitnub/c...

    I'm now bundling open4. Hopefully that's the last of this!

  • Stephen Tudor

    Stephen Tudor October 17th, 2008 @ 08:55 AM

    • Assigned user cleared.
    • State changed from “resolved” to “open”

    Just wanted to mention that I had to install the diff-lcs gem via the Ruby framework before GitNub.app would run:

    sudo /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/gem install diff-lcs

    When in doubt, check out the console and see what framework gems it can't find.

  • Justin Palmer

    Justin Palmer October 17th, 2008 @ 12:02 PM

    • State changed from “open” to “resolved”

    Stephen: Somehow I missed that. The diff-lcs directory structure was included, but the files weren't. The fix is here: http://github.com/Caged/gitnub/c...

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 ยป

Referenced by

Pages