[vtkusers] Error setting 'vertexMC' in shader VAO and EGL_BAD_DISPLAY

Ken Martin ken.martin at kitware.com
Wed Nov 18 08:14:02 EST 2015


An error on setting an OpenGL attribute in VTK can be due to the attribute
not being used by the shader program or I believe trying to set the
attribute with no data. Maybe other reasons as well. Seeing the shader code
at the time the error occurs is the first step. You can uncomment
vtkOpenGL2PolyDataMapper.cxx in ReplaceShaderValues to print out the
shaders.

On Wed, Nov 18, 2015 at 6:01 AM, Lonni Besançon <lonni.besancon at gmail.com>
wrote:

> Hello,
>
> I am trying to write my own InteractorStyle for android. So far I was
> successful in changing what I wanted to change and creating it. Now I
> wanted
> to add a function that could handle a given rotation/translation given as a
> parameter. Here goes the function:
>
>
> /void myfunction(double* rotation, double* translation){
>     vtkProp3D* prop3D = actor ; // Actor is a variable of the class
>     vtkTransform* t = vtkTransform::New();
>     t->Identity();
>     t->RotateX(rotation[0]);
>     t->RotateY(rotation[1]);
>     t->RotateZ(rotation[2]);
>
>     prop3D->SetUserMatrix(t->GetMatrix());
>
>     vtkRenderWindowInteractor *rwi = this->Interactor;
>     rwi->Render();
> }/
>
> My previous code was working just fine, but now when I call this function I
> get the following errors:
> /
> E/VTK     ( 6271): ERROR: In
> /Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1413
> E/VTK     ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
> 'vertexMC' in shader VAO.
> E/VTK     ( 6271): ERROR: In
> /Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1421
> E/VTK     ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
> 'normalMC' in shader VAO.
> E/VTK     ( 6271): ERROR: In
> /Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1413
> E/VTK     ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
> 'vertexMC' in shader VAO.
> E/VTK     ( 6271): ERROR: In
> /Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1421
> E/VTK     ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
> 'normalMC' in shader VAO.
> E/libEGL  ( 6271): validate_display:254 error 3008 (EGL_BAD_DISPLAY)
> E/VTK     ( 6271): ERROR: In
> /Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 1413
> E/VTK     ( 6271): vtkOpenGLPolyDataMapper (0x4b8e6e90): Error setting
> 'vertexMC' in shader VAO.
> E/VTK     ( 6271): ERROR: In
> /Users/....../Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx, line 142
> /
>
> Note that the application does not crash and that my actor is rotated (by a
> fixed rotation even if I change the values) and that if I start a normal
> interaction with the actor again the application works just fine.
>
> I was therefore wondering what I am doing wrong here.
>
> I have created a post on StackOverflow for a more readable version of the
> code and the errors.
> StackOverflow Post
> <
> http://stackoverflow.com/questions/33778197/vtk-error-setting-vertexmc-in-shader-vao-and-egl-bad-display
> >
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Error-setting-vertexMC-in-shader-VAO-and-EGL-BAD-DISPLAY-tp5735057.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151118/cc516603/attachment.html>


More information about the vtkusers mailing list