[typo] Cross-thread violation & how I fixed the problem

Thomas Gallaway atomist at gmail.com
Wed Apr 29 02:31:33 EDT 2009



Scott M. Likens wrote:
> Hi,
>
> Using Macports or system Ruby?
>
lhc:/var/www/atomlab atom$ gem env
RubyGems Environment:
   - RUBYGEMS VERSION: 1.3.2
   - RUBY VERSION: 1.8.7 (2009-04-08 patchlevel 160) [powerpc-darwin8]
   - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
   - RUBY EXECUTABLE: /opt/local/bin/ruby
   - EXECUTABLE DIRECTORY: /opt/local/bin
   - RUBYGEMS PLATFORMS:
     - ruby
     - powerpc-darwin-8
   - GEM PATHS:
      - /opt/local/lib/ruby/gems/1.8
      - /Users/atom/.gem/ruby/1.8
   - GEM CONFIGURATION:
      - :update_sources => true
      - :verbose => true
      - :benchmark => false
      - :backtrace => false
      - :bulk_threshold => 1000
      - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"]
   - REMOTE SOURCES:
      - http://gems.rubyforge.org/
      - http://gems.github.com
lhc:/var/www/atomlab atom$ port version
Version: 1.710


> On Apr 27, 2009, at 10:29 PM, Thomas Gallaway wrote:
>
>> I just spent 2 days figuring this out but it seems the issue is one 
>> of the gems in the vendor/gems directory.
>>
>> Machine is a Mac Mini G4 1.25ghzisch with 10.4.6isch? (Anybody else 
>> dislike the new intel mac's? ;-) )
>>
>> I completely removed ruby & made sure it was using the macports 
>> version and after pretty much nuking every single gem and gem install 
>> typo on a empty directory stll got this:
>>
>> lhc:/var/www/atomlab root# rake db:create RAILS_ENV='production'
>> (in /private/var/www/atomlab)
>> config.gem: Unpacked gem calendar_date_select-1.15 in vendor/gems has 
>> no specification file. Run 'rake gems:refresh_specs' to fix this.
>> config.gem: Unpacked gem coderay-0.8.260 in vendor/gems has no 
>> specification file. Run 'rake gems:refresh_specs' to fix this.
>> config.gem: Unpacked gem htmlentities-4.0.0 in vendor/gems has no 
>> specification file. Run 'rake gems:refresh_specs' to fix this.
>> config.gem: Unpacked gem json-1.1.3 in vendor/gems has no 
>> specification file. Run 'rake gems:refresh_specs' to fix this.
>> [BUG] cross-thread violation on rb_gc()
>> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
>>
>> So I went ahead and mv vendor/gems/* /tmp/gems/
>>
>> Of course now I was getting:
>> lhc:/var/www/atomlab root# rake db:create
>> (in /private/var/www/atomlab)
>> rake aborted!
>> no such file to load -- coderay
>>
>> After
>> gem install coderay htmlentities json calendar_date_select
>>
>> *drumroll*
>> lhc:/var/www/atomlab atom$ rake db:migrate RAILS_ENV='production'
>> (in /private/var/www/atomlab)
>> ==  InitialSchema: migrating 
>> ==================================================
>> -- create_table(:users)
>>   -> 0.0712s
>> -- create_table(:articles)
>>   -> 0.1310s
>> -- add_index(:articles, :permalink)
>>
>> We have migrationage!
>>
>> Oh I then ran
>> lhc:/var/www/atomlab atom$ sudo rake gems:unpack
>> Password:
>> (in /private/var/www/atomlab)
>> Unpacked gem: '/private/var/www/atomlab/vendor/gems/coderay-0.8.312'
>> Unpacked gem: '/private/var/www/atomlab/vendor/gems/htmlentities-4.0.0'
>> Unpacked gem: '/private/var/www/atomlab/vendor/gems/json-1.1.4'
>> Unpacked gem: 
>> '/private/var/www/atomlab/vendor/gems/calendar_date_select-1.15'
>>
>> -- Atom
>>
>> _______________________________________________
>> Typo-list mailing list
>> Typo-list at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/typo-list
>>
>>
>> !DSPAM:49f696c7142991804284693! 
>
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list 


More information about the Typo-list mailing list