Various memory problems with 0.15

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: assertionG_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: assertionG_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 classGtkTextBuffer’ has no property named copy-target-list' ./antigibberish: line 4 GLib-GObject-WARNING **:IA__g_object_notify: object classGtkTextBuffer’ 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

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

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

Any idea where those errors are coming from then?

On 11/4/06, Masao M. [email protected] 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


ruby-gnome2-devel-en mailing list
[email protected]
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

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

Any idea what’s causing these problems then?

On 11/4/06, DaVinci [email protected] 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


ruby-gnome2-devel-en mailing list
[email protected]
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

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

Hi,

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

On Sat, 4 Nov 2006 16:33:55 +0200
“Ohad L.” [email protected] wrote:

`G_IS_PARAM_SPEC (pspec)’ failed
GLib-GObject-WARNING **:IA__g_object_notify: object class

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

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

Hi,

On 11/4/06, Ohad L. [email protected] wrote:

Any idea what’s causing these problems then?

On 11/4/06, DaVinci [email protected] 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. :slight_smile:

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. :slight_smile: Thanks,
guys.

Cheers,
Joao

Hi,

On Sun, 5 Nov 2006 18:21:32 +0100
“Guillaume C.” [email protected] 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

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. [email protected] wrote:

That 's why even if GTK 2.10 is not fully supported yet, it may be worth
ruby-gnome2-devel-en mailing list
[email protected]
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

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

Hi,

On Mon, 06 Nov 2006 10:02:06 +0800
Mathieu B. [email protected] 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

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

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs