Crash on Launch LSOpenFromURLSpec() failed
Reported by eventualbuddha | 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
-

Robert 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...
-
eventualbuddha 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.
-

Robert 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!
-
-
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?
-

Robert 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.
-
Kevin Ballard 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 October 13th, 2008 @ 04:49 PM
- → 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:ingem_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:inrequire' 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:ineach' 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: 1I 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 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 June 18th, 2008 @ 10:36 AM
- → State changed from new to open
-
Justin Palmer June 18th, 2008 @ 10:36 AM
- → Assigned user changed from to Justin Palmer
- → Milestone changed from to 0.9 (Euterpe)
-
Kevin Ballard 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 October 13th, 2008 @ 04:49 PM
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 June 18th, 2008 @ 11:29 AM
Patrick, try this:
sudo /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem install open4That should install open4 in the correct location.
-
-
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.
:(
-
omygawshkenas June 24th, 2008 @ 04:52 PM
Yep, I had the same thing. Installing the Ruby.framework version of open4 works great. But it would be nice if Gitnub did a "which gem" to determine where to look for rubygems. Probably not too big of a change to make.
-
-

Ryan Booker June 25th, 2008 @ 12:09 PM
- → Tag changed from 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 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 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.
-
Kevin Ballard June 25th, 2008 @ 12:49 PM
Ryan, grit is pulled in as a submodule. Did you handle that?
-

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)
-
Kevin Ballard 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 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 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 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 October 17th, 2008 @ 08:56 AM
- → Assigned user cleared.
- → State changed from resolved to open
Just wanted to mention that I had to install the
diff-lcsgem via the Ruby framework before GitNub.app would run:sudo /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/gem install diff-lcsWhen in doubt, check out the console and see what framework gems it can't find.
-
Justin Palmer October 17th, 2008 @ 12:03 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 Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
