Forum: Ruby-Gnome 2 Unable to Load on Ruby 2.3 - Windows10

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.
Bd97e9388931d96ea163563e0365d0e4?d=identicon&s=25 David Trembath (bellicose)
on 2016-09-05 04:33
Attachment: Load_Error.txt (3 KB)
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.
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2016-09-18 05:24
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
B420bc4e3c301128d73319cd9f1f9020?d=identicon&s=25 Moshe Sinvany (moshe_e)
on 2016-09-21 14:01
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.
64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2016-09-21 21:56
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
64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2016-09-21 22:47
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:47
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
26733909dc92cc407c855cc09233bb27?d=identicon&s=25 Vicente Jiménez (vmj)
on 2016-10-20 03:10
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
This topic is locked and can not be replied to.