[MacRuby-devel] [MacRuby] #312: reopening a class and setNeedsDisplay: segfault

MacRuby ruby-noreply at macosforge.org
Fri Aug 21 23:40:06 PDT 2009


#312: reopening a class and setNeedsDisplay: segfault
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  critical                 |   Milestone:  MacRuby 0.5          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 {{{
 framework 'Cocoa'
 class ImageLayer < CALayer; def initialize(file_name); super(); end; end
 ImageLayer.new('test').setNeedsDisplay
 }}}

 unknown: [BUG] Segmentation fault

 The same class, without the modified initializer works fine:


 {{{
 class ImageLayer < CALayer; def initialize; super(); end; end
 ImageLayer.new.setNeedsDisplay # => nil
 }}}

 Interesting enough:

 {{{
 class ImageLayer < CALayer; def initialize(file_name); super(); end; end
 ImageLayer.new('test')
 #=> #<ImageLayer:0x8004963c0>
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/312>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list