Crash in vtkOpenGLRenderTimer::ReusableStart()
I seem to be running into the same issue as this guy.
void vtkOpenGLRenderTimer::ReusableStart()
{
#ifndef NO_TIMESTAMP_QUERIES
if (this->StartQuery == 0)
{
glGenQueries(1, static_cast<GLuint*>(&this->StartQuery));
glQueryCounter(static_cast<GLuint>(this->StartQuery), GL_TIMESTAMP);
this->ReusableStarted = true;
this->ReusableEnded = false;
}
The second time I enter the function I get an access error because glGenQueries
is null.
I have compiled PCL and VTK for MSVC_2017_x64. I think the problem has to do with static initialization - I have built VTK as a static library and PCL as a shared one. I assumed this was supported since it is how the PCL official releases are built. (I need to build it myself for Qt integration)
The first time I enter the function. the stack trace is shown as:
> pcl_visualization_release.exe!vtkOpenGLRenderTimer::ReusableStart() Line 220 C++
The second time:
> my_program.exe!vtkOpenGLRenderTimer::ReusableStart() Line 220 C++