[argyllcms] Re: X error under AMD64 arch

Graeme Gill wrote:
> Mickael Profeta wrote:
>> I compiled successfully argyll 0.60 on my AMD64 computer (debian sid),
>> but when running dispcal or dispread - in fact, all program accessing to
>> X - I get the following error:
>>
>> X Error of failed request:  BadValue (integer parameter out of range for
>> operation)
>>   Major opcode of failed request:  18 (X_ChangeProperty)
>>   Value in failed request:  0x40
>>   Serial number of failed request:  15
>>   Current serial number in output stream:  17
>
I investigate the problem and find something in dispwin.c, the format in
XChangeProperty gets out of range. In original file, the value reach 64,
whereas the format should be 8, 16 or 32. I just remove the *8, is this
sensible?


alezan:/home/mike/argyll-0.60/spectro# diff -u dispwin.c dispwin_orig.c
--- dispwin.c   2006-08-13 23:49:07.000000000 +0200
+++ dispwin_orig.c      2006-08-13 22:41:16.000000000 +0200
@@ -1590,7 +1590,7 @@
                                p->mydisplay, p->mywindow,
                                XA_WM_TRANSIENT_FOR,            /*
Property */
                               
XA_WINDOW,                                      /* Type */
-                               sizeof(Window),                 /* format */
+                               sizeof(Window) * 8,                    
/* format */
                                PropModeReplace,                       
/* Change mode */                                (char
*)(&rootwindow),          /* Data is Root Window XID */
                               
1                                                       /* Number of
elements of data */





Cheers
Mike

Other related posts: