# Unable to Load on Ruby 2.3 - Windows10

**URL:** <https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053>\
**Category:** Ruby-Gnome 2\
**Created:** [September 5, 2016, 4:33am UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053 "2016-09-05T04:33:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [September 5, 2016, 4:33am UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053/1 "2016-09-05T04:33:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [September 18, 2016, 5:24am UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053/2 "2016-09-18T05:24:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [September 21, 2016, 2:01pm UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053/3 "2016-09-21T14:01:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [September 21, 2016, 9:56pm UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053/4 "2016-09-21T21:56:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [September 22, 2016, 10:47pm UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053/5 "2016-09-22T22:47:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [September 21, 2016, 10:47pm UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053/6 "2016-09-21T22:47:24Z")

</div>

Look for 3.0.22 at:  
[https://rubygems.org/gems/visualruby/versions/3.0.22](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?

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [October 20, 2016, 3:10am UTC](https://www.ruby-forum.com/t/unable-to-load-on-ruby-2-3-windows10/245053/7 "2016-10-20T03:10:32Z")

</div>

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
