[vtkusers] Error in vtkOpenGLGPUVolumeRayCastMapper.cxx, continued

Richard Frank rickfrank at me.com
Tue May 3 18:10:21 EDT 2016


Hi,

Were you able to reproduce the issue with LightKit (or the source I posted to Dropbox)?


I’m hoping to migrate to 7.0 as soon as we can.

Thanks

Rick Frank
>  Re: [vtkusers] Error in vtkOpenGLGPUVolumeRayCastMapper.cxx,
> 	continued
> Message-ID:
> 	<CAEw35Z-MrTkAXabTc+BQSorXc+urJPFg5A+U04TLMJnyf50HUg at mail.gmail.com <mailto:CAEw35Z-MrTkAXabTc+BQSorXc+urJPFg5A+U04TLMJnyf50HUg at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> Thanks Rick for giving us the case for reproducing the error. I will have
> someone look into it.
> 
> Thanks,


>> Hi,
>> 
>> I was able to isolate?the problem.
>> 
>> We are using vtkLightKit in our application.
>> 
>> Here is a small app that will demonstrate the problem
>> 
>> https://www.dropbox.com/s/crwlm6njmqvdrz4/Source.7z?dl=0 <https://www.dropbox.com/s/crwlm6njmqvdrz4/Source.7z?dl=0>
>> 
>> 
>> But basically all you have to do is:
>> 
>> vtkSmartPointer<vtkLightKit> lightKit = vtkSmartPointer<vtkLightKit>::New();
>> lightKit->AddLightsToRenderer(ren1);
>> 
>> and render a volume
>> and the shader fails to compile.
>> 
>> Can you verify?
>> 
>> Also, while in there the code
>> 
>> this->Impl->ShaderProgram = this->Impl->ShaderCache->ReadyShaderProgram(
>> vertexShader.c_str(), fragmentShader.c_str(), "");
>> if (!this->Impl->ShaderProgram->GetCompiled())
>> {
>> vtkErrorMacro("Shader failed to compile");
>> }
>> 
>> should be changed to?
>> if (this->Impl->ShaderProgram == nullptr || !this->Impl->ShaderProgram->GetCompiled())
>> {
>> 
>> }
>> 
>> as?ReadyShaderProgram returns nullptr at least in this case (which causes the crash)
>> 
>> Let me ?know if you can repro and, if you fix it I will fetch from git and try again.
>> 
>> Thanks!
>> 
>> Rick Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160503/1eedc553/attachment.html>


More information about the vtkusers mailing list