chrishunt / desktop

A decent way to change your desktop image
https://github.com/chrishunt/desktop
MIT License
250 stars 15 forks source link

Crash #23

Closed jbrooksuk closed 10 years ago

jbrooksuk commented 10 years ago

Running Yosemite 10.10.1:

/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/sqlite3-1.3.9/lib/sqlite3/sqlite3_native.bundle: [BUG] Segmentation fault at 0x00000000000418
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin14.0]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/CrashReporter
     * /Library/Logs/CrashReporter
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   for more details.

-- Control frame information -----------------------------------------------
c:0022 p:-17536324654742 s:0104 e:000103 TOP    [FINISH]
c:0021 p:---- s:0102 e:000101 CFUNC  :require
c:0020 p:0113 s:0098 e:000097 METHOD /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54
c:0019 p:0020 s:0088 e:000087 RESCUE /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/sqlite3-1.3.9/lib/sqlite3.rb:6
c:0018 p:0032 s:0085 e:000084 TOP    /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/sqlite3-1.3.9/lib/sqlite3.rb:2 [FINISH]
c:0017 p:---- s:0083 e:000082 CFUNC  :require
c:0016 p:0113 s:0079 e:000078 METHOD /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54
c:0015 p:0007 s:0069 e:000068 TOP    /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/osx/database.rb:1 [FINISH]
c:0014 p:---- s:0067 e:000066 CFUNC  :require
c:0013 p:0113 s:0063 e:000062 METHOD /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54
c:0012 p:0007 s:0053 e:000052 TOP    /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/osx/osx.rb:1 [FINISH]
c:0011 p:---- s:0051 e:000050 CFUNC  :require
c:0010 p:0113 s:0047 e:000046 METHOD /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54
c:0009 p:0039 s:0037 e:000036 TOP    /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop.rb:6 [FINISH]
c:0008 p:---- s:0035 e:000034 CFUNC  :require
c:0007 p:0113 s:0031 e:000030 METHOD /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54
c:0006 p:0007 s:0021 e:000020 TOP    /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/bin/desktop:3 [FINISH]
c:0005 p:---- s:0019 e:000018 CFUNC  :load
c:0004 p:0135 s:0015 E:000058 EVAL   /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/bin/desktop:23 [FINISH]
c:0003 p:---- s:0011 e:000010 CFUNC  :eval
c:0002 p:0118 s:0005 E:001c80 EVAL   /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15 [FINISH]
c:0001 p:0000 s:0002 E:0009a8 TOP    [FINISH]

/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/bin/desktop:23:in `<main>'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/bin/desktop:23:in `load'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/bin/desktop:3:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop.rb:6:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/osx/osx.rb:1:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/osx/database.rb:1:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/sqlite3-1.3.9/lib/sqlite3.rb:2:in `<top (required)>'
/Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/sqlite3-1.3.9/lib/sqlite3.rb:6:in `rescue in <top (required)>'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'

-- C level backtrace information -------------------------------------------
0   libruby.2.1.0.dylib                 0x000000010704ac09 rb_print_backtrace + 29
1   libruby.2.1.0.dylib                 0x000000010704acf7 rb_vm_bugreport + 131
2   libruby.2.1.0.dylib                 0x0000000106f3f2e2 report_bug + 305
3   libruby.2.1.0.dylib                 0x0000000106f3f1ac rb_bug + 180
4   libruby.2.1.0.dylib                 0x0000000106fe9c6f check_stack_overflow + 0
5   libsystem_platform.dylib            0x00007fff95bddf1a _sigtramp + 26
6   libruby.2.0.0.dylib                 0x0000000107354d17 ruby_xmalloc + 23
7   ???                                 0x00007f97f336ad60 0x0 + 140290597236064

-- Other runtime information -----------------------------------------------

* Loaded script: /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/bin/desktop

* Loaded features:

    0 enumerator.so
    1 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/enc/encdb.bundle
    2 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/enc/trans/transdb.bundle
    3 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/rbconfig.rb
    4 thread.rb
    5 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/thread.bundle
    6 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/compatibility.rb
    7 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/defaults.rb
    8 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/deprecate.rb
    9 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/errors.rb
   10 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/version.rb
   11 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/requirement.rb
   12 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/platform.rb
   13 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/basic_specification.rb
   14 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/stub_specification.rb
   15 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/util/stringio.rb
   16 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/specification.rb
   17 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/exceptions.rb
   18 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/rubygems/defaults/operating_system.rb
   19 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb
   20 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/monitor.rb
   21 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb
   22 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems.rb
   23 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/path_support.rb
   24 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb
   25 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/executable-hooks-1.2.6/lib/executable-hooks/hooks.rb
   26 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/etc.bundle
   27 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/fileutils.rb
   28 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/pathname.bundle
   29 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/pathname.rb
   30 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/gem_path_manipulation.rb
   31 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/gem_helpers.rb
   32 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/match_platform.rb
   33 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/rubygems_ext.rb
   34 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/io/console.bundle
   35 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/user_interaction.rb
   36 /usr/local/lib/ruby/site_ruby/2.1.0/rubygems/config_file.rb
   37 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb
   38 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/version.rb
   39 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler.rb
   40 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/bundler-unload-1.0.2/lib/bundler-unload.rb
   41 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb
   42 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/set.rb
   43 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/command.rb
   44 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/core_ext/hash_with_indifferent_access.rb
   45 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/core_ext/ordered_hash.rb
   46 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/error.rb
   47 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/invocation.rb
   48 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/parser/argument.rb
   49 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/parser/arguments.rb
   50 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/parser/option.rb
   51 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/parser/options.rb
   52 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/parser.rb
   53 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/shell.rb
   54 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/line_editor/basic.rb
   55 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/readline.bundle
   56 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/line_editor/readline.rb
   57 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/line_editor.rb
   58 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/util.rb
   59 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor/base.rb
   60 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/thor-0.19.1/lib/thor.rb
   61 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/cli.rb
   62 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/image.rb
   63 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/local_image.rb
   64 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/version.rb
   65 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/cgi/core.rb
   66 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/cgi/util.rb
   67 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/cgi/cookie.rb
   68 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/cgi.rb
   69 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/forwardable.rb
   70 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/timeout.rb
   71 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/parameters.rb
   72 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/utils.rb
   73 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/options.rb
   74 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/connection.rb
   75 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/rack_builder.rb
   76 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/middleware.rb
   77 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/adapter.rb
   78 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/request.rb
   79 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/response.rb
   80 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/multipart-post-1.2.0/lib/composite_io.rb
   81 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/multipart-post-1.2.0/lib/parts.rb
   82 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/x86_64-darwin14.0/stringio.bundle
   83 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/upload_io.rb
   84 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/error.rb
   85 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday/autoload.rb
   86 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/faraday-0.9.0/lib/faraday.rb
   87 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/common.rb
   88 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/generic.rb
   89 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/ftp.rb
   90 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/http.rb
   91 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/https.rb
   92 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/ldap.rb
   93 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/ldaps.rb
   94 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri/mailto.rb
   95 /usr/local/Cellar/ruby/2.1.3_1/lib/ruby/2.1.0/uri.rb
   96 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/http.rb
   97 /Users/james.brooks/.rvm/gems/ruby-2.0.0-p353/gems/desktop-1.2.0/lib/desktop/web_image.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
Don't forget to include the above Crash Report log file.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6
chrishunt commented 10 years ago

Wow! Thanks much. It looks like the segmentation fault is happening when sqlite3 is loaded. Is it possible that you upgraded to Yosemite and didn't rebuild your gems? I believe gems with native extensions should be re-built when the OS is updated.

Can you try uninstalling and re-installing sqlite3? On my machine, I can do this with:

$ gem uninstall sqlite3 desktop -Ix --force && gem install desktop
jbrooksuk commented 10 years ago

@chrishunt is there a way I can rebuild all gems? Your suggestion has fixed desktop for me, thanks!

chrishunt commented 10 years ago

@chrishunt is there a way I can rebuild all gems?

I'm not sure if there is a way to re-build everything. I think most folks just delete all installed gems and re-build as necessary when they start working on a project.

You could probably uninstall all gems by removing the gem dir:

$ gem environment gemdir

Or by using gem uninstall

$ for i in `gem list --no-versions`; do gem uninstall -aIx $i; done