xwin driver errors on 5.0.3

Help
2001-05-22
2001-10-30
  • Chee-Kiang Goh

    Chee-Kiang Goh - 2001-05-22

    Good day,
    I downloaded the latest plplot source and successfully compiled it on solaris 2.5
    Sun-UltraSparc with gcc 2.95.2 and
    X11R6 (but using the SUN's X server)

    However, upon testing (make cdemos, make tkdemos), the xwin driver always give me the following
    errors:
    X protocol error: error=8 request=1 minor=0
    X protocol error: error=3 request=18 minor=0
    X protocol error: error=3 request=18 minor=0
    X protocol error: error=3 request=18 minor=0
    X protocol error: error=3 request=2 minor=0
    X protocol error: error=9 request=55 minor=0
    X protocol error: error=9 request=55 minor=0
    X protocol error: error=9 request=14 minor=0
    Error in XCreatePixmap: BadDrawable (invalid Pixmap or Window parameter).
    X protocol error: error=3 request=2 minor=0
    X protocol error: error=3 request=2 minor=0
    X protocol error: error=3 request=12 minor=0
    X protocol error: error=3 request=8 minor=0

    And the tk demos only give me a blank window.

    I am quite new to this package, with interest
    to see the porting to octave ( the commands
    in octave as provided in the source tree also
    gives similar x protocol errors).

    Any help or pointers on this matter is greatly
    appreciated.

    Sincerely,
    Goh                            

     
    • Chee-Kiang Goh

      Chee-Kiang Goh - 2001-10-30

      Good day, all,

      Found out that the Xwin-driver error is somehow
      due to the XCreateWindow line (I set the  "synchronize" variable to 1 and saw the
      message).
      The following changes to the InitMain() function of xwin.c corrected the above problem:
      /* Window creation */
          dev->window =
      XCreateWindow( xwd->display,
      DefaultRootWindow(xwd->display), hint.x, hint.y, hint.width, hint.height, ev->border, XDefaultDepth(xwd->display,xwd->screen),
                     InputOutput, XDefaultVisual(xwd->display,xwd->screen),
                     0, NULL );

      The demo and the octave port are now running
      ok on my configuration (Ultrasparc 10, Solaris
      2.5.1 , version 5.0.4)

      For your information.

      Best Regards.

      Sincerely,
      Goh

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks