# Gdk::Pixbuf.new(image) - When will there be errors? Memory Usage

**URL:** <https://www.ruby-forum.com/t/gdk-pixbuf-new-image-when-will-there-be-errors-memory-usage/238250>\
**Category:** Ruby-Gnome 2\
**Created:** [December 28, 2013, 8:48pm UTC](https://www.ruby-forum.com/t/gdk-pixbuf-new-image-when-will-there-be-errors-memory-usage/238250 "2013-12-28T20:48:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [December 28, 2013, 8:48pm UTC](https://www.ruby-forum.com/t/gdk-pixbuf-new-image-when-will-there-be-errors-memory-usage/238250/1 "2013-12-28T20:48:00Z")

</div>

Hi,

My current computer has ruby 1.9.3pxxx

I have almost 4 Gig RAM.

When I use:

Gdk::Pixbuf.new()

And then

image.set(small\_image)

Where image is

image = Gtk::Image.new()

The problem I run into is this:

“Insufficient memory to load image file”

Does anyone know if this is common? Or perhaps I have a  
problem with my code… I am trying to find out if I  
can easily re-load new images and display them in a  
widget which holds a Gtk::Image.new instance.
