Hello everyone,
I’m new to VTK and I’m encountering an issue when trying to render CylinderExample
my embedded environment is: wayland with EGL
so I rebuild VTK 9.1.0 source code with these options
- VTK_USE_X=OFF
- VTK_OPENGL_HAS_EGL=ON
- VTK_OPENGL_USE_GLES=ON
- VTK_GROUP_ENABLE_Rendering=YES
but I got these error below:
2024-11-11 07:17:15.763 ( 0.043s) [ 8329A020] vtkOpenGLState.cxx:68 WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:15.763 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:76 WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:83 WARN| Error in cache state for GL_BLEND
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:90 WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:113 WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:144 WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:152 WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:159 WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:166 WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:173 WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:180 WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:187 WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:194 WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:201 WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:15.764 ( 0.044s) [ 8329A020] vtkOpenGLState.cxx:266 WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:15.766 ( 0.046s) [ 8329A020] vtkOpenGLState.cxx:274 WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c78438 : vtkOpenGLState::vtkglPixelStorei(unsigned int, int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52b20 : vtkOpenGLRenderWindow::OpenGLInitState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52c2c : vtkOpenGLRenderWindow::OpenGLInit() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82cf5284 : vtkEGLRenderWindow::Initialize() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c554fc : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:76 WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:144 WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:152 WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:159 WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:166 WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:173 WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:180 WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:187 WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:16.096 ( 0.376s) [ 8329A020] vtkOpenGLState.cxx:194 WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:16.096 ( 0.377s) [ 8329A020] vtkOpenGLState.cxx:201 WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:16.096 ( 0.377s) [ 8329A020] vtkOpenGLState.cxx:208 WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.096 ( 0.377s) [ 8329A020] vtkOpenGLState.cxx:215 WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.096 ( 0.377s) [ 8329A020] vtkOpenGLState.cxx:266 WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:16.098 ( 0.378s) [ 8329A020] vtkOpenGLState.cxx:274 WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c78438 : vtkOpenGLState::vtkglPixelStorei(unsigned int, int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52b40 : vtkOpenGLRenderWindow::OpenGLInitState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c52c2c : vtkOpenGLRenderWindow::OpenGLInit() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82cf5284 : vtkEGLRenderWindow::Initialize() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c554fc : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]
2024-11-11 07:17:16.098 ( 0.378s) [ 8329A020] vtkOpenGLState.cxx:68 WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:16.098 ( 0.378s) [ 8329A020] vtkOpenGLState.cxx:76 WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.098 ( 0.378s) [ 8329A020] vtkOpenGLState.cxx:83 WARN| Error in cache state for GL_BLEND
2024-11-11 07:17:16.098 ( 0.378s) [ 8329A020] vtkOpenGLState.cxx:90 WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:16.098 ( 0.378s) [ 8329A020] vtkOpenGLState.cxx:97 WARN| Error in cache state for GL_CULL_FACE
2024-11-11 07:17:16.098 ( 0.378s) [ 8329A020] vtkOpenGLState.cxx:113 WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:120 WARN| Error in cache state for GL_STENCIL_TEST
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:144 WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:152 WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:159 WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:166 WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:173 WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:180 WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:187 WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:194 WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:201 WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:16.430 ( 0.710s) [ 8329A020] vtkOpenGLState.cxx:208 WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.430 ( 0.711s) [ 8329A020] vtkOpenGLState.cxx:215 WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.430 ( 0.711s) [ 8329A020] vtkOpenGLState.cxx:252 WARN| Error in cache state for GL_READ_BUFFER
2024-11-11 07:17:16.430 ( 0.711s) [ 8329A020] vtkOpenGLState.cxx:266 WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:16.431 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:274 WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c778f4 : vtkOpenGLState::SetEnumState(unsigned int, bool) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c55410 : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:68 WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:76 WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:90 WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:97 WARN| Error in cache state for GL_CULL_FACE
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:113 WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:120 WARN| Error in cache state for GL_STENCIL_TEST
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:144 WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:152 WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.432 ( 0.712s) [ 8329A020] vtkOpenGLState.cxx:159 WARN| Error in cache state for GL_CULL_FACE_MODE
2024-11-11 07:17:16.763 ( 1.043s) [ 8329A020] vtkOpenGLState.cxx:166 WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.763 ( 1.043s) [ 8329A020] vtkOpenGLState.cxx:173 WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:16.763 ( 1.043s) [ 8329A020] vtkOpenGLState.cxx:180 WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:16.763 ( 1.044s) [ 8329A020] vtkOpenGLState.cxx:187 WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:16.763 ( 1.044s) [ 8329A020] vtkOpenGLState.cxx:194 WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:16.763 ( 1.044s) [ 8329A020] vtkOpenGLState.cxx:201 WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:16.763 ( 1.044s) [ 8329A020] vtkOpenGLState.cxx:208 WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.763 ( 1.044s) [ 8329A020] vtkOpenGLState.cxx:215 WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:16.763 ( 1.044s) [ 8329A020] vtkOpenGLState.cxx:252 WARN| Error in cache state for GL_READ_BUFFER
2024-11-11 07:17:16.763 ( 1.044s) [ 8329A020] vtkOpenGLState.cxx:266 WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:16.764 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:274 WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c76f80 : vtkOpenGLState::vtkglBlendFuncSeparate(unsigned int, unsigned int, unsigned int, unsigned int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c5543c : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:68 WARN| Error in cache state for GL_DEPTH_WRITEMASK
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:76 WARN| Error in cache state for GL_COLOR_WRITEMASK
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:90 WARN| Error in cache state for GL_DEPTH_TEST
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:97 WARN| Error in cache state for GL_CULL_FACE
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:113 WARN| Error in cache state for GL_SCISSOR_TEST
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:120 WARN| Error in cache state for GL_STENCIL_TEST
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:144 WARN| Error in cache state for GL_VIEWPORT
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:152 WARN| Error in cache state for GL_SCISSOR_BOX
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:159 WARN| Error in cache state for GL_CULL_FACE_MODE
20[ 2014.837072] audit: type=1701 audit(1731309437.098:8): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=9427 comm="a.out" exe="/run/media/sda1/a.out" sig=6 res=1
24-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:166 WARN| Error in cache state for GL_ACTIVE_TEXTURE
2024-11-11 07:17:16.765 ( 1.045s) [ 8329A020] vtkOpenGLState.cxx:173 WARN| Error in cache state for GL_DEPTH_FUNC
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:180 WARN| Error in cache state for GL_BLEND_SRC_RGB
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:187 WARN| Error in cache state for GL_BLEND_SRC_ALPHA
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:194 WARN| Error in cache state for GL_BLEND_DST_RGB
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:201 WARN| Error in cache state for GL_BLEND_DST_ALPHA
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:208 WARN| Error in cache state for GL_DRAW_FRAMEBUFFER_BINDING
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:215 WARN| Error in cache state for GL_READ_FRAMEBUFFER_BINDING
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:252 WARN| Error in cache state for GL_READ_BUFFER
2024-11-11 07:17:17.097 ( 1.377s) [ 8329A020] vtkOpenGLState.cxx:266 WARN| Error in cache state for GL_COLOR_CLEAR_VALUE
2024-11-11 07:17:17.098 ( 1.378s) [ 8329A020] vtkOpenGLState.cxx:274 WARN| at stack loc
0xffff82483aa8 : ??? [(???) ???:-1]
0xffff82484418 : vtksys::SystemInformation::GetProgramStack[abi:cxx11](int, int) [(libvtksys-9.1.so.1) ???:-1]
0xffff82c74e98 : vtkOpenGLState::CheckState() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c75764 : vtkOpenGLState::vtkglBindFramebuffer(unsigned int, unsigned int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82bdffcc : vtkOpenGLFramebufferObject::PopulateFramebuffer(int, int, bool, int, int, bool, int, int, bool) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c54e08 : vtkOpenGLRenderWindow::CreateFramebuffers(int, int) [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82c55464 : vtkOpenGLRenderWindow::Start() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0xffff82fd8818 : vtkRenderWindow::Render() [(libvtkRenderingCore-9.1.so.1) ???:-1]
0xffff82c58978 : vtkOpenGLRenderWindow::Render() [(libvtkRenderingOpenGL2-9.1.so.1) ???:-1]
0x402ab4 : ??? [(???) ???:-1]
0xffff824db230 : ??? [(???) ???:-1]
0xffff824db30c : __libc_start_main [(libc.so.6) ???:-1]
0x402170 : ??? [(???) ???:-1]
2024-11-11 07:17:17.098 ( 1.379s) [ 8329A020] vtkOpenGLState.cxx:1795 WARN| Hardware does not support the number of textures defined.
a.out: /usr/src/debug/vtk/9.1.0-r0/VTK-9.1.0/Rendering/OpenGL2/vtkTextureObject.cxx:390: void vtkTextureObject::Bind(): Assertion `this->Handle' failed.
Aborted (core dumped)