OpenSolaris

Printable Version Enter a New Search
Bug ID 6383556
Synopsis Problem in allocating pixmap
State 10-Fix Delivered (Fix available in build)
Category:Subcategory xserver:xsun-server
Keywords 5.10 | BadAlloc | XCreatePixmap | allocation | insufficient | jfb | pixmap | resources | xvr-600
Responsible Engineer Jay Cotton
Reported Against s10 , solaris_8
Duplicate Of
Introduced In
Commit to Fix s10u2_05
Fixed In s10u2_05
Release Fixed solaris_10u2(s10u2_05) , solaris_nevada(snv_36) (Bug ID:2134799) solaris_8(s8_patch) (Bug ID:2143062,) solaris_9(s9_patch) (Bug ID:2143063,)
Related Bugs
Submit Date 9-February-2006
Last Update Date 16-January-2007
Description
On a XVR-600 we have a short testcase showing an allocation issue on Solaris 10 (may be on other systems also).

It fails on a BadAlloc (insufficient resources for operation) error message but for some canvas size only.

eg :
#  ./table 98
column :98

col: 98, row: 20
width: 8232, height: 400
Area 3292800
canvas width: 8232, canvas height: 400
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  93
  Current serial number in output stream:  94

Well, ok, may be we are running out of resources, then. 
BUT ! :

#  ./table 5 1638
column :5
row :1638

col: 5, row: 1638
width: 420, height: 32760
Area 13759200
canvas width: 420, canvas height: 32760
pix width: 420, pix height: 32760, depth:24

This example works but the allocated area is bigger !??

This happens in 24 bits mode, not 8 bits.
Work Around
We did not find any workaround here.
Comments
N/A