realXtend/naali — Issue #258: Tundra crashes when adding parameters to EC_OgreCompositor
Author: cvetan5
Created: 2011-10-20 12:48:22+00:00
State: open
Labels: Mac OS X - specific, Tundra 2

Steps to reproduce the crash:

1. Add an EC_OgreCompositor to an entity
2. Set it to whatever of the available compositing effects (i.e. HDR)
3. put `inRTT=1` inside parameters array. Tundra will crash.

If there is already EC_OgreCompositor added to an entity with some parameters such as the one above, Tundra will crash on start-up as well.
It could be some OpenGL-specific issue on Mac OS X, need to test this if it works OK on GNU/Linux distributions. I did some testing and debugging, put try/catch in between this line and I caught an exception:
`Error: OGRE EXCEPTION(2:InvalidParametersException): Parameter called inRTT does not exist. in GpuProgramParameters::_findNamedConstantDefinition at /Users/davidrogers/Documents/Development/Ogre/ogre-v1-7-1/OgreMain/src/OgreGpuProgramParams.cpp (line 1433)`
yet the program still crashed.
These are the Ogre errors that I get on start-up; They seem that they're related. Also the backtrace.

As a workaround, additional parameter support for EC_OgreCompositor are disabled on Mac OS X.