[MacRuby] #1294: MacRuby crashes when loading files on the non-main thread

MacRuby ruby-noreply at macosforge.org
Tue Jun 28 06:46:34 PDT 2011


#1294: MacRuby crashes when loading files on the non-main thread
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…         
     Type:  defect                  |      Status:  new                   
 Priority:  blocker                 |   Milestone:                        
Component:  MacRuby                 |    Keywords:  reduction 0.11-blocker
------------------------------------+---------------------------------------

Comment(by mrada@…):

 I don't think rspec was loading things on threads, rspec-core does not
 seem to use threads anywhere.

 More likely that they start loading client code before they have loaded
 all their code, and because rspec takes a long time to load it was the
 easiest to have this issue with.

 Though, I don't see why this problem would not occur with people using
 autoload and threads:

 {{{
 autoload :FileUtils, 'fileutils'
 autoload :JSON, 'json'
 autoload :MiniTest, 'minitest/unit'
 autoload :Base64, 'base64'
 autoload :Rake, 'rake'

 Thread.new {
   FileUtils
   JSON
   MiniTest
   Rake
   Base64
 }

 Base64
 Rake
 MiniTest
 JSON
 FileUtils
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1294#comment:12>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list