Nope this is running in a production server that is intended to run headless. I started a dumb X server on it, and it works but it's not the best option.

2011/12/20 Grant Schoep <gschoep@digitalglobe.com>

Can you just point yourself at another X server somewhere? A desktop/workstation?

From: Chloť Desoutter [mailto:chloe.desoutter@gmail.com]
Sent: Monday, December 19, 2011 8:20 AM
To: ruby-gnome2-devel-en@lists.sourceforge.net

Subject: [ruby-gnome2-devel-en] Headless running Segfault

Hi List,

That code, running on my headless (no X) server, is crashing pathetically:

chloe@ayodhya:~/pdfparser$ cat test.rb


require 'gtk2'

rescue Gtk::InitError


require "poppler"

buf = Gdk::Pixbuf.new(Gdk::Pixbuf::COLORSPACE_RGB, true, 8, 1024, 768)

# copy the rendered buffer into an pixmap for further editing

map = Gdk::Pixmap.new(nil, 1024, 768, 24)

map.draw_pixbuf(nil, buf, 0, 0, 0, 0, -1, -1, Gdk::RGB::DITHER_NONE, 0, 0)

Like that:

chloe@ayodhya:~/pdfparser$ ruby †test.rb

test.rb: line 10

† †Gdk-CRITICAL **:IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed

test.rb: line 10

† †Gdk-CRITICAL **:IA__gdk_drawable_get_depth: assertion `GDK_IS_DRAWABLE (drawable)' failed

Segmentation fault

I don't like much the idea of running an X server just for running that piece of software but feel like I'll have to.

Any insight?



This electronic communication and any attachments may contain confidential and proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee 
responsible for delivering this communication to the intended recipient, or if you have received 
this communication in error, please do not print, copy, retransmit, disseminate or 
otherwise use the information. Please indicate to the sender that you have received this 
communication in error, and delete the copy you received. DigitalGlobe reserves the 
right to monitor any electronic communication sent or received by its employees, agents 
or representatives.

Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
ruby-gnome2-devel-en mailing list