[vtkusers] VTK 7.1 error "Shader failed to compile" with GPU Volume rendering and clipping planes

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[vtkusers] VTK 7.1 error "Shader failed to compile" with GPU Volume rendering and clipping planes

Simon ESNEAULT-2
Hello,

After the migration to VTK 7.1, we get a crash in the shader program (it can't be build) when trying to use clipping planes on GPU volume rendering mapper

The error is :
Error:      ERROR: In C:\Dev\ES-Externals\superbuild\VTK\src\Rendering\OpenGL2\vtkShaderProgram.cxx, line 395
vtkShaderProgram (000001FEBFB646D0): 0(474) : error C1038: declaration of "temp" conflicts with previous declaration at 0(426)

it appears the variable Vec4 temp is declared twice...

Here is the full log
https://paste.ee/p/FsdWx

On Windows 10, VTK is built in 64 bits with Visual Studio 2013 along with Qt 5.3.2 and other libraries.

Ring a bell to anyone ?

Thanks
Simon

--
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [vtkusers] VTK 7.1 error "Shader failed to compile" with GPU Volume rendering and clipping planes

Simon ESNEAULT-2
Hello,

I've found the error, it is located in vtkVolumeShaderComposer.h, if someone use GPU volume rendering, cropping and clipping at the same time, the variable vec4 temp gets declared twice.
Renaming 'temp' to 'temp_clip' fix the crash.

HTH someone ;)

Simon

2017-03-08 10:35 GMT+01:00 Simon ESNEAULT <[hidden email]>:
Hello,

After the migration to VTK 7.1, we get a crash in the shader program (it can't be build) when trying to use clipping planes on GPU volume rendering mapper

The error is :
Error:      ERROR: In C:\Dev\ES-Externals\superbuild\VTK\src\Rendering\OpenGL2\vtkShaderProgram.cxx, line 395
vtkShaderProgram (000001FEBFB646D0): 0(474) : error C1038: declaration of "temp" conflicts with previous declaration at 0(426)

it appears the variable Vec4 temp is declared twice...

Here is the full log
https://paste.ee/p/FsdWx

On Windows 10, VTK is built in 64 bits with Visual Studio 2013 along with Qt 5.3.2 and other libraries.

Ring a bell to anyone ?

Thanks
Simon

--
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------



--
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [vtkusers] VTK 7.1 error "Shader failed to compile" with GPU Volume rendering and clipping planes

Simon ESNEAULT-2
Hello,
I created a merge request here
https://gitlab.kitware.com/vtk/vtk/merge_requests/2583

Thanks,
Simon

2017-03-10 14:52 GMT+01:00 Simon ESNEAULT <[hidden email]>:
Hello,

I've found the error, it is located in vtkVolumeShaderComposer.h, if someone use GPU volume rendering, cropping and clipping at the same time, the variable vec4 temp gets declared twice.
Renaming 'temp' to 'temp_clip' fix the crash.

HTH someone ;)

Simon

2017-03-08 10:35 GMT+01:00 Simon ESNEAULT <[hidden email]>:
Hello,

After the migration to VTK 7.1, we get a crash in the shader program (it can't be build) when trying to use clipping planes on GPU volume rendering mapper

The error is :
Error:      ERROR: In C:\Dev\ES-Externals\superbuild\VTK\src\Rendering\OpenGL2\vtkShaderProgram.cxx, line 395
vtkShaderProgram (000001FEBFB646D0): 0(474) : error C1038: declaration of "temp" conflicts with previous declaration at 0(426)

it appears the variable Vec4 temp is declared twice...

Here is the full log
https://paste.ee/p/FsdWx

On Windows 10, VTK is built in 64 bits with Visual Studio 2013 along with Qt 5.3.2 and other libraries.

Ring a bell to anyone ?

Thanks
Simon

--
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------



--
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------



--
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Loading...