Re: X Error

Rene Brun (Rene.Brun@cern.ch)
Fri, 06 Jun 1997 16:28:15 +0200


Jacek M. Holeczek wrote:
>
> Relatively often happens to me something like this :
> --------------------------------
> root [2] Warning in <MakeDefCanvas>: creating a default canvas with name c1
> X Error of failed request: BadAlloc (insufficient resources for operation)
> Major opcode of failed request: 53 (X_CreatePixmap)
> Serial number of failed request: 4852
> Current serial number in output stream: 4853
> clri6g:
> --------------------------------
> The result is that the whole root dies, That's boring.
> The problem lies probably somehwere in X. If I remember well, X has no
> error handling, it just does exit, but maybe one can protect oneself
> somehow ?
> Any ideas ?

You are working on a X terminal with a small memory.
If you are running thinks such as Netscape, or more than a few xterm windows,
you run quickly out of memory.
Root graphics is based on pixmaps. This takes a bit more space than
conventional line oriented graphics.
If somebody finds a solution how to trap the X server error, let us know.

Rene Brun