<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Were you able to reproduce the issue with LightKit (or the source I posted to Dropbox)?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I’m hoping to migrate to 7.0 as soon as we can.</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Rick Frank<br class=""><blockquote type="cite" class=""> Re: [vtkusers] Error in vtkOpenGLGPUVolumeRayCastMapper.cxx,<br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span>continued<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span><<a href="mailto:CAEw35Z-MrTkAXabTc+BQSorXc+urJPFg5A+U04TLMJnyf50HUg@mail.gmail.com" class="">CAEw35Z-MrTkAXabTc+BQSorXc+urJPFg5A+U04TLMJnyf50HUg@mail.gmail.com</a>><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">Thanks Rick for giving us the case for reproducing the error. I will have<br class="">someone look into it.<br class=""><br class="">Thanks,<br class=""></blockquote><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">I was able to isolate?the problem.<br class=""><br class="">We are using vtkLightKit in our application.<br class=""><br class="">Here is a small app that will demonstrate the problem<br class=""><br class=""><a href="https://www.dropbox.com/s/crwlm6njmqvdrz4/Source.7z?dl=0" class="">https://www.dropbox.com/s/crwlm6njmqvdrz4/Source.7z?dl=0</a><br class=""><br class=""><br class="">But basically all you have to do is:<br class=""><br class="">vtkSmartPointer<vtkLightKit> lightKit = vtkSmartPointer<vtkLightKit>::New();<br class="">lightKit->AddLightsToRenderer(ren1);<br class=""><br class="">and render a volume<br class="">and the shader fails to compile.<br class=""><br class="">Can you verify?<br class=""><br class="">Also, while in there the code<br class=""><br class="">this->Impl->ShaderProgram = this->Impl->ShaderCache->ReadyShaderProgram(<br class="">vertexShader.c_str(), fragmentShader.c_str(), "");<br class="">if (!this->Impl->ShaderProgram->GetCompiled())<br class="">{<br class="">vtkErrorMacro("Shader failed to compile");<br class="">}<br class=""><br class="">should be changed to?<br class="">if (this->Impl->ShaderProgram == nullptr || !this->Impl->ShaderProgram->GetCompiled())<br class="">{<br class=""><br class="">}<br class=""><br class="">as?ReadyShaderProgram returns nullptr at least in this case (which causes the crash)<br class=""><br class="">Let me ?know if you can repro and, if you fix it I will fetch from git and try again.<br class=""><br class="">Thanks!<br class=""><br class="">Rick Frank</blockquote></blockquote></div></div></body></html>