1 Reply Latest reply on May 15, 2013 7:58 AM by maxis11

    CodeXL and GLFW 3.0 debug

    maxis11

      I got some trouble in glfwInit():

       

      Signal

      Event Properties

      Reason  

      SIGSEGV

      Address  

      000000000000000000

      Details  

      Invalid memory reference.

       

       

      _glfwInitContextAPI - libglfw.so.3

      _glfwPlatformInit - libglfw.so.3

      glfwInit - libglfw.so.3

      InitGLClass::InitGLClass - engInit.cpp, line 28

      __static_initialization_and_destruction_0 - main.cpp, line 5

      _GLOBAL__sub_I_initgl - main.cpp, line 33

      __libc_csu_init -

      __libc_start_main - libc.so.6

      _start -

       

      in _glfwInitContextAPI:

       

      Call Stack

      Function Name  

      _glfwInitContextAPI

      File Path  

      N/A

      Line Number  

      N/A

      Module Name  

      /usr/local/lib/libglfw.so.3

      Instruction Counter Address  

      0x00007ffff7603429

      Function address  

      N/A

       

      InitGLClass::InitGLClass()

      {

                Init=false;

                window=nullptr;

                if (!glfwInit())

                {

                          log.WriteLog("Add errlog");

                          errlog.WriteLog("glfwInit error");

                          Init=false;

                }

                monitor = glfwGetPrimaryMonitor();

                vidmode = glfwGetVideoMode (monitor);

                Init=true;

                log.WriteLog("InitGLClass() OK");

      }

       

      amd catalyst 13.4 ubuntu 13.04/amd64 app sdk 2.8 codeXL 1.1

        • Re: CodeXL and GLFW 3.0 debug
          maxis11

          Bug is here:

           

          if (!glXQueryVersion(_glfw.x11.display,

                                   &_glfw.glx.versionMajor,

                                   &_glfw.glx.versionMinor))

              {

                  _glfwInputError(GLFW_API_UNAVAILABLE,

                                  "GLX: Failed to query GLX version");

                  return GL_FALSE;

              }  (in if)

           

          something wrong with glXQueryVersion (becouse glXQueryExtension(_glfw.x11.display,&_glfw.glx.errorBase,&_glfw.glx.eventBase) completed successfully)

           

           

          Message was edited by: Maxim Shaposhnikov