[comp.windows.x] XV doesn't work on Sunos4.1 running openwindows

csd35@seq1.keele.ac.uk (Jonathan Knight) (01/09/91)

I haven't been able to get XV to run under openwindows for any
length of time.  It keeps bombing out with the error

X Error:  BadAlloc
  Request Major code 12 ()
  Request Minor code 2
  ResourceID 0x0
  Error Serial #1128
  Current Serial #1140

Usually it happens after selecting 'Maxpect' and then 'Normal' on colour
images.

I've also noticed that XV sometimes gets the aspect ratio wrong when
dealing with certain images.  The only thing that seems to connect
these images is that they are 16 colours.

XV runs fine if olwm isn't running (just the server and XV).

I'm running XV at patch level 3.
-- 
  ______    JANET :jonathan@uk.ac.keele.cs     Jonathan Knight,
    /       BITNET:jonathan%cs.kl.ac.uk@ukacrl Department of Computer Science
   / _   __ other :jonathan@cs.keele.ac.uk     University of Keele, Keele,
(_/ (_) / / UUCP  :...!ukc!kl-cs!jonathan      Staffordshire.  ST5 5BG.  U.K.

ishii@hexard.co.jp (Koji Ishii) (01/10/91)

In article <782@keele.keele.ac.uk>
	csd35@seq1.keele.ac.uk (Jonathan Knight) writes:

> XV runs fine if olwm isn't running (just the server and XV).

  XV has codes in xv.c specially designed to work with bug in twm (as
following comment says,) which seems harmful with olwm.  Commenting
out it works on my SPARC.

*** xv.c~	Tue Dec 11 02:16:00 1990
--- xv.c	Wed Jan  9 10:49:20 1991
***************
*** 1784,1793 ****
--- 1784,1794 ----
      xoff = yoff = xwa->border_width;
    }
      
    XMoveResizeWindow(theDisp, mainW, xwa->x, xwa->y, xwa->width, xwa->height);
  
+ #if 0
    /*
     * all this bogus stuff is a work-around for weirdness in
     * twm where resize was giving 23 extra lines...
     * should do no harm if this bug is not present.
     */
***************
*** 1801,1810 ****
--- 1802,1812 ----
      }
  
      XResizeWindow(theDisp, mainW, xwa->width, 
  		  xwa->height - (pxwa.height - xwa->height));
    }
+ #endif
  
  }
  
  
  /***********************************/
--
----------------------------------
  Koji Ishii  Hexard Inc., Tokyo, Japan. <ishii@hexard.co.jp>