[vtkusers] Crashed when I used a QVTKWidget to render two vtkRenderWindow in turn

Wangtao_ wangtao_ at sjtu.edu.cn
Wed Aug 17 23:10:37 EDT 2016


I am using C++ with VTK7.0+Qt5.6 to build a application, when I use
QVTKWidget to render two vtkRenderWindow there come up a crash in runtime, I
simply use SetRenderWindow function to swith the two render window I
created, the error message:

ERROR: In
D:\VTK\VTK7.0\VTK-7.0.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx,
line 724
vtkWin32OpenGLRenderWindow (000001EB9F34C2C0): failed to get valid pixel
format.

ERROR: In
D:\VTK\VTK7.0\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line
533
vtkWin32OpenGLRenderWindow (000001EB9F34C2C0): GLEW could not be
initialized.

ERROR: In
D:\VTK\VTK7.0\VTK-7.0.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx,
line 724
vtkWin32OpenGLRenderWindow (000001EB9F34D210): failed to get valid pixel
format.

ERROR: In
D:\VTK\VTK7.0\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line
533
vtkWin32OpenGLRenderWindow (000001EB9F34D210): GLEW could not be
initialized.

ERROR: In
D:\VTK\VTK7.0\VTK-7.0.0\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.cxx,
line 724
vtkWin32OpenGLRenderWindow (000001EB9F34E160): failed to get valid pixel
format.

ERROR: In
D:\VTK\VTK7.0\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line
533
vtkWin32OpenGLRenderWindow (000001EB9F34E160): GLEW could not be
initialized.

ERROR: In D:\VTK\VTK7.0\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderer.cxx,
line 441
vtkOpenGLRenderer (000001EB9F3489F0): failed after Clear 16 OpenGL errors
detected
  0 : (1282) Invalid operation
  1 : (1282) Invalid operation
  2 : (1282) Invalid operation
  3 : (1282) Invalid operation
  4 : (1282) Invalid operation

I find a relative problem in this webpage:
http://public.kitware.com/pipermail/vtkusers/2016-May/095210.html

Can anybody please give me some help?



--
View this message in context: http://vtk.1045678.n5.nabble.com/Crashed-when-I-used-a-QVTKWidget-to-render-two-vtkRenderWindow-in-turn-tp5739836.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list