Forum: Ruby-Gnome 2 Error when starting visual ruby. Opens briefly

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C2dae9fe8bdb4e7945e8945d929c44dd?d=identicon&s=25 Ka Mok (ka_m)
on 2016-09-15 07:47
I followed the instructions on http://visualruby.net/file.Download.html
to get VR for Windows. The only part I did NOT do was remove Ruby 2.24
from my machine. I am using Ruby 2.31 to do gem install visualruby. I am
using uru to manage my Ruby version, so it shows 2.31 when I do ruby -v.

Now, when I start visual ruby with `vr` in the command prompt, I get
this error message:

`C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 302
   GLib-GObject-WARNING **:attempt to override closure->va_marshal
(0000000063A48970) with new marshal (00000000063D0518)`

The visual ruby application briefly appears in center of my screen
before I get that error. Please help!

I am unable to remove Ruby 2.24 without a lot of headache because I got
it via RailsInstaller and my rails version is tied to it and I don't
know how to un-tangle it. Doing rails s with ruby -v being 2.31 will
still start Rails with 2.24.
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2016-09-20 21:52
Try this and let me know if it works:

https://www.ruby-forum.com/topic/6879002#new

Thanks,
Eric
64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2016-09-21 22:49
Look for 3.0.22 at:
https://rubygems.org/gems/visualruby/versions/3.0.22

I removed 3.0.23 and install 3.0.22 and it worked, Well, I think it
worked as I got a windows labeled: VR: alert_box.
I also received tons of errors which I am listing below. So, I am not
sure if what I got really works. This is my first try at VisualRuby.

C:\MyData\rubyPGMS>vr
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 302
   GLib-GObject-WARNING **:attempt to override closure->va_marshal
(0000000063A48970) with new marshal (00000000064D0518)
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/visualruby-3.0.22/src/main/GemTree.rb:4:in
`<class:GemTree>': 'Gdk::Pixbuf' has been deprecated. Use 'GdkPixbuf
::Pixbuf'.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gdk_pixbuf2-3.0.9-x64-mingw32/lib/gdk_pixbuf2/deprecated.rb:48:in
`new': GdkPixbuf::Pixbuf.new(path) is depreca
ted. Use GdkPixbuf::Pixbuf.new(:file => path) instead.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gdk-CRITICAL **:gdk_pixbuf_get_from_surface: assertion 'surface !=
NULL' failed
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gtk-WARNING **:Could not load a pixbuf from
/org/gtk/libgtk/theme/Adwaita/assets/bullet-symbolic.svg.
This may indicate that pixbuf loaders or the mime database could not be
found.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gobject-introspection-3.0.9-x64-mingw32/lib/gobject-introspection/loader.rb:
line 564
   Gtk-WARNING **:Allocating size to GtkBox 00000000048A15B0 without
calling gtk_widget_get_preferred_width/height(). How does the code know
the size
to allocate?
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2016-09-22 22:43
Hi:

I thins working fine.  In the later release of ruby/gtk they deprecated
the pixbuf class in favor o a new one.  Of course, the old one still
works fine, but it spits out warnings.  So you can just ignore them for
now.

When I figure out why windows is crashing with the new version of
ruby/gtk I will update visualruby again.  Until the,you must
usevisualruby v3.0.22.

Eric
This topic is locked and can not be replied to.