[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/35369] awt.images and Gtk-WARNING **: cannot open display:

From: loic at dachary dot org
Subject: [Bug awt/35369] awt.images and Gtk-WARNING **: cannot open display:
Date: 26 Feb 2008 10:12:42 -0000

------- Comment #2 from loic at dachary dot org  2008-02-26 10:12 -------
Subject: Re:  awt.images and Gtk-WARNING **: cannot open display:

> Looks like you are trying to render into a BufferedImage which is accelerated
> by using an X Pixmap. How do you create the BufferedImage, via new
> BufferedImage(...) or by calling
> GraphicsConfiguration.createCompatibleImage(..)? I think the latter could be a
> problem without GTK. Maybe you could provide a small test program?
The program in question can be downloaded as a debian package from 
http://silva.dachary.org/ with
apt-get install silva and it's reasonably small.

You can browse it at


The image is created with:

BufferedImage img = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);

In order to reproduce the problem you could simply, on a debian box, 
rebuild the source package without a running X server.

Instructions on how to apt-get and rebuild from sources are at


In /etc/apt/sources.list

deb http://silva.dachary.org/silva ./
deb-src http://silva.dachary.org/silva ./

on the command line:

apt-get build-dep silva
apt-get install libemma-java
apt-get source silva
cd silva-*

And kboom :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]