[vtkusers] another vtk error
Boxer, Aaron
Aaron.Boxer at uhn.ca
Fri Jan 31 13:22:23 EST 2014
Thanks, Aashish.
If you were getting invalid pixel format but rendering was working then I think the real problem was there and somehow it was working.
Can you send us the output of glxinfo? Also, for testing, can you call Render() on Renderer before you call initialize()?
When I render before I initialize, I get the same type of error.
I believe I am running into the issue described at the end of this page:
http://www.vtk.org/Wiki/VTK/OpenGL_Errors
To test this, I will rebuild VTK with OpenGL error reporting disabled, and see if this fixes it.
Thanks
On Thu, Jan 30, 2014 at 3:40 PM, Boxer, Aaron <Aaron.Boxer at uhn.ca<mailto:Aaron.Boxer at uhn.ca>> wrote:
More details:
The very first error I get is when I initialize my interactor:
Here is the code:
////////////////////////////////////////////////////////////////////////////////////
if ( self = [super initWithFrame:frame])
{
_renderer = vtkOpenGLRenderer::New();
_cocoaRenderWindow = vtkCocoaRenderWindow::New();
_cocoaRenderWindow->SetWindowId( self);
_cocoaRenderWindow->AddRenderer(_renderer);
_interactor = vtkCocoaRenderWindowInteractor::New();
_interactor->SetRenderWindow(_cocoaRenderWindow);
[self setVTKRenderWindow:_cocoaRenderWindow];
_interactor->Initialize();
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
and here is the error:
2014-01-30 15:37:15.430 OsiriX[65632:303] invalid pixel format
2014-01-30 15:37:15.430 OsiriX[65632:303] invalid context
ERROR: In /Users/aaron/src/VTK/Rendering/OpenGL/vtkOpenGLRenderer.cxx, line 1202
vtkOpenGLRenderer (0x10e09ab00): failed after Clear 1 OpenGL errors detected
0 : (1286) Invalid framebuffer operation
In the old code, I would get an "invalid pixel format" error, but it would still render.
Cheers,
Aaron
________________________________
From: vtkusers [vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>] on behalf of Boxer, Aaron
Sent: Thursday, January 30, 2014 3:34 PM
To: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: Re: [vtkusers] another vtk error
Perhaps this is similar to the following thread:
http://vtk.1045678.n5.nabble.com/VTK-OpenGL-errors-td5724237.html
OpenGL error checking
From: vtkusers [mailto:vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>] On Behalf Of Boxer, Aaron
Sent: Thursday, January 30, 2014 3:25 PM
To: Aashish Chaudhary
Cc: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: Re: [vtkusers] another vtk error
Thanks, Aashish. I am running OSX 10.8 Mountain Lion with the master version of VTK.
OSX is running in a VM. I have a version of my software linked to 5.8 that runs fine on the VM.
Aaron
From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com<mailto:aashish.chaudhary at kitware.com>]
Sent: Thursday, January 30, 2014 3:20 PM
To: Boxer, Aaron
Cc: vtkusers at vtk.org<mailto:vtkusers at vtk.org><mailto:vtkusers at vtk.org<mailto:vtkusers at vtk.org>>
Subject: Re: [vtkusers] another vtk error
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?)
Also, it would be helpful if you can post some same code and data.
Thanks,
Aashish
On Thu, Jan 30, 2014 at 3:02 PM, Boxer, Aaron <Aaron.Boxer at uhn.ca<mailto:Aaron.Boxer at uhn.ca><mailto:Aaron.Boxer at uhn.ca<mailto:Aaron.Boxer at uhn.ca>>> wrote:
Let me add that this used to work with VTK 5.8
-----Original Message-----
From: vtkusers [mailto:vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org><mailto:vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>>] On Behalf Of Boxer, Aaron
Sent: Thursday, January 30, 2014 3:02 PM
To: vtkusers at vtk.org<mailto:vtkusers at vtk.org><mailto:vtkusers at vtk.org<mailto:vtkusers at vtk.org>>
Subject: [vtkusers] another vtk error
I am seeing another error when I try to render:
ERROR: In /Users/aaron/src/VTK/Rendering/VolumeOpenGL/vtkOpenGLRayCastImageDisplayHelper.cxx, line 554
vtkOpenGLRayCastImageDisplayHelper (0x10e3de0c0): failed after RenderTextureInternal 1 OpenGL errors detected
0 : (1286) Invalid framebuffer operation
Any clues as to what could cause this? I (not surprisingly) do not see any data displayed, just black pixels.
Thanks,
Aaron
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com><http://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
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com><http://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
--
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com<http://www.kitware.com><http://www.kitware.com>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
_______________________________________________
Powered by www.kitware.com<http://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
--
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com<http://www.kitware.com>
This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient.
Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited.
If you have received this e-mail in error, please contact the sender and delete all copies.
Opinions, conclusions or other information contained in this e-mail may not be that of the organization.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140131/85f41c21/attachment.html>
More information about the vtkusers
mailing list