Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!olivea!orc!inews!mipos2.intel.com!jpoon From: jpoon@mipos2.intel.com Newsgroups: comp.windows.x Subject: Need help to fix error in "xlock" Message-ID: <1327@inews.intel.com> Date: 11 Dec 90 18:47:23 GMT Sender: news@inews.intel.com Reply-To: jpoon@mipos2.intel.com () Distribution: usa Organization: Intel Corporation, Santa Clara, CA Lines: 25 I am a navie user of X11. But recently I built the X11R4 on sun386i. When i try to run 'xlock', it gives me the following error: > X Error of failed request: BadValue (integer parameter out of range for operation) > Major opcode of failed request: 26 (X_GrabPointer) > Minor opcode of failed request: 0 > Resource id in failed request: 0xffff > Serial number of failed request: 32 > Current serial number in output stream: 32 I debug it all the way in the X11 library. The routine is _XRead() in file XlibInt.c. This is the statement (line 212 in XlibInt.c) that is 'causing' the problem: > while ((bytes_read = ReadFromServer(dpy->fd, data, (int)size)) > != size) { Apparently, variable 'bytes_read' return -1. Subsequently, the routine exits with the above error. Is there any reason why the server is not returning any bytes? Is the server built incorrectly? Any expert out there has any idea? Thanks, Jack Poon