Sono nuovo a Ruby on Rails.Errore: violazione cross-thread su rb_gc()
ho eseguito il seguente in un terminale quando stavo attraversando la creazione di un tutorial blog con Rails:
$ rails blog
[BUG] cross-thread violation on rb_gc()
(null)
Abort trap
Come faccio a determinare che cosa significa questo messaggio di errore e come risolvere il problema?
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-06-23 patchlevel 299) [i686-darwin10]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- EXECUTABLE DIRECTORY: /opt/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-10
- GEM PATHS:
- /opt/local/lib/ruby/gems/1.8
- /Users/sunpech/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org/", "http://gems.github.com"]
- REMOTE SOURCES:
- http://rubygems.org/
- http://gems.github.com
UPDATE
ho fatto qualche giocherellare e non sto ricevendo più il messaggio di errore. Ma noto che il mio ambiente ora sta seguendo un percorso diverso di Ruby.
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-10
- GEM PATHS:
- /Library/Ruby/Gems/1.8
- /Users/sunpech/.gem/ruby/1.8
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org/", "http://gems.github.com"]
- REMOTE SOURCES:
- http://rubygems.org/
- http://gems.github.com
Questo sembra implicare che ho più installazioni di Ruby sul mio Mac box. Uno in/opt/local/bin/e/usr/bin /. Penso che il primo provenga da un'installazione MacPorts, e quest'ultimo è ciò che è venuto con il mio sistema (possibilmente aggiornato).
Stavo ricevendo lo stesso errore. Penso che sia stato un problema con le mie gemme installate. Ho cancellato le gemme installate e l'errore è andato via. Per coincidenza o meno, i PERCORSO GEM nelle versioni di lavoro e non funzionanti sono diversi. –