[MacRuby] #1372: Exceptions thrown inside dispatch queue blocks propagate as uncaught objective-c exceptions

MacRuby ruby-noreply at macosforge.org
Wed Aug 3 14:06:13 PDT 2011


#1372: Exceptions thrown inside dispatch queue blocks propagate as uncaught
objective-c exceptions
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:  reduction            
------------------------------------+---------------------------------------

Comment(by mrada@…):

 The following case is handled (properly?):

 {{{
 a = Dispatch::Queue.new 'org.macruby.test'
 a.sync { 1 + 'e' }
 }}}

 So you think it is just slow to handle in the general case?

 Seems weird since it might be possible for unexpected exceptions to crash
 MacRuby and the workaround is to catch the exception inside the block and
 then re-raise outside the block so the proper handler can deal with the
 exception. This would be the case with mintiest.

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



More information about the macruby-tickets mailing list