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 <dummy
toplevel>: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 `<main>''"
-- 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
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
Zhang Peng 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
No. I don''t have any "evt_foo :on_foo" construct in my code. What else might cause the problem? Thanks! ----- Original Message ---- From: Alex Fenton <alex at pressure.to> To: General discussion of wxRuby <wxruby-users at rubyforge.org> Sent: Monday, February 25, 2008 6:14:32 AM Subject: Re: [wxruby-users] wxruby 1.9.4 crashes with ruby 1.9.0 Zhang Peng 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 _______________________________________________ wxruby-users mailing list wxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20080225/e27b7c09/attachment.html
Zhang Peng wrote:> No. I don''t have any "evt_foo :on_foo" construct in my code. > > What else might cause the problem?Hard to say without any code to look at. You did compile your own wxruby against 1.9.0? Binary libraries compiled against ruby 1.8.6 are not compatible with 1.9.0. alex
Ok. That could be the problem then since I did not compile wxruby. I''ll check out how to do "compile wxruby against 1.9.0" and see if it works better. Thanks! ----- Original Message ---- From: Alex Fenton <alex at pressure.to> To: General discussion of wxRuby <wxruby-users at rubyforge.org> Sent: Monday, February 25, 2008 8:19:52 AM Subject: Re: [wxruby-users] wxruby 1.9.4 crashes with ruby 1.9.0 Zhang Peng wrote:>No. I don''t have any "evt_foo :on_foo" construct in my code.> >What else might cause the problem? Hard to say without any code to look at. You did compile your own wxruby against 1.9.0? Binary libraries compiled against ruby 1.8.6 are not compatible with 1.9.0. alex _______________________________________________ wxruby-users mailing list wxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20080225/3fbbd24f/attachment.html
Zhang Peng wrote:> Ok. That could be the problem then since I did not compile wxruby. > > I''ll check out how to do "compile wxruby against 1.9.0" and see if it > works better.Should be fairly straightforward on OS X, there''s a wiki page with a step-by-step. Any particular reason for using 1.9.0? Whilst it''s good to get some testing on there, it''s got''s plenty of bugs. If you''re looking to build real-life apps, I''d stick with 1.8.x best alex