<div dir="ltr">Thanks that helps. I am starting to wonder if the issue is related to multiple render windows. With multiple windows it is important to not share actors or mappers in the new OpenGL backend. Each window needs its own mappers and actors. They can share the same data source/readers but not the opengl pieces like actors/mappers. Does the problem still exist if you only have one renderWindow?<div><br></div><div>Thanks</div><div>Ken</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 12:04 PM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>I traced through the VTK code and then added a vtkOpenGLCheckErrorMacro :</div><div><br></div><div><br></div><div>vtkOpenGLPolyDataMapper::UpdateShaders(<br> vtkOpenGLHelper &cellBO, vtkRenderer* ren, vtkActor *actor)<br>{<br> vtkOpenGLRenderWindow *renWin = vtkOpenGLRenderWindow::SafeDownCast(ren->GetRenderWindow());<br><br> cellBO.VAO->Bind();<br> vtkOpenGLCheckErrorMacro("failed after cellBO.VAO->Bind()");</div><div><br></div><div><br></div><div><br></div><div>ERROR: In vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1390<br>vtkOpenGLPolyDataMapper (0000025BBD546CB0): failed after cellBO.VAO->Bind() 1 OpenGL errors detected<br> 0 : (1282) Invalid operation<br></div><div><br></div><div>and the gl log has</div><div><br></div><div>GL ERROR - Function glBindVertexArray generated error GL_INVALID_OPERATION<br>GL ERROR - Function glDrawRangeElements generated error GL_OUT_OF_MEMORY</div><div><br></div><div>I'm guessing the glBindVertexArray is generating the error? Any ideas what might cause that?</div><div><br></div><div>The 6.3.0 code seemed to not use any shaders when rendering my model - when I launched the Shader Editor using 6.3.0 it was blank. When I launched the 7.0.0 code there were a bunch of shaders being used.....</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Rick</div><div><br></div><div><br>On Feb 23, 2016, at 11:58 AM, Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>> wrote:<br><br></div><div><blockquote type="cite"><div><div dir="ltr">Hmm something is really odd there. 16600 points/normals is trivially small. Even if you had 100 actors each with 16600 points that would be small. There are a couple ways to debug something like this. One is to go old school and sprinkle<div><br></div><div><div> vtkOpenGLCheckErrorMacro("failed after something");</div></div><div><br></div><div>throughout the code to see where the issue is. Another option on windows is to use </div><div><br></div><div><a href="https://github.com/dtrebilco/glintercept" target="_blank">https://github.com/dtrebilco/glintercept</a><br></div><div><br></div><div>which produces a log showing the specific call that caused the problem and when run in the debugger it will break on opengl errors. There are other tools with similar capabilities available as well. </div><div><br></div><div>If you can boil it down to something smaller I could try it out, my dev systems are all Qt4 though...</div><div><br></div><div>Ken</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 23, 2016 at 11:37 AM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>There are 16600 points and 16600 normals in each model, I'm using Qt 5.5 and there are four of these models - 1 in each renderview - (Sagital, Axial, Coronal, etc). Each model is composed of surfaces created with triangle strips.</div><div><br></div><div>Each model contains a number of actors for each surface, (variable, depends on anatomy) put together into an assembly.</div><div><br></div><div>It's a medical application. Works fine in VTK 6.3.0 </div><div><br></div><div>NVidia quadro K5200<br>Graphics Card should be beefy enough.</div><div><br></div><div>Rick</div><div><br></div><div><br>On Feb 22, 2016, at 09:44 PM, Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>> wrote:<br><br></div><div><blockquote type="cite"><div><div dir="ltr">Out of memory is an unusual one. Maybe the mesh is too big to load all at once in the new backend. How big is the mesh you are trying to render (number of points, number of triangles) and does it use cell colors or cell normals? That would help me get a feel if it is really just exceeding what the card can handle.<div><br></div><div>Thanks</div><div>Ken</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 6:50 PM, Richard Frank <span dir="ltr"><<a href="mailto:rickfrank@me.com" target="_blank">rickfrank@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br> <br> I get the following errors ( and my fairly complex polygon mesh fails to render ) when using VTK 7.0.<br> ERROR: In<br> <br> \vtk770\Rendering\OpenGL2\vtkOpenGLPolyDataMapper.cxx, line 1440<br> vtkOpenGLPolyDataMapper (0000016618EFD490): failed after UpdateShader 1 OpenGL errors detected<br> 0 : (1282) Invalid operation<br> <br> <br> <br> ERROR: In \vtk770\Rendering\OpenGL2\vtkOpenGLActor.cxx, line 91<br> vtkOpenGLActor (0000016619E228B0): failed after Render 1 OpenGL errors detected<br> 0 : (1285) Out of memory<br> <br> <br> This is code is " works " fine in 6.3.0.<br> <br> I'm using an NVidia quadro K5200 with 8G.<br> <br> Any tips on how to debug this?<br> Thanks<br> <br> Rick<br> <br> <br> Sent from my iPad<br> _______________________________________________<br> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br> <br> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br> <br> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br> <br> Follow this link to subscribe/unsubscribe:<br> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br></blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><span><span color="#888888" style="color:#888888"><div><br></div>-- <br><div>Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a>518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:'tahoma',sans-serif">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you.</span></div></div></div></span></span></font></span></div></div></blockquote></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:'tahoma',sans-serif">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you.</span></div></div></div></font></span></div></div></blockquote></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</div>