[MacRuby] #1447: Crash - Assertion failed in RoxorVM::pop_current_exception

MacRuby ruby-noreply at macosforge.org
Sun Feb 5 11:09:30 PST 2012


#1447: Crash - Assertion failed in RoxorVM::pop_current_exception
--------------------------------+-------------------------------------------
 Reporter:  msabramo@…          |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  major               |   Milestone:                       
Component:  MacRuby             |    Keywords:  crash, GCD           
--------------------------------+-------------------------------------------

Comment(by mrada@…):

 NSLog expects a string; by passing it an Exception object it raises the
 nested exception, and also explains why passing `error.inspect` fixes the
 issue. Another detail to note is that the nested exception is an
 Objective-C exception (NSInvalidArgumentException).

 I believe this type of issue has already been logged, and the solution to
 wrap some try/catch blocks around where the Objective-C method is called
 so the exception can be re-raised as a Ruby exception. I think also that
 Eloy's exception patch might fix this
 (https://github.com/MacRuby/MacRuby/pull/25), but I haven't tried yet.

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



More information about the macruby-tickets mailing list