[vtkusers] glLightModelfv() causes crash

vlibertiaux vlibertiaux at gmail.com
Fri Feb 18 19:07:33 EST 2011


Hi everyone,

I am completely new in vtk (1 week experience...) and I inherited a program
using vtk which was supposed to work with vtk4.  

I compiled it against vtk5.6, corrected some minor issues and now I try to
run it.

When I want to render a scene computed in the code, it keeps crashing with
this message:
"
 Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00007fff8145c68d in glLightModelfv ()
"

a bt in gdb yields in:

"
#0  0x00007fff8145c68d in glLightModelfv ()
#1  0x00000001016f43b9 in vtkOpenGLRenderer::ClearLights ()
#2  0x00000001016f4505 in vtkOpenGLRenderer::DeviceRender ()
#3  0x0000000101609db4 in vtkRenderer::Render ()
#4  0x0000000100022a3e in RenderWindowManager::AddRenderWindow ()
#5  0x000000010001f8fc in RenderCurrentProps ()
#6  0x000000010002058d in main ()
"

I google search the problem and the only solution I found was to comment
some lines in the ClearLights() method, a solution which didn't work for me.

Could anyone help me with this problem ?

Thank you very much,

Vincent

-- 
View this message in context: http://vtk.1045678.n5.nabble.com/glLightModelfv-causes-crash-tp3391983p3391983.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list