[comp.windows.x] XDrawLine in boxwidget hangs server

hiebeler@turing.cs.rpi.edu (Dave Hiebeler) (04/17/89)

  Well, after encountering the problem that backing_store does not
work on our X server with the "fix2" patch to window.c (I still
wonder if anyone else has had this problem?) I took out the 2 lines
from window.c that were changed by that patch, and compiled a new
X server.
  With that server, backing_store does in fact work fine; it's
great.
  However, now, my program seems to crash a little later on.  What
I am doing while it is crashing is using
   XDrawLine(display,XtWindow(draw_box),graphics_context,x0,y0,x1,y1);
to draw a line in a box widget.  The box is the child of a viewport
widget with horizontal and vertical scrollbars.  The crash occurs
while it is trying to draw a line which is entirely within the
visible area of the box (i.e. it's not happening when trying to
draw a line in the portion of the box that is not visible).

  The symptoms of the crash are that the X server seems to completely
freeze.  If I rlogin to the machine and kill my application,
everything still remains frozen.  The only cure is to kill off
all of my processes (X server and all).
  I've experimented a little bit, commenting out various calls
to XDrawLine.  It doesn't seem to crash on a specific call to
XDrawLine, but rather it seems to do it after a certain number
of lines are drawn, no matter where they are.  It seems to
happen after drawing about 70 lines or so...
  Note that this same program does not crash the version of the
X server that has the fix2 patch to window.c installed.  I
don't understand this, since UnmapSubwindows shouldn't even be
getting called; I'm just drawing lines.

  If anyone has any suggestions about why this crash is occurring,
or why backing_store does not work when fix2 is installed,
I would be _very_ happy.  A deadline is rushing toward me,
and this strange behavior is not helping things...

--
Dave Hiebeler             Internet: hiebeler@cs.rpi.edu  (preferred address)
Computer Science Dept.              hiebeler@itsgw.rpi.edu
Amos Eaton Bldg.            Bitnet: userfrzk@rpitsmts.bitnet
Rensselaer Polytechnic Institute / Troy, NY 12180-3590