Re: Serious breakage in Ubuntu Edgy

Hi,

I compiled the CVS version today and it did not fix the problem for
me.

I no longer get warnings like these:

/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
GLib-GObject-CRITICAL **:g_object_class_install_property: assertion
`G_IS_PARAM_SPEC (pspec)’ failed
/usr/lib/ruby/1.8/glib2.rb: line 55

But I still am getting the warning:

warning: GRClosure invoking callback: already destroyed

which is described in this ubuntu bug:

https://launchpad.net/distros/ubuntu/+source/ruby-gnome2/+bug/66623

This one is bad as none of the signals in my application are called.

One things to note about my application (Grism : http://www.grism.org)
is that I use libglade, but i don’t set any signal handling in glade. I
write the signals by hand (i.e i call mywidget.signal_connect explicitly
in my code). Don’t know if that makes a difference for this bug.

Any suggestions?
Nick


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/6/06, Nicholas R. [email protected] wrote:

Hi,

I compiled the CVS version today and it did not fix the problem for me.
[snip]

Any suggestions?
Nick

I just tested your application with my custom-compiled Ruby and
Ruby-GNOME2 CVS, and for me I didn’t get any GRClosure warning, though
the dialog box did seem to have some problem in its “close” button, as
it didn’t seem to work, and after closed on the windows’s “x” button,
the dialog could not be reopened again.

Besides that, I didn’t see the warnings, and the rest of the Tree View
and Menu Options seemed responsive.

Here’s my env:

[email protected]:~$ ruby -v
ruby 1.8.5 (2006-08-25) [i686-linux]
[email protected]:~$ ruby -r gtk2 -e ‘p Gtk::VERSION’
[2, 10, 6]
[email protected]:~$ uname -a
Linux corvina 2.6.17-10-386 #2 Fri Oct 13 18:41:40 UTC 2006 i686
GNU/Linux
Ubuntu 6.10 Edgy.

Cheers,
Joao


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

Take a look and see whether the patch I attached to the bug is applied
on your system. Supposedly it was applied in CVS, and should fix the
GRClosure thing.

On 11/6/06, Joao P. [email protected] wrote:

I just tested your application with my custom-compiled Ruby and
[email protected]:~$ ruby -v

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

Yes, it is applied, but the GRClosure warnings are still there for me.

It is strange because there are a few things that seem to work
(File->New->{Watchlist,Portfolio}; Double clicking on a sub-element in
the treeview on the left [note: you have to add a watchlist/portfolio
first]). However, most callbacks are not called and only give the
GRClosure warning.

Here’s my env:

macbook: ~> ruby -v
ruby 1.8.4 (2005-12-24) [i486-linux]
macbook: ~> ruby -r gtk2 -e ‘p Gtk::VERSION’
[2, 10, 6]
macbook: ~> uname -a
Linux macbook 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686
GNU/Linux
Ubuntu 6.10 Edgy

Cheers,
Nick

Ohad L. wrote:

Take a look and see whether the patch I attached to the bug is
applied
on your system. Supposedly it was applied in CVS, and should fix the
GRClosure thing.

On 11/6/06, Joao P. [email protected] wrote:

Hi,

On 11/6/06, Nicholas R. [email protected] wrote:

Hi,

I compiled the CVS version today and it did not fix the problem
for me.

[snip]

But I still am getting the warning:

warning: GRClosure invoking callback: already destroyed

This one is bad as none of the signals in my application are
called.

One things to note about my application (Grism :
http://www.grism.org)

is that I use libglade, but i don’t set any signal handling in
glade. I

write the signals by hand (i.e i call mywidget.signal_connect
explicitly

in my code). Don’t know if that makes a difference for this bug.

Any suggestions?
Nick
I just tested your application with my custom-compiled Ruby and
Ruby-GNOME2 CVS, and for me I didn’t get any GRClosure warning,
though

the dialog box did seem to have some problem in its “close” button,
as

it didn’t seem to work, and after closed on the windows’s “x”
button,

the dialog could not be reopened again.

Besides that, I didn’t see the warnings, and the rest of the Tree
View

and Menu Options seemed responsive.

Here’s my env:

[email protected]:~$ ruby -v
ruby 1.8.5 (2006-08-25) [i686-linux]
[email protected]:~$ ruby -r gtk2 -e ‘p Gtk::VERSION’
[2, 10, 6]
[email protected]:~$ uname -a
Linux corvina 2.6.17-10-386 #2 Fri Oct 13 18:41:40 UTC 2006 i686
GNU/Linux

Ubuntu 6.10 Edgy.

Cheers,
Joao


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


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/6/06, Nicholas R. [email protected] wrote:

Yes, it is applied, but the GRClosure warnings are still there for me.

It is strange because there are a few things that seem to work
(File->New->{Watchlist,Portfolio}; Double clicking on a sub-element in
the treeview on the left [note: you have to add a watchlist/portfolio
first]). However, most callbacks are not called and only give the
GRClosure warning.

I can confirm now. Sorry:

[email protected]:~$ /opt/pilar_linux/ruby-1.8.5/bin/grism
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed

Menus:

Stock > Move To
Stock > Copy To

After creating a RedHat (RHAT) in Portifolio.

And I tried to reproduce again, but I had to mess around a little to
get it going:

[email protected]:~$ /opt/pilar_linux/ruby-1.8.5/bin/grism
/opt/pilar_linux/ruby-1.8.5/lib/ruby/site_ruby/1.8/grism/grismlist.rb:
line 85
Gtk-CRITICAL **:gtk_calendar_select_month: assertion month <= 11' failed /opt/pilar_linux/ruby-1.8.5/lib/ruby/site_ruby/1.8/grism/grismlist.rb: line 85 Gtk-CRITICAL **:gtk_text_buffer_set_text: assertiontext != NULL’
failed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
callback: already destroyed

Seems like kind of reproducible, though a step by step way to
reproduce it could help Kouhei and Masao to understand the problem
easier.

To download his application, go to http://www.grism.org/download.html

(Sorry for repeating it.)

My diagnosis so far is that some menu items seem to be activated on
demand, though I am not sure if it happens to the other menu items as
well.

Cheers,
Joao


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 my environment, it seems to work.
Can you try CVS version?

On Mon, 06 Nov 2006 16:42:27 +0100
Nicholas R. [email protected] wrote:

macbook: ~> ruby -v

is that I use libglade, but i don’t set any signal handling in
it didn’t seem to work, and after closed on the windows’s “x” button,
[2, 10, 6]
Using Tomcat but need to do more? Need to support web services,

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

Hi,

Oh, sorry. But I couldn’t reproduce it.

On Mon, 6 Nov 2006 18:42:18 +0200
“Ohad L.” [email protected] wrote:

http://www.defectivebydesign.org/what_is_drm
[email protected]
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

Hi,

Oh, sorry. But I couldn’t reproduce the problem.

On Mon, 6 Nov 2006 18:42:18 +0200
“Ohad L.” [email protected] wrote:

http://www.defectivebydesign.org/what_is_drm
[email protected]
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

On 11/6/06, Masao M. [email protected] wrote:

Hi,

On my environment, it seems to work.
Can you try CVS version?

He said that it is CVS


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

Joao P. wrote:

Hi,

On 11/6/06, Nicholas R. [email protected] wrote:

Yes, it is applied, but the GRClosure warnings are still there for
me.

It is strange because there are a few things that seem to work
(File->New->{Watchlist,Portfolio}; Double clicking on a sub-element
in

the treeview on the left [note: you have to add a
watchlist/portfolio

first]). However, most callbacks are not called and only give the
GRClosure warning.

I can confirm now. Sorry:

[email protected]:~$ /opt/pilar_linux/ruby-1.8.5/bin/grism
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed

Menus:

Stock > Move To
Stock > Copy To

After creating a RedHat (RHAT) in Portifolio.

And I tried to reproduce again, but I had to mess around a little to
get it going:

[email protected]:~$ /opt/pilar_linux/ruby-1.8.5/bin/grism

/opt/pilar_linux/ruby-1.8.5/lib/ruby/site_ruby/1.8/grism/grismlist.rb:
line 85

Gtk-CRITICAL **:gtk_calendar_select_month: assertion `month <= 11’
failed

/opt/pilar_linux/ruby-1.8.5/lib/ruby/site_ruby/1.8/grism/grismlist.rb:
line 85

Gtk-CRITICAL **:gtk_text_buffer_set_text: assertion `text != NULL’
failed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure
invoking
callback: already destroyed

Seems like kind of reproducible, though a step by step way to
reproduce it could help Kouhei and Masao to understand the problem
easier.

I wrote a small test program using libglade to see if I could reproduce
it, but everything there worked.

So I went back to grism and after more playing, it seems that callbacks
that are connected directly to the treeviews work (treeview on the left
of the interface and the treeviews for the individual
watchlists/portfolios on the right).

Callbacks connected to the toolbar items or the menu items do not work
(generate the GRClosure). This last is with the exception of the 2 menu
items that are in sub-menus (File->New->{WatchList,Portfolio}) and the
chart menu item (Stock->Chart [note: you must first select an item from
a watchlist or portfolio to make this menu item sensitive]).

These 3 menu item exceptions are special because they are the only menu
items that have a non-stock image. The images are set by hand after
the glade file has been loaded (mitem.image = Gtk::Image.new()).

With the File->New->Watchlist menu item, I can create a new watchlist.
The buttons in the toolbar for this new watchlist initially work.
However, after some more playing they also generate the GRClosure. If I
quit grism and restart, the new watchlist will not work at all, just
like the older ones.

Nick

To download his application, go to http://www.grism.org/download.html

(Sorry for repeating it.)

My diagnosis so far is that some menu items seem to be activated on
demand, though I am not sure if it happens to the other menu items as
well.

Cheers,
Joao


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,

2006/11/7, Nicholas R. [email protected]:

Yes, it is applied, but the GRClosure warnings are still there for me.

The attached patch will solve your problem.

Thanks,

That’s a bit hard to follow… could you shrink it down to an example?

On 11/6/06, Nicholas R. [email protected] wrote:

GRClosure warning.
/opt/pilar_linux/ruby-1.8.5/bin/grism:325: warning: GRClosure invoking
Stock > Copy To
Gtk-CRITICAL **:gtk_calendar_select_month: assertion `month <= 11’

of the interface and the treeviews for the individual
the glade file has been loaded (mitem.image = Gtk::Image.new()).


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,

2006/11/7, Nicholas R. [email protected]:

Yes, this solves about 99% of the GRClosure warnings I was getting with
Grism. This did not remove all of them as I am still getting one or
two. I will try to narrow down these last few cases.

OK. I committed the patch into CVS.

It’s my debugging method for GC related bug:

  1. make gc.rb:

Thread.new do
loop do
GC.start
sleep 1
end
end

  1. run target script like the following:
    % ruby -r gc target-script.rb

Thanks,

kou


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

Yes, this solves about 99% of the GRClosure warnings I was getting with
Grism. This did not remove all of them as I am still getting one or
two. I will try to narrow down these last few cases.

Thanks much for the patch.
Cheers,
Nick

Kouhei S. wrote:


+++ rbglade.c 7 Nov 2006 04:45:49 -0000
RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/libglade/lib/libglade2.rb,v
when 0
+
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


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