Xapps in general

Hi,

After gxedit, I tried to compile xearth, a very portable application! just for fun.

No problem during make no warnings…

I got a very similar message:

X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 53 (X_CreatePixmap)
Serial number of failed request: 77
Current serial number in output stream: 80

I own a 128 MB ram PIII with mga200 (8 MB).

In article <Voyager.001003093020.1126433A@val_22055>,
Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Hi,

After gxedit, I tried to compile xearth, a very portable application! just for fun.

No problem during make no warnings…

I got a very similar message:

X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 53 (X_CreatePixmap)
Serial number of failed request: 77
Current serial number in output stream: 80

I own a 128 MB ram PIII with mga200 (8 MB).

You don’t have enough ram :slight_smile:
xearth is trying to draw into a pixmap the size and depth
of the root window. The root window in Xphoton is 16383x16383
with a depth of 24 (32 bits per pixel)
xearth is asking Xphoton to allocate about 1 Gig for the pixmap

\

Garry Turcotte (R&D)
QNX Software Systems, Ltd.

Garry Turcotte wrote:
Are you crazy? xearch needs 1G ram under Xphoton?

In article <Voyager.001003093020.1126433A@val_22055>,
Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Hi,

After gxedit, I tried to compile xearth, a very portable application! just for fun.

No problem during make no warnings…

I got a very similar message:

X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 53 (X_CreatePixmap)
Serial number of failed request: 77
Current serial number in output stream: 80

I own a 128 MB ram PIII with mga200 (8 MB).

You don’t have enough ram > :slight_smile:
xearth is trying to draw into a pixmap the size and depth
of the root window. The root window in Xphoton is 16383x16383
with a depth of 24 (32 bits per pixel)
xearth is asking Xphoton to allocate about 1 Gig for the pixmap


Garry Turcotte (R&D)
QNX Software Systems, Ltd.

In article <39DA31A4.A12399B3@mama.indstate.edu>,
<liug@mama.indstate.edu> wrote:

Are you crazy? xearch needs 1G ram under Xphoton?

I don’t think so, (of course I didn’t write xearth:)
What do you get for
16k X 16k root window X 4 bytes/pixel

You won’t see it draw in rootless mode anyway…

Garry Turcotte (R&D)
QNX Software Systems, Ltd.

Previously, Garry Turcotte wrote in qdn.public.qnxrtp.applications:

In article <> 39DA31A4.A12399B3@mama.indstate.edu> >,
liug@mama.indstate.edu> > wrote:
Are you crazy? xearch needs 1G ram under Xphoton?

I don’t think so, (of course I didn’t write xearth:)
What do you get for
16k X 16k root window X 4 bytes/pixel

You won’t see it draw in rootless mode anyway…

Garry Turcotte (R&D)
QNX Software Systems, Ltd.

Ok Garry, this is effectively the reason because if we start Xphoton first and then xearth we got the message, given by Xphoton:
Warning - CreatePixmap failed (16383x16383x24)
Warning - CreatePixmap failed (16383x16383x24)

because xearth try to open 2 pixmaps.

We can specifiy to xearth several options such as display the image in a top level window, it’s ok, but it’s not really the goal of the soft.
It’s also possible to specify a size to display the image in background and here, there is problem.
As far as I know, the display (our screen) is centered on the photon space, so at about 7600, 7600 (it depends on the resolution). But it seems that Xphoton doesn’t consider that and when we ask an x app to display an image on the root window (background) the image is at the top left corner of the photon space, i.e. far from our screen. Right ?

Is there a solution ?


Thanks, Alain.

xearth home site:
http://www.cs.colorado.edu/~tuna/xearth/

In article <Voyager.001004102545.610319A@val_22055>,
Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:
[snip]

We can specifiy to xearth several options such as display the image in a top level window, it’s
ok, but it’s not really the goal of the soft.

Drawing on the X root window will not display in Photon.

It’s also possible to specify a size to display the image in background and here, there is problem.
As far as I know, the display (our screen) is centered on the photon space, so at about 7600, 7600
(it depends on the resolution). But it seems that Xphoton doesn’t consider that and when we ask an
x app to display an image on the root window (background) the image is at the top left corner of
the photon space, i.e. far from our screen. Right ?

Is there a solution ?

X coordinates relative to the root window have no bearing on
where the toplevel X windows will be displayed in Photon.
The default windowmanager (gtwm) tries to position windows
in Photon based on the specified X coordinates.

X toplevel windows are actually tiled on the X root window
so that they are not overlapping.
If you try
$ xterm -geometry +200+300
it will position itself at 200,300 in Photon
but there’s no guarantee where the window is
in X coordinates.

\

Garry Turcotte (R&D)
QNX Software Systems, Ltd.