[MacRuby] #955: Problem printing arrays in 0.7
#955: Problem printing arrays in 0.7 --------------------------------+------------------------------------------- Reporter: perry@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- A serious problem in the new MacRuby 0.7: {{{ $ macirb --simple-prompt
framework 'AppKit'=> true NSSpeechSynthesizer.availableVoices TypeError: can't convert Class into String
}}}
This is clearly wrong. (It is even an example given in http://macruby.labs.oreilly.com/ch01.html and clearly should work.) -- Ticket URL: <http://www.macruby.org/trac/ticket/955> MacRuby <http://macruby.org/>
#955: Problem printing arrays in 0.7 --------------------------------+------------------------------------------- Reporter: perry@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Changes (by eloy.de.enige@…): * owner: lsansonetti@… => eloy.de.enige@… -- Ticket URL: <http://www.macruby.org/trac/ticket/955#comment:2> MacRuby <http://macruby.org/>
#955: Problem printing arrays in 0.7 --------------------------------+------------------------------------------- Reporter: perry@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Changes (by eloy.de.enige@…): * owner: eloy.de.enige@… => lsansonetti@… Comment: This works on trunk (nightly), however, there are some GC warnings: {{{ [10:09:36] eloy:trunk $ macirb irb(main):001:0> NSArray.array macruby(13543,0x7fff70019c20) malloc: *** free() called with 0x102eb4f70 with refcount 0 macruby(13543,0x7fff70019c20) malloc: *** auto malloc[13543]: agc error for object 0x102eb4f70: Deallocating a non-block => [] irb(main):002:0> NSArray.array macruby(13543,0x7fff70019c20) malloc: *** free() called with 0x102ebbf80 with refcount 0 macruby(13543,0x7fff70019c20) malloc: *** auto malloc[13543]: agc error for object 0x102ebbf80: Deallocating a non-block => [] irb(main):003:0> NSArray.array macruby(13543,0x7fff70019c20) malloc: *** free() called with 0x102ebbfc0 with refcount 0 macruby(13543,0x7fff70019c20) malloc: *** auto malloc[13543]: agc error for object 0x102ebbfc0: Deallocating a non-block => [] irb(main):004:0> NSArray.array macruby(13543,0x7fff70019c20) malloc: *** free() called with 0x102ebdff0 with refcount 0 macruby(13543,0x7fff70019c20) malloc: *** auto malloc[13543]: agc error for object 0x102ebdff0: Deallocating a non-block => [] [10:11:24] eloy:trunk $ macirb irb(main):001:0> framework 'AppKit' => true irb(main):002:0> NSSpeechSynthesizer.availableVoices macruby(13547,0x7fff70019c20) malloc: *** free() called with 0x11780fe00 with refcount 0 macruby(13547,0x7fff70019c20) malloc: *** auto malloc[13547]: agc error for object 0x11780fe00: Deallocating a non-block => ["com.apple.speech.synthesis.voice.Agnes", …, "com.apple.speech.synthesis.voice.Zarvox"] irb(main):003:0> NSSpeechSynthesizer.availableVoices macruby(13547,0x7fff70019c20) malloc: *** free() called with 0x118801000 with refcount 0 macruby(13547,0x7fff70019c20) malloc: *** auto malloc[13547]: agc error for object 0x118801000: Deallocating a non-block => ["com.apple.speech.synthesis.voice.Agnes", …, "com.apple.speech.synthesis.voice.Zarvox"] irb(main):004:0> NSSpeechSynthesizer.availableVoices macruby(13547,0x7fff70019c20) malloc: *** free() called with 0x117810800 with refcount 0 macruby(13547,0x7fff70019c20) malloc: *** auto malloc[13547]: agc error for object 0x117810800: Deallocating a non-block => ["com.apple.speech.synthesis.voice.Agnes", …, "com.apple.speech.synthesis.voice.Zarvox"] }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/955#comment:3> MacRuby <http://macruby.org/>
#955: Problem printing arrays in 0.7 --------------------------------+------------------------------------------- Reporter: perry@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: | --------------------------------+------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.8 Comment: Since it works fine on trunk, I'm closing the bug. The GC warnings seem strange but apparently only Eloy experiences them. -- Ticket URL: <http://www.macruby.org/trac/ticket/955#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby