# Wxruby 1.9.4 crashes with ruby 1.9.0

**URL:** <https://www.ruby-forum.com/t/wxruby-1-9-4-crashes-with-ruby-1-9-0/129997>\
**Category:** wxRuby\
**Created:** [February 24, 2008, 12:44am UTC](https://www.ruby-forum.com/t/wxruby-1-9-4-crashes-with-ruby-1-9-0/129997 "2008-02-24T00:44:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhang\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/cdc98d/32.png) [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Post date:** [February 24, 2008, 12:44am UTC](https://www.ruby-forum.com/t/wxruby-1-9-4-crashes-with-ruby-1-9-0/129997/1 "2008-02-24T00:44:08Z")

</div>

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](http://www.yahoo.com/r/hs)

---

<div class="post-metadata">

**Author:** ![Zhang\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/cdc98d/32.png) [@Zhang\_P](https://www.ruby-forum.com/u/Zhang_P)\
**Post date:** [February 25, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/wxruby-1-9-4-crashes-with-ruby-1-9-0/129997/2 "2008-02-25T13:15:05Z")

</div>

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](http://rubyforge.org/tracker/?func=detail&aid=16625&group_id=426&atid=1698)

alex
