Operating System - HP-UX
1833476 Members
2974 Online
110052 Solutions
New Discussion

X Error of failed request: BadAlloc

 
NMC_2
Occasional Contributor

X Error of failed request: BadAlloc


In C200 workstation (HPUX10.20, Memory=512MB), programing with C++ and ILOG 3.01. The following problem happens:

X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 84 (X_AllocColor)
Serial number of failed request: 2129364
Current serial number in output stream: 2588116
Total X errors : 1

Resolving this question by tunning the system kernal parameters? Which parameters?

Thank you.
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: X Error of failed request: BadAlloc

At a guess it looks as if colours are running out NB the xserver only has 256 within its own colourmap.

Are you running applications such as netscape which are known colour hoggers which could be hanging on to colours and not releasing back to the desktop / your application ? Try logging out and without starting any applications just run your application does this still occur ?

I'd also look at the latest Xserver and motif patches if they are not installed : PHSS_23518 & PHSS_23535

also use attached xtools.sh , unshat it and run xcoloruse program, it will list how many colours you have left under you desktop and may help shed some light on this ?
glenn henley
Occasional Advisor

Re: X Error of failed request: BadAlloc

I agree with Alex, is does look like some other app is hogging all the colours.

If you are running netscape try starting it up with 'netscape -install' which forces it to
use its own colour map.

Best of Luck

Glenn
The only people that never make mistakes, are the people that never try anything.
NMC_2
Occasional Contributor

Re: X Error of failed request: BadAlloc

Thanks for help.
After I run the app, the available color map = 0. Probable due to the problems of custom app.
Alex Glennie
Honored Contributor

Re: X Error of failed request: BadAlloc

fyi : if you are using CDE or VUE you can allocatemore colors to applications at the expense of the Desktop

go into StyleManager via front panel, select color and then "numer of colors" it may help a bit ?