Ruby Forum Ruby-Gnome 2 > rg2 misbehaving with ruby 1.8.7?

Posted by Guillaume Cottenceau (Guest)
on 22.06.2008 09:35
(Received via mailing list)
I have just noticed something wrong when using one of my rg2 programs
with ruby-1.8.7. It happened with ruby-1.8.7-p0, ruby-1.8.7-p17 and
ruby-1.8.7-p22, with rg2 0.16.0.

When doing a few operations on my program, after a few seconds
seconds, ruby crashes with the message "[BUG] object allocation during
garbage collection phase". It is reported each time on a different
line of my program, and seems unrelated to rg2 library calls (e.g. it
can happen on calling IO.readlines, Iconv::iconv or simple calls on
some of my objects).

Are your programs exhibiting a similar behaviour? I think it might be
related to rg2+ruby because I find it difficult that such a "nasty"
bug would be left in ruby if it would affect all programs. (I cannot
easily test with rg2 0.17.0-rc1 unfortunately)

--
Guillaume Cottenceau - http://zarb.org/~gc/
Posted by André Wagner (andre_nho)
on 22.06.2008 15:06
(Received via mailing list)
>  When doing a few operations on my program, after a few seconds
>  seconds, ruby crashes with the message "[BUG] object allocation during
>  garbage collection phase". It is reported each time on a different
>  line of my program, and seems unrelated to rg2 library calls (e.g. it
>  can happen on calling IO.readlines, Iconv::iconv or simple calls on
>  some of my objects).

Yes, is happening to me too. For me, it usually happens when making a
operation in a pixmap.

André 

--
A cura para o tédio é a curiosidade.
Não há cura para a curiosidade. (Dorothy Parker)
Posted by Guillaume Cottenceau (Guest)
on 22.06.2008 16:56
(Received via mailing list)
> bug would be left in ruby if it would affect all programs. (I cannot
> easily test with rg2 0.17.0-rc1 unfortunately)

Just tested; doesn't happen when using 0.17.0-rc1.

--
Guillaume Cottenceau - http://zarb.org/~gc/
Posted by Kouhei Sutou (Guest)
on 22.06.2008 17:06
(Received via mailing list)
Hi,

In <dc3bf8580806211452tfbf4234yd5c191608bdd8f11@mail.gmail.com>
  "Re: [ruby-gnome2-devel-en] rg2 misbehaving with ruby 1.8.7?" on Sat, 
21 Jun 2008 23:52:46 +0200,
  "Guillaume Cottenceau" <gcottenc@gmail.com> wrote:

> > bug would be left in ruby if it would affect all programs. (I cannot
> > easily test with rg2 0.17.0-rc1 unfortunately)
> 
> Just tested; doesn't happen when using 0.17.0-rc1.

Umm...
I've fixed it in trunk after rc1...


Thanks,
--
kou
Posted by Joachim Glauche (joaz)
on 23.06.2008 11:30
Guillaume Cottenceau wrote:
>> bug would be left in ruby if it would affect all programs. (I cannot
>> easily test with rg2 0.17.0-rc1 unfortunately)
> 
> Just tested; doesn't happen when using 0.17.0-rc1.

ruby-gnome2 0.16 won't work with ruby 1.8.7. 0.17.0-rc1 should be fine, 
although there are some patches added afterwards.

There will be a rc2 shortly.
Posted by Guillaume Cottenceau (Guest)
on 23.06.2008 15:15
(Received via mailing list)
On Mon, Jun 23, 2008 at 11:30 AM, Joachim Glauche
<ruby-forum-incoming@andreas-s.net> wrote:
> Guillaume Cottenceau wrote:
>>> bug would be left in ruby if it would affect all programs. (I cannot
>>> easily test with rg2 0.17.0-rc1 unfortunately)
>>
>> Just tested; doesn't happen when using 0.17.0-rc1.
>
> ruby-gnome2 0.16 won't work with ruby 1.8.7.

Ah. Didn't know about it. Then we should quickly release a new
version, because not supporting current stable version of ruby is not
so good. Or are you willing to publish a ruby-1.8.7 patch to rg2 0.16
for the meantime? I mean, rushing 0.17.0 because of that might lead to
releasing with breaks.

> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> ruby-gnome2-devel-en mailing list
> ruby-gnome2-devel-en@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en
>



--
Guillaume Cottenceau - http://zarb.org/~gc/
Posted by Joachim Glauche (joaz)
on 23.06.2008 16:16
Guillaume Cottenceau wrote:

>> ruby-gnome2 0.16 won't work with ruby 1.8.7.
> 
> Ah. Didn't know about it. Then we should quickly release a new
> version, because not supporting current stable version of ruby is not
> so good. [...] I mean, rushing 0.17.0 because of that might lead to
> releasing with breaks.

I agree with you that rushing the new version out is not a good idea. 
After I tested the latest patches for myself we'll release 0.17-rc2 
soon.
Getting some feedback will take about 2-3 weeks before we can decide to 
bring out 0.17.0 final or a rc3 then.

> Or are you willing to publish a ruby-1.8.7 patch to rg2 0.16
> for the meantime?

Most probably not. So much time passed and there are tons of fixes made 
since 0.16 release. I think it's easier to fix some outstanding bugs in 
0.17 (which Kou does eagerly) than fixing it on the old release.

Joachim