cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

maxis11
Adept I

CodeXL and GLFW 3.0 debug

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

0 Likes
1 Reply
maxis11
Adept I

Re: CodeXL and GLFW 3.0 debug

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

0 Likes