Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: BadRequests out the wazoo

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2011
    Posts
    7

    BadRequests out the wazoo

    Hi, I've been using SDL for awhile and decided to look into OpenGL. It turns out, oddly enough, that when I try to compile ANYTHING now (though I had a working openGL window for awhile there) that I get the following when I run it in terminal:

    /home/username/gl_test1/green
    X Error of failed request: BadRequest (invalid request code or no such operation)
    Major opcode of failed request: 135 (GLX)
    Minor opcode of failed request: 19 (X_GLXQueryServerString)
    Serial number of failed request: 22
    Current serial number in output stream: 22

    <<That one's from a tutorial I found, but everything I'm trying seems to put that out now. It is very discouraging... Here's the code from that BadRequest, though it happens for everything I try for some reason (out of nowhere):

    Code :
    /*
     *  green.c
     *  This program draws a green window. (Yawn!)
     */
     
    #include <GL/gl.h>
    #include <GL/glut.h>
     
    void green (void) {
     
    	glClear(GL_COLOR_BUFFER_BIT);
    	glFlush();
    }
     
    int main(int argc, char** argv)
    {
    	glutInit(&amp;argc, argv);
    	glutInitWindowSize(400, 400);
    	glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);
    	glutCreateWindow ("green");
     
    	glutDisplayFunc(green);
    	glClearColor (0.0, 1.0, 0.0, 1.0);
     
    	glutMainLoop();
    	return(0);
    }

    My Linker Options under codeblocks are still set to the same things they were when I got my window compiling (this isn't it, etc) and it compiles just fine via terminal, also, but gives me that BadRequest thing when I try to run it in terminal. Any thoughts? @_@;
    Heya. You like reading signatures, too? Cool. :P

  2. #2
    Member Regular Contributor
    Join Date
    Mar 2007
    Location
    CA
    Posts
    418

    Re: BadRequests out the wazoo

    Everytime the linux kernel is changed ie updates applied then you need to reinstall your proprietary nvidia library. ..at least that is what i have to do on my ubuntu box and using the latest nvidia drivers installed manually.

    Code :
    sudo service gdm stop
    sudo sh your_nvidia_driver.run
    sudo service gdm start

    Then exectute your compiled opengl program and the errors you saw will be gone

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2011
    Posts
    7

    SOLVED:Re: BadRequests out the wazoo

    Hmm... Trying this for my fglrx-driver doesn't seem to work out. Trying it gives this:

    sh: Can't open fglrx-driver

    I've tried it logged in as root and as myself, and neither worked.
    I'm guessing it might be because of my different driver. @_@;

    EDIT: AHA! I found a solution, thanks to some searching inspired by that reply. I found it on my distro's forum (go figure, right?):

    Code :
    sudo apt-get remove --purge fglrx*
    sudo apt-get update &amp;&amp; sudo apt-get install fglrx-driver fglrx-control
    sudo /usr/bin/aticonfig --initial
    Reboot
    Heya. You like reading signatures, too? Cool. :P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •