Unable to Load on Ruby 2.3 - Windows10


#1

I am attempting to load Visual Ruby through Ruby 2.3 and keep getting an
error. I have successfully installed all of the gems but when I type $vr
to rub visual ruby the attached error appears. Any help would be greatly
appreciated.


#2

Hi:

Recently gtk3 deprecated some older pixbuf code. I guess that the
windows version hasn’t been updated yet.

Try using visualruby 3.0.22. It has the older pixbuf syntax that should
still work fine.

Let me know if it works.

Eric


#3

Hi Eric,

Thank you for responding.

i don’t find visualruby 3.0.22, may you give me a link?

however i tried to install Ruby 2.1.9-p490. the installing was OK but
when i tried to run “gem install visual ruby” i got only 1 error:
“ERROR: While executing gem … Encoding::UndefinedConvertionError
U+200F to IBM862 in conversion from UTF-16LE to utf-8 to IBM862”

My OS is Windows 7

Moshe.


#4

Hi there,

I am having the same problem

ENVIRONMENT:
OS = Windows 7
ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]

gtk2 (3.0.9 x64-mingw32)
gtk3 (3.0.9 x64-mingw32)
gtksourceview3 (3.0.9 x64-mingw32)
require_all (1.3.3)
visualruby (3.0.23, 3.0.22)

ERROR:
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 (00000000064A0518)

The VisualRuby logo comes up quickly in the center and goes away.
I could not find visualruby 3.0.22 either.

Any help will be greatly appreciated.

Thank you


#5

Hi:

If you have more than one version visualruby installed, you can
uninstall the new one like so:

gem uninstall visualruby -v 3.0.22

E


#6

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:innew’: 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:innew’: 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:innew’: 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:innew’: 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:innew’: 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:innew’: 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?


#7

Eric C. wrote in post #1185068:

Hi:

If you have more than one version visualruby installed, you can
uninstall the new one like so:

gem uninstall visualruby -v 3.0.22

E

Thanks worked me with version 3.0.22 on Windows 8.1 x86, for those who
fail to open Visualruby try to run the command prompt without
administrator permissions