Wxruby 1.9.4 crashes with ruby 1.9.0

I downloaded ruby 1.9.0 and do “make” and “make install” ruby to
/usr/local …

When I tried to run my wxruby code, I got the following message …

Any idea what I did wrong?

[BUG] unknown type 0x22 (0x12 given)
ruby 1.9.0 (2007-12-25 revision 14709) [i686-darwin9.2.0]

– control frame ----------
c:0008 p:-604028 s:0023 b:0023 l:000022 d:000022 TOP
c:0007 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :require
c:0006 p:0009 s:0017 b:0017 l:000016 d:000016 TOP
/usr/local/lib/ruby/gems/1.9.0/gems/wxruby-1.9.4-universal-darwin-9/lib/wx.rb:12
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 FINISH :class_eval
c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :require
c:0003 p:0009 s:0008 b:0008 l:000007 d:000007 TOP abg.rb:9
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :inherited
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :37724

DBG> :
“/usr/local/lib/ruby/gems/1.9.0/gems/wxruby-1.9.4-universal-darwin-9/lib/wx.rb:12:in
require'" DBG> : "/usr/local/lib/ruby/gems/1.9.0/gems/wxruby-1.9.4-universal-darwin-9/lib/wx.rb:12:in <top (required)>'”
DBG> : “abg.rb:9:in require'" DBG> : "abg.rb:9:in '”
– backtrace of native function call (Use addr2line) –
0xdb486
0x1b7ec
0x1b82b
0x1d9c2
0x1001c5b
0x13050a3
0x1305b9e
0x24be
0xd0e04
0x27279
0xd1910
0xd57a4
0xd9b1c
0xd9de9
0x26ce9
0x2724a
0xd1910
0xd57a4
0xd9b1c
0xd9de9
0x1eca4
0x2380a
0x23df
0x2346

Abort trap

  ____________________________________________________________________________________

Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

Zhang P. wrote:

I downloaded ruby 1.9.0 and do “make” and “make install” ruby to
/usr/local …

When I tried to run my wxruby code, I got the following message …

There is a known bug in ruby 1.9.0 which affects event handlers of the
form:
evt_foo :on_foo

Do you have any of these in your code? If so see if it works if you
specify the event handler like this:

evt_foo { | event | on_foo(event) }

http://rubyforge.org/tracker/?func=detail&aid=16625&group_id=426&atid=1698

alex