Hi Peter Peter Lane wrote:> I have been using wxRuby for a while now, but hit a problem on > upgrading. I have ruby1.9.1p129 installed, along with wxruby 2.0.0. > My system is Ubuntu 8.10, with wxWidgets 2.8-0 from the repository. > > Whenever I exit an application, I get an error message. My programs > seem to work fine, it''s just the error as you exit which is > irritating. I''ve not noticed this with any non-wxruby ruby programs. > Has anyone else come across the same problem? Is there a fix?Thanks for the report. I''m seeing the same thing with Ruby 1.9 on my Ubuntu machine, haven''t quite figured out why yet. I will definitely want to fix this for the upcoming 2.0.1 release. alex
Chauk-Mean Proum
2009-May-19 07:28 UTC
[wxruby-users] Segmentation fault on exiting program
Hi, On Tue, May 19, 2009 at 3:00 AM, Alex Fenton <alex at pressure.to> wrote:> Peter Lane wrote: >> >> I have been using wxRuby for a while now, but hit a problem on upgrading. >> ?I have ruby1.9.1p129 installed, along with wxruby 2.0.0. ?My system is >> Ubuntu 8.10, with wxWidgets 2.8-0 from the repository. >> >> Whenever I exit an application, I get an error message. ?My programs seem >> to work fine, it''s just the error as you exit which is irritating. ?I''ve not >> noticed this with any non-wxruby ruby programs. ?Has anyone else come across >> the same problem? ?Is there a fix? > > Thanks for the report. I''m seeing the same thing with Ruby 1.9 on my Ubuntu > machine, haven''t quite figured out why yet. I will definitely want to fix > this for the upcoming 2.0.1 release. >I suspect a binary incompatibility introduced by the ruby1.9.1p129 related with native extensions. With ruby1.9.1p0, I haven''t noticed such kind of problems on Ubuntu 8.10 and wxRuby-2.0. I have upgraded to Ubuntu 9.04 recently, and I just run the test case still with ruby1.9.1p0 and wxRuby-2.0 without any problem. Conversely, on my MinGW installation, I have upgraded to ruby1.9.1p129 and I''ve noticed that the corresponding wxRuby-2.0 binary gem (built with ruby1.9.1p0) does not work at all. I''ve just rebuilt the wxRuby-2.0 lib with ruby1.9.1p129 and then everything works again. Can you try to rebuild wxRuby ? Anyway, I will check soon what I suspect on Ubuntu 9.10 : - upgrade to ruby1.9.1p129 then try your test case with the wxRuby-2.0 binary gem : the error at the exit should occur - rebuild wxRuby-2.0 for ruby1.9.1p129 and see if the error doesn''t occur any more. Cheers. Chauk-Mean.
Chauk-Mean Proum
2009-May-19 23:26 UTC
[wxruby-users] Segmentation fault on exiting program
On Tue, May 19, 2009 at 9:28 AM, Chauk-Mean Proum <chauk.mean at gmail.com> wrote:> I suspect a binary incompatibility introduced by the ruby1.9.1p129 > related with native extensions.I was wrong ...> Anyway, I will check soon what I suspect on Ubuntu 9.10 : > - upgrade to ruby1.9.1p129 then try your test case with the wxRuby-2.0 > binary gem : the error at the exit should occurNo error at the exit. Alex has more luck than me :-) Cheers. Chauk-Mean.
Chauk-Mean Proum wrote:> On Tue, May 19, 2009 at 9:28 AM, Chauk-Mean Proum <chauk.mean at gmail.com> > wrote: > >> I suspect a binary incompatibility introduced by the ruby1.9.1p129 >> related with native extensions. > > I was wrong ... > >> Anyway, I will check soon what I suspect on Ubuntu 9.10 : >> - upgrade to ruby1.9.1p129 then try your test case with the wxRuby-2.0 >> binary gem : the error at the exit should occur > > No error at the exit. > Alex has more luck than me :-) > > Cheers. > > Chauk-Mean.So the key could be to upgrade Ubuntu ? Thanks for exploring this. I tried the binary gem when I upgraded ruby to 1.9.1, and I got the same problem on both p129 and an earlier release. cheers, Peter. -- Posted via http://www.ruby-forum.com/.