# Various memory problems with 0.15

**URL:** <https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913>\
**Category:** Ruby-Gnome 2\
**Created:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913 "2006-11-07T11:01:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/1 "2006-11-07T11:01:20Z")

</div>

All applications now give me errors such as

/usr/lib/ruby/1.8/glib2.rb: line 55  
GLib-GObject-CRITICAL \*\*:g\_boxed\_type\_register\_static: assertion  
`g_type_from_name (name) == 0' failed /usr/lib/ruby/1.8/glib2.rb: line 55 GLib-GObject-CRITICAL **:g_param_spec_boxed: assertion `G\_TYPE\_IS\_BOXED (boxed\_type)’ failed  
/usr/lib/ruby/1.8/glib2.rb: line 55  
GLib-GObject-CRITICAL \*\*:g\_object\_class\_install\_property: assertion  
`G_IS_PARAM_SPEC (pspec)' failed /usr/lib/ruby/1.8/glib2.rb: line 55 GLib-GObject-CRITICAL **:g_param_spec_boxed: assertion `G\_TYPE\_IS\_BOXED (boxed\_type)’ failed  
/usr/lib/ruby/1.8/glib2.rb: line 55  
GLib-GObject-CRITICAL \*\*:g\_object\_class\_install\_property: assertion  
`G_IS_PARAM_SPEC (pspec)' failed ./antigibberish: line 4 GLib-GObject-WARNING **:IA __g_object_notify: object class `GtkTextBuffer’ has no property named `copy-target-list' ./antigibberish: line 4 GLib-GObject-WARNING** :IA__ g_object_notify: object class `GtkTextBuffer’ has no property named `copy-target-list’

They often segfault on exit, or glib detects an invalid pointer and  
the application crashes. 0.14 was so nice… what happened, and when  
can we expect this to be fixed? I’ve had little luck compiling the CVS  
version.

–  
Protect your digital freedom and privacy, eliminate DRM, learn more at  
[http://www.defectivebydesign.org/what\_is\_drm](http://www.defectivebydesign.org/what_is_drm)

Ohad L.

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/2 "2006-11-07T11:01:48Z")

</div>

El sábado 04 de noviembre, Masao M.  
escribió:\> In my environment, CVS version of Ruby/GTK application works well.

Ha CVS changes from 0.15. I have problems with this version that didn’t  
exist with 0.14, and get segfaults interrupting my applications.

Greets.

```
						David

```

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/3 "2006-11-07T11:02:12Z")

</div>

Any idea where those errors are coming from then?

On 11/4/06, Masao M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > GLib-GObject-CRITICAL \*\*:g\_boxed\_type\_register\_static: assertion  
> > /usr/lib/ruby/1.8/glib2.rb: line 55  
> > the application crashes. 0.14 was so nice… what happened, and when  
> > Using Tomcat but need to do more? Need to support web services, security?  
> > Using Tomcat but need to do more? Need to support web services, security?  
> > Get stuff done quickly with pre-integrated technology to make your job easier  
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  
> > [http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> removed\_email\_address@domain.invalid  
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Protect your digital freedom and privacy, eliminate DRM, learn more at  
[http://www.defectivebydesign.org/what\_is\_drm](http://www.defectivebydesign.org/what_is_drm)

Ohad L.

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/4 "2006-11-07T11:02:15Z")

</div>

Any idea what’s causing these problems then?

On 11/4/06, DaVinci [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> * * *
> 
> Using Tomcat but need to do more? Need to support web services, security?  
> Get stuff done quickly with pre-integrated technology to make your job easier  
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  
> [http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> removed\_email\_address@domain.invalid  
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Protect your digital freedom and privacy, eliminate DRM, learn more at  
[http://www.defectivebydesign.org/what\_is\_drm](http://www.defectivebydesign.org/what_is_drm)

## Ohad L.

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:01am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/5 "2006-11-07T11:01:36Z")

</div>

Hi,

In my environment, CVS version of Ruby/GTK application works well.

On Sat, 4 Nov 2006 16:33:55 +0200  
“Ohad L.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> `G\_IS\_PARAM\_SPEC (pspec)’ failed  
> GLib-GObject-WARNING \*\*:IA\_\_g\_object\_notify: object class
> 
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:04am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/6 "2006-11-07T11:04:05Z")

</div>

> Right now, instead of destroying the windows, I made them to be hidden when  
> closed, by default, which reduced a lot the possibility of crashes.

IMHO, asking ruby-gnome2 application developers to not use a supported  
feature of Gtk+ (destroying a window) to work around a crash caused by  
ruby-gnome2 is a dead end. If this is going to be an unsupported  
feature, then it should be removed from the wrapper so that  
application developers don’t mistakenly bump into the problem.

That said, I’m “happy” that more people report memory corruption and  
crashes in ruby-gnome2 applications using 0.15.0, as my program “booh”  
has had the same problem (already reported on this ML). It shows  
ruby-gnome2 developers how real the problem is.

–  
Guillaume C. - [Guillaume Cottenceau](http://zarb.org/~gc/)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:02am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/7 "2006-11-07T11:02:32Z")

</div>

Hi,

On 11/4/06, Ohad L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Any idea what’s causing these problems then?
> 
> On 11/4/06, DaVinci [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > El sÃ¡bado 04 de noviembre, Masao M. escribiÃ³:
> > 
> > > In my environment, CVS version of Ruby/GTK application works well.
> > 
> > Ha CVS changes from 0.15. I have problems with this version that didn’t  
> > exist with 0.14, and get segfaults interrupting my applications.

Take what I’m going to say with a grain of salt, as I am mostly a user  
as  
well. 🙂

The use of closures with the GTK+ signals in the Ruby-GNOME2 \<  
0.15versions, supposedly leaked lots of memory, because they probably  
were being  
hold for longer than necessary, and the garbage collector couldn’t free  
that  
memory. To fix that, Kouhei and Masao made changes which allowed the GC  
to  
free the memory, but they probably had to use “weak” links, which means  
that  
a closure that doesn’t have a long lived variable holding it might be  
freed  
at any time by the GC. Somewhere along the way, they had to keep the  
newly  
created windows on a list. And the window would be removed from the list  
when it was to be destroyed. In my experience, I think this is the  
cryptic  
remaining issue, as in my personal Ruby-GNOME2 wrapper library, I  
noticed  
that with lots of creation and destruction of windows, sometimes it  
could  
cause a crash of some kind. But all the other issues that I had were  
solved  
by Kouhei – all that he needed was some way to reproduce the problem.

Right now, instead of destroying the windows, I made them to be hidden  
when  
closed, by default, which reduced a lot the possibility of crashes.

Lastly, those assertions warnings probably have something to do with the  
version of the GTK+ library you are using, as with the GTK+ libraries  
that  
come with Ubuntu 6.06 (Dapper), I didn’t notice those warnings. But as  
soon  
as I started using the newest Ubuntu 6.10 (Edgy), I had those warnings  
too,  
which were fixed by using the latest Ruby-GNOME2 version from CVS.

My confidence in Ruby-GNOME2 from the CVS has been increasing over time.  
At  
first, I had lots of problems with those changes as well. But Kouhei and  
Masao did a good job in improving Ruby-GNOME2, as always. 🙂 Thanks,  
guys.

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:04am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/8 "2006-11-07T11:04:41Z")

</div>

Hi,

On Sun, 5 Nov 2006 18:21:32 +0100  
“Guillaume C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> That said, I’m “happy” that more people report memory corruption and  
> crashes in ruby-gnome2 applications using 0.15.0, as my program “booh”  
> has had the same problem (already reported on this ML). It shows  
> ruby-gnome2 developers how real the problem is.

I’m “happy” you report them with complete+executable+small sample  
and test it in CVS version.  
If you report the error messages only, I can do nothing.

Regards,  
Masao

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:06am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/9 "2006-11-07T11:06:00Z")

</div>

CVS looks much better. I can’t seem to reproduce any of the errors I  
used to have.

Would it be possible to release an urgent 0.15.1 of sorts?

On 11/6/06, Mathieu B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> That 's why even if GTK 2.10 is not fully supported yet, it may be worth  
> ruby-gnome2-devel-en mailing list  
> removed\_email\_address@domain.invalid  
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Protect your digital freedom and privacy, eliminate DRM, learn more at  
[http://www.defectivebydesign.org/what\_is\_drm](http://www.defectivebydesign.org/what_is_drm)

Ohad L.

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:06am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/10 "2006-11-07T11:06:58Z")

</div>

Hi,

On Mon, 06 Nov 2006 10:02:06 +0800  
Mathieu B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Masao M. wrote:
> 
> > I’m “happy” you report them with complete+executable+small sample  
> > and test it in CVS version.  
> > If you report the error messages only, I can do nothing.
> 
> What about doing releases more often ?

Sure.  
But now, I’m so busy on my business and I don’t have the time  
to spend this project. It’s my problem.

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:05am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/11 "2006-11-07T11:05:12Z")

</div>

Masao M. wrote:

> I’m “happy” you report them with complete+executable+small sample  
> and test it in CVS version.  
> If you report the error messages only, I can do nothing.

What about doing releases more often ?

As an application developer, I don’t see myself asking people to install  
the CVS version of RG2 to be sure that my program will work properly.

That 's why even if GTK 2.10 is not fully supported yet, it may be worth  
doing a release now.

Mathieu

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 7, 2006, 11:08am UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/12 "2006-11-07T11:08:46Z")

</div>

Hi,

> Sure.  
> But now, I’m so busy on my business and I don’t have the time  
> to spend this project. It’s my problem.  
> Let someone else do it then.

I know RG2 is a hobby project but more and more programs relie on it  
now…

Mathieu

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![ohad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/f04885/32.png) [@ohad](https://www.ruby-forum.com/u/ohad)\
**Post date:** [November 8, 2006, 4:11pm UTC](https://www.ruby-forum.com/t/various-memory-problems-with-0-15/74913/13 "2006-11-08T16:11:31Z")

</div>

> If you report the error messages only, I can do nothing.  
> Masao, I’m sorry if you felt insulted by my message. This was not my  
> intention. Please accept my apologies. I do know and recognize I  
> didn’t provide a test case. My point was that when I reported the  
> problem, it seemed to me that you and Kouhei were doubtful about the  
> reality of the problem. I was just “happy” to see that there was more  
> information to support the reality of the problem. If I was wrong on  
> that estimation on you and Kouhei positions, then I’m also sorry about  
> my previous message.

–  
Guillaume C. - [Guillaume Cottenceau](http://zarb.org/~gc/)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
