Raymond Toy (RT/EUS | 26 Jun 22:16

CLX bug?


Using the latest snapshot, I get the following problem.  I don't know
anything about X so I don't know if this is a problem with the code,
with CLX, with our telent CLX version, with Solaris X11, or what.

Ray

* (require :clx)
* (let* ((dpy (xlib:open-default-display))
       (win (xlib:create-window
             :parent (xlib:screen-root (first (xlib:display-roots dpy)))
             :x 0 :y 0 :width 50 :height 50))
       (pm (xlib:create-pixmap :width (random 100) :height (random 100)
                               :depth 8 :drawable win)))
  (setf (xlib:wm-hints win)
        (xlib:make-wm-hints :icon-pixmap pm))
  (xlib:display-finish-output dpy)
  (xlib:wm-hints-icon-pixmap (xlib:wm-hints win)))

Asynchronous VALUE-ERROR in request 8 (last request was 10)  Code 53.0 [CreatePixmap] Value 8.
   [Condition of type XLIB:VALUE-ERROR]

Restarts:
  0: [CONTINUE] Ignore
  1: [ABORT   ] Return to Top-Level.

Debug  (type H for help)

(XLIB::READ-ERROR-INPUT
 #<XLIB:DISPLAY brtps071:0 (Sun Microsystems, Inc. R6410)>
(Continue reading)

Fred Gilham | 26 Jun 22:32

Re: CLX bug?

Raymond Toy (RT/EUS) wrote:
> Using the latest snapshot, I get the following problem.  I don't know
> anything about X so I don't know if this is a problem with the code,
> with CLX, with our telent CLX version, with Solaris X11, or what.
> 
> Ray

As a data point, I'm unable to replicate this problem on FreeBSD with a 
06-2008 snapshot.  The code runs without error.

I also tried it with a 10-2007 snapshot on Linux and it's OK.  The CLX 
code should be the same in these snapshots, at least I don't recall 
seeing any updates in the CVS logs.

It *seems* like your X server doesn't like you building an 8-bit deep 
pixmap for some reason.  What do you see when you run xdpyinfo, the part 
that says, "supported pixmap formats:"?

--

-- 
Fred Gilham                              gilham <at> ai.sri.com
                   Ornamental Plums
             How soon their petals depart
                 How soon they return

Raymond Toy (RT/EUS | 26 Jun 22:39

Re: CLX bug?

Fred Gilham wrote:
> Raymond Toy (RT/EUS) wrote:
>> Using the latest snapshot, I get the following problem.  I don't know
>> anything about X so I don't know if this is a problem with the code,
>> with CLX, with our telent CLX version, with Solaris X11, or what.
>>
>> Ray
> 
> As a data point, I'm unable to replicate this problem on FreeBSD with a 
> 06-2008 snapshot.  The code runs without error.
> 
> I also tried it with a 10-2007 snapshot on Linux and it's OK.  The CLX 
> code should be the same in these snapshots, at least I don't recall 
> seeing any updates in the CVS logs.
> 
> It *seems* like your X server doesn't like you building an 8-bit deep 
> pixmap for some reason.  What do you see when you run xdpyinfo, the part 
> that says, "supported pixmap formats:"?
> 
xdpyinfo says:

number of supported pixmap formats:    4
supported pixmap formats:
     depth 1, bits_per_pixel 1, scanline_pad 32
     depth 8, bits_per_pixel 8, scanline_pad 32
     depth 16, bits_per_pixel 16, scanline_pad 32
     depth 24, bits_per_pixel 32, scanline_pad 32

So maybe it's a Solaris X11 problem.

(Continue reading)

Christophe Rhodes | 26 Jun 22:31

Re: CLX bug?

raymond.toy <at> ericsson.com (Raymond Toy (RT/EUS)) writes:

> Using the latest snapshot, I get the following problem.  I don't know
> anything about X so I don't know if this is a problem with the code,
> with CLX, with our telent CLX version, with Solaris X11, or what.

Well, you can get BadValue from the create-pixmap request (which is
what is generating this) in multiple different ways.  One way is for
either the width or height to be zero; another way is for the depth of
the pixmap to be not a supported depth of your screen.  Can you
reproduce this error if you eliminate those three cases?

Best,

Christophe

PS: I got this information from man XCreatePixmap.

Raymond Toy | 27 Jun 02:28

Re: CLX bug?

Christophe Rhodes wrote:
> raymond.toy <at> ericsson.com (Raymond Toy (RT/EUS)) writes:
>
>   
>> Using the latest snapshot, I get the following problem.  I don't know
>> anything about X so I don't know if this is a problem with the code,
>> with CLX, with our telent CLX version, with Solaris X11, or what.
>>     
>
> Well, you can get BadValue from the create-pixmap request (which is
> what is generating this) in multiple different ways.  One way is for
> either the width or height to be zero; another way is for the depth of
> the pixmap to be not a supported depth of your screen.  Can you
> reproduce this error if you eliminate those three cases?
>
>
>   
I changed the :depth to 1, 8, 16, and 24.  Only 1 and 24 work despite 
xdpyinfo saying all of those depths work.

That bit of code isn't important to me.  I just happened to see a clisp 
message about a CLX problem and wanted to try it out.

Ray


Gmane