Hi all,

Basics OpenGL Remote display from a Solaris 8 to a Linux (Mandriva 2007.0, but 
same behaviour with lots of other "guest" OSs) box fails at startup.
This is a February 2004 solaris, and some patches were installer as it is a CAD 
machine with Catia and all the stuff.

Here is the log with a standard sun demo program, 
[adm424 at scratchy ~]$ /usr/openwin/demo/GL/ogl_install_check
/usr/openwin/demo/GL/sparcv9/ogl_install_check: glXChooseVisual Error: Can't 
find visual.
[adm424 at scratchy ~]$
[adm424 at scratchy ~]$
[adm424 at scratchy ~]$ /usr/openwin/demo/GL/xglinfo
============================= Display marge1:13.0 =============================
name of display:        marge1:13.0
version number:         11.0
vendor string:          The X.Org Foundation
vendor release:         70101000
max request size:       262140 bytes
motion buffer size:     256
bitmap:                 unit = 32, bit order = LSBFirst, padding = 32
image byte order:       LSBFirst
keycode range:          minimum 8, maximum 255
focus window:           0x200000c, revert to RevertToPointerRoot
default screen num:     0
number of screens:      1
pixmap formats:         7 total
                        depth  1, bits_per_pixel  1, scanline_pad 32
                        depth  4, bits_per_pixel  4, scanline_pad 32
                        depth  8, bits_per_pixel  8, scanline_pad 32
                        depth 15, bits_per_pixel 16, scanline_pad 32
                        depth 16, bits_per_pixel 16, scanline_pad 32
                        depth 24, bits_per_pixel 32, scanline_pad 32
                        depth 32, bits_per_pixel 32, scanline_pad 32
Server Extensions:      23 total
                        SHAPE, Extended-Visual-Information, Multi-Buffering,
                        XTEST, BIG-REQUESTS, MIT-SUNDRY-NONSTANDARD,
                        DEC-XTRAP, MIT-SCREEN-SAVER, XVideo, SYNC, XC-MISC,
                        RECORD, LBX, DOUBLE-BUFFER, XC-APPGROUP, SECURITY,
                        TOG-CUP, XFree86-Bigfont, GLX, SGI-GLX, XFIXES,
                        X-Resource, DAMAGE,
GLX Extension:          error base = 149, event base = 76, Version 1.2
=================================== Screen 0 ===================================
screen:                 0
dimensions:             1050x787 pixels (303x227 millimeters)
resolution:             88x88 dots per inch
depths:                 (2 total):       1, 24
root window id:         0x28
depth of root window:   24 planes
number colormaps:       minimum 1, maximum 1
default colormap:       0x25, number colormap cells 256
preallocated pixels:    black 0x0, white 0xffffff
options:                backing-store NO, save-unders NO
input event mask:       0x38203f
                        KeyPress             KeyRelease           ButtonPress
                        ButtonRelease        EnterWindow          LeaveWindow
                        ButtonMotion         SubstructureNotify
                        SubstructureRedirect FocusChange
=================== 4 Visuals for Screen 0 (default = 0x21) ===================
TrueColor visual: ID = 0x21 (hex) 33 (decimal), screen = 0, gamma = 2.22
  DOUBLE buffered MONO COLOR INDEX visual with (Z)
  GL Sizes: ColorIndex=24, Z=16,
  number of sample buffers=0, samples per pixel =0
  ERROR: CI visual, but RGB has non-zero sizes (8,8,8)
  Core X: depth=24, colormapSize=256 RGB: masks=(0xff0000,0xff00,0xff) bits=8

TrueColor visual: ID = 0x22 (hex) 34 (decimal), screen = 0, gamma = 2.22
  DOUBLE buffered MONO COLOR INDEX visual with (Z Stencil)
  GL Sizes: ColorIndex=24, Z=16, Stencil=8
  number of sample buffers=0, samples per pixel =0
  ERROR: CI visual, but RGB has non-zero sizes (8,8,8)
  ERROR: CI visual, but Accum has non-zero sizes (16,16,16,0)
  Core X: depth=24, colormapSize=256 RGB: masks=(0xff0000,0xff00,0xff) bits=8

TrueColor visual: ID = 0x23 (hex) 35 (decimal), screen = 0, gamma = 2.22
  DOUBLE buffered MONO COLOR INDEX visual with (Z Stencil)
  GL Sizes: ColorIndex=32, Z=16, Stencil=8
  number of sample buffers=0, samples per pixel =0
  ERROR: CI visual, but RGB has non-zero sizes (8,8,8)
  ERROR: CI visual, but Alpha has non-zero size = 8
  ERROR: CI visual, but Accum has non-zero sizes (16,16,16,16)
  Core X: depth=24, colormapSize=256 RGB: masks=(0xff0000,0xff00,0xff) bits=8

TrueColor visual: ID = 0x24 (hex) 36 (decimal), screen = 0, gamma = 2.22
  SINGLE buffered MONO COLOR INDEX visual with (Z Stencil)
  GL Sizes: ColorIndex=32, Z=16, Stencil=8
  number of sample buffers=0, samples per pixel =0
  ERROR: CI visual, but RGB has non-zero sizes (8,8,8)
  ERROR: CI visual, but Alpha has non-zero size = 8
  ERROR: CI visual, but Accum has non-zero sizes (16,16,16,16)
  Core X: depth=24, colormapSize=256 RGB: masks=(0xff0000,0xff00,0xff) bits=8

[adm424 at scratchy ~]$

same error with the glxgears.

   int attrib[] = { GLX_RGBA,
                    GLX_RED_SIZE, 1,
                    GLX_GREEN_SIZE, 1,
                    GLX_BLUE_SIZE, 1,
                    GLX_DOUBLEBUFFER,
                    GLX_DEPTH_SIZE, 1,
                    None };
   int scrnum;
   XSetWindowAttributes attr;
   unsigned long mask;
   Window root;
   Window win;
   GLXContext ctx;
   XVisualInfo *visinfo;

   scrnum = DefaultScreen( dpy );
   root = RootWindow( dpy, scrnum );

   visinfo = glXChooseVisual( dpy, scrnum, attrib );
   //printf("depth: %d\n", visinfo->depth);
   if (!visinfo) {
      printf("Error: couldn't get an RGB, Double-buffered visual\n");
      exit(1);
   }

I remember I tried to play with attrib array values, but no way to make it work.
Is there any known workaround.
I'm sure there is since Catia v4 and Catia 4D Nav manage to work in remote, so 
they must do tricky things ?

Thanks,
Benjamin.
 
 
This message posted from opensolaris.org

Reply via email to