<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks, Aashish.
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">If you were getting invalid pixel format but rendering was working then I think the real problem was there and somehow it was working. <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Can you send us the output of glxinfo? Also, for testing, can you call Render() on Renderer before you call initialize()? <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">When I render before I initialize, I get the same type of error.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I believe I am running into the issue described at the end of this page:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://www.vtk.org/Wiki/VTK/OpenGL_Errors">http://www.vtk.org/Wiki/VTK/OpenGL_Errors</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">To test this, I will rebuild VTK with OpenGL error reporting disabled, and see if this fixes it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Jan 30, 2014 at 3:40 PM, Boxer, Aaron <<a href="mailto:Aaron.Boxer@uhn.ca" target="_blank">Aaron.Boxer@uhn.ca</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">More details:<br>
<br>
The very first error I get is when I initialize my interactor:<br>
<br>
Here is the code:<br>
<br>
////////////////////////////////////////////////////////////////////////////////////<br>
<br>
if ( self = [super initWithFrame:frame])<br>
<br>
{<br>
<br>
_renderer = vtkOpenGLRenderer::New();<br>
<br>
_cocoaRenderWindow = vtkCocoaRenderWindow::New();<br>
<br>
_cocoaRenderWindow->SetWindowId( self);<br>
<br>
<br>
_cocoaRenderWindow->AddRenderer(_renderer);<br>
<br>
_interactor = vtkCocoaRenderWindowInteractor::New();<br>
<br>
<br>
<br>
_interactor->SetRenderWindow(_cocoaRenderWindow);<br>
<br>
<br>
[self setVTKRenderWindow:_cocoaRenderWindow];<br>
<br>
<br>
_interactor->Initialize();<br>
<br>
}<br>
<br>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>
<br>
<br>
and here is the error:<br>
<br>
<br>
<br>
2014-01-30 15:37:15.430 OsiriX[65632:303] invalid pixel format<br>
<br>
2014-01-30 15:37:15.430 OsiriX[65632:303] invalid context<br>
<br>
ERROR: In /Users/aaron/src/VTK/Rendering/OpenGL/vtkOpenGLRenderer.cxx, line 1202<br>
<br>
vtkOpenGLRenderer (0x10e09ab00): failed after Clear 1 OpenGL errors detected<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
0 : (1286) Invalid framebuffer operation<br>
<br>
<br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal">In the old code, I would get an "invalid pixel format" error, but it would still render.<br>
<br>
<br>
Cheers,<br>
Aaron<br>
<br>
________________________________<br>
From: vtkusers [<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] on behalf of Boxer, Aaron<br>
Sent: Thursday, January 30, 2014 3:34 PM<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><o:p></o:p></p>
<div>
<p class="MsoNormal">Subject: Re: [vtkusers] another vtk error<br>
<br>
Perhaps this is similar to the following thread:<br>
<br>
<a href="http://vtk.1045678.n5.nabble.com/VTK-OpenGL-errors-td5724237.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-OpenGL-errors-td5724237.html</a><br>
<br>
OpenGL error checking<br>
<br>
From: vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of Boxer, Aaron<br>
Sent: Thursday, January 30, 2014 3:25 PM<br>
To: Aashish Chaudhary<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] another vtk error<br>
<br>
Thanks, Aashish. I am running OSX 10.8 Mountain Lion with the master version of VTK.<br>
OSX is running in a VM. I have a version of my software linked to 5.8 that runs fine on the VM.<br>
<br>
Aaron<br>
<br>
<br>
<br>
From: Aashish Chaudhary [mailto:<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>]<br>
Sent: Thursday, January 30, 2014 3:20 PM<br>
To: Boxer, Aaron<o:p></o:p></p>
</div>
<p class="MsoNormal">Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><mailto:<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Subject: Re: [vtkusers] another vtk error<br>
<br>
Can you provide more information about the system? What OS? Version of VTK (assuming 6.1), Graphics Card etc? (May be you did already in some other email?)<br>
<br>
Also, it would be helpful if you can post some same code and data.<br>
<br>
Thanks,<br>
Aashish<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">On Thu, Jan 30, 2014 at 3:02 PM, Boxer, Aaron <<a href="mailto:Aaron.Boxer@uhn.ca">Aaron.Boxer@uhn.ca</a><mailto:<a href="mailto:Aaron.Boxer@uhn.ca">Aaron.Boxer@uhn.ca</a>>> wrote:<br>
Let me add that this used to work with VTK 5.8<br>
<br>
-----Original Message-----<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">From: vtkusers [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a><mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>>] On Behalf Of Boxer, Aaron<br>
Sent: Thursday, January 30, 2014 3:02 PM<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><mailto:<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
Subject: [vtkusers] another vtk error<br>
<br>
I am seeing another error when I try to render:<br>
<br>
<br>
<br>
ERROR: In /Users/aaron/src/VTK/Rendering/VolumeOpenGL/vtkOpenGLRayCastImageDisplayHelper.cxx, line 554<br>
<br>
vtkOpenGLRayCastImageDisplayHelper (0x10e3de0c0): failed after RenderTextureInternal 1 OpenGL errors detected<br>
<br>
0 : (1286) Invalid framebuffer operation<br>
<br>
<br>
Any clues as to what could cause this? I (not surprisingly) do not see any data displayed, just black pixels.<br>
<br>
<br>
Thanks,<br>
<br>
Aaron<br>
<br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
_______________________________________________<o:p></o:p></p>
</div>
<p class="MsoNormal">Powered by <a href="http://www.kitware.com" target="_blank">
www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
_______________________________________________<o:p></o:p></p>
</div>
<p class="MsoNormal">Powered by <a href="http://www.kitware.com" target="_blank">
www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
<br>
--<br>
| Aashish Chaudhary<br>
| R&D Engineer<br>
| Kitware Inc.<o:p></o:p></p>
</div>
<p class="MsoNormal">| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.<br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.<br>
If you have received this e-mail in error, please contact the sender and delete all copies.<br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <br>
| Aashish Chaudhary <br>
| R&D Engineer <br>
| Kitware Inc. <br>
| <a href="http://www.kitware.com">www.kitware.com</a> <o:p></o:p></p>
</div>
</div>
<p><br>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. <br>
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. <br>
If you have received this e-mail in error, please contact the sender and delete all copies. <br>
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.</p></body>
</html>