[vtkusers] Application crashes with VTK 5.6, loading openGL 1.5 does not help

Oliver Kania kania.oliver at googlemail.com
Fri May 28 00:38:24 EDT 2010


Hello Karthik,

I guess you assume I did not read the posts below. However, I did.
Explicitly loading OpenGL 1.5 does not help in my case.
However, I was able to further narrow down the problem :
The crash happens during RenderOverlay(). If the scene has
no props that are rendered as overlay, everything works.
If it does, it crashes with GenBuffers == NULL.

best regards,
Oliver

2010/5/27 Karthik Krishnan <karthik.krishnan at kitware.com>

> Yes.. Please see
> http://www.vtk.org/pipermail/vtkusers/2007-April/090792.html
>
> On Thu, May 27, 2010 at 3:04 PM, Oliver Kania <kania.oliver at googlemail.com
> > wrote:
>
>> Hello,
>> my Windows Application crashes when calling
>> vtkRenderWindowInteractor::Render() the first time during initialization.
>> This happens only with the official VTK 5.6 version but not with the older
>> VTK 5.2.
>> According to the debugger, the procedure GenBuffers has address 0, and
>> thats why the app crashes.
>> Here is the VTK code of the method where the crash happens : (bottom of
>> stack trace)
>>
>>
>> void vtkPixelBufferObject::CreateBuffer()
>> {
>>   this->Context->MakeCurrent();
>>   if (!this->Handle)
>>     {
>>     GLuint ioBuf;
>>     vtkgl::GenBuffers(1, &ioBuf);  ///// crash --  GenBuffers is 0 !
>>     vtkGraphicErrorMacro(this->Context,"after GenBuffers");
>>     this->Handle = ioBuf;
>>     }
>> }
>>
>> Any help would be greatly appreciated.
>>
>> Best Regards,
>> Oliver
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100528/4fa144c9/attachment.htm>


More information about the vtkusers mailing list