# Rg2 misbehaving with ruby 1.8.7?

**URL:** <https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124>\
**Category:** Ruby-Gnome 2\
**Created:** [June 22, 2008, 9:35am UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124 "2008-06-22T09:35:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [June 22, 2008, 9:35am UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124/1 "2008-06-22T09:35:24Z")

</div>

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 C. - [http://zarb.org/~gc/](http://zarb.org/~gc/)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [June 22, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124/2 "2008-06-22T15:06:32Z")

</div>

> 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)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [June 22, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124/3 "2008-06-22T16:56:41Z")

</div>

> 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 C. - [NVC Communication Obstacles Game](http://zarb.org/~gc/)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [June 23, 2008, 11:30am UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124/4 "2008-06-23T11:30:39Z")

</div>

Guillaume C. 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.

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [June 22, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124/5 "2008-06-22T17:06:05Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] rg2 misbehaving with ruby 1.8.7?” on Sat,  
21 Jun 2008 23:52:46 +0200,  
“Guillaume C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [June 23, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124/6 "2008-06-23T15:15:15Z")

</div>

On Mon, Jun 23, 2008 at 11:30 AM, Joachim G.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Guillaume C. 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](http://sourceforge.net/services/buy/index.php)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Guillaume C. - [NVC Communication Obstacles Game](http://zarb.org/~gc/)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [June 23, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/rg2-misbehaving-with-ruby-1-8-7/141124/7 "2008-06-23T16:16:58Z")

</div>

Guillaume C. 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
