# Error when starting visual ruby. Opens briefly

**URL:** <https://www.ruby-forum.com/t/error-when-starting-visual-ruby-opens-briefly/245075>\
**Category:** Ruby-Gnome 2\
**Created:** [September 15, 2016, 7:47am UTC](https://www.ruby-forum.com/t/error-when-starting-visual-ruby-opens-briefly/245075 "2016-09-15T07:47:34Z")\
**Posts on this page:** 4\
**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 15, 2016, 7:47am UTC](https://www.ruby-forum.com/t/error-when-starting-visual-ruby-opens-briefly/245075/1 "2016-09-15T07:47:34Z")

</div>

I followed the instructions on [http://visualruby.net/file.Download.html](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.

---

<div class="post-metadata">

**Author:** ![ka\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/779978/32.png) [@ka\_m](https://www.ruby-forum.com/u/ka_m)\
**Post date:** [September 20, 2016, 9:52pm UTC](https://www.ruby-forum.com/t/error-when-starting-visual-ruby-opens-briefly/245075/2 "2016-09-20T21:52:43Z")

</div>

Try this and let me know if it works:

[https://www.ruby-forum.com/topic/6879002#new](https://www.ruby-forum.com/topic/6879002#new)

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![ka\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/779978/32.png) [@ka\_m](https://www.ruby-forum.com/u/ka_m)\
**Post date:** [September 22, 2016, 10:43pm UTC](https://www.ruby-forum.com/t/error-when-starting-visual-ruby-opens-briefly/245075/3 "2016-09-22T22:43:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ka\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/779978/32.png) [@ka\_m](https://www.ruby-forum.com/u/ka_m)\
**Post date:** [September 21, 2016, 10:49pm UTC](https://www.ruby-forum.com/t/error-when-starting-visual-ruby-opens-briefly/245075/4 "2016-09-21T22:49:53Z")

</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?
