Error when starting visual ruby. Opens briefly

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.

Try this and let me know if it works:

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

Thanks,
Eric

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

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?