#672: NSException can't be rescued properly -------------------------------------+-------------------------------------- Reporter: mattaimone...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- {{{ begin; [1,2,3].copy << 4; rescue; puts 'oopsie'; end
uncaught Objective-C/C++ exception... 2010-05-02 16:01:21.611 macruby[67263:903] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[NSCFArray insertObject:atIndex:]: mutating method sent to immutable object' *** Call stack at first throw: ( 0 CoreFoundation 0x00007fff80f7a444 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x00007fff8365f0f3 objc_exception_throw + 45 2 CoreFoundation 0x00007fff80f7a267 +[NSException raise:format:arguments:] + 103 3 CoreFoundation 0x00007fff80f7a1f4 +[NSException raise:format:] + 148 4 Foundation 0x00007fff877a9c40 -[NSCFArray insertObject:atIndex:] + 101 5 libmacruby.dylib 0x00000001001754ad nsary_push + 93 6 libmacruby.dylib 0x0000000100152ef2 rb_vm_fast_shift + 4786 7 ??? 0x00000001011281e0 0x0 + 4312957408 8 libmacruby.dylib 0x000000010015f35f rb_vm_run + 351 9 libmacruby.dylib 0x0000000100161a67 rb_vm_run_under + 247 10 libmacruby.dylib 0x0000000100100097 rb_f_eval + 407 11 libmacruby.dylib 0x000000010014c4eb rb_vm_dispatch + 7067 12 workspace.rbo 0x000000010138609d MREP_E6448616C86C4A36A2ED395A785036CB_ruby_scope5 + 317 ) terminate called after throwing an instance of 'NSException' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/672> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel