runtime error in demos

panda

14-07-2008 09:40:37

I am new in ogre and ode programming.
I have ogre 1.4.9 and ode 0.10.0 installed and tested. The ogreode from cvs repository has been compiled without problem except for the uint32 namespace fixed.
Unfortunately, all the demos such as simplescenes, landscape and granturismogre do not work. All of them passed the ogre render setting dialog. Please help me have a look. Any suggestion is appreciated.

The errors are:
SimpleScenes: after a blink of its render window it crashes.
*** Initializing OIS ***
Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
WARNING: Texture instance 'Ogre/ShadowTexture0' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
WARNING: Texture instance 'Ogre/ShadowTexture1' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
Creating viewport on target 'rtt/Ogre/ShadowTexture0/151408920', rendering from camera 'Ogre/ShadowTexture0Cam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
Creating viewport on target 'rtt/Ogre/ShadowTexture1/151410352', rendering from camera 'Ogre/ShadowTexture1Cam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0

ODE INTERNAL ERROR 2: stepsize must be > 0 in dWorldQuickStep()
(0) : fatal error C9999: *** exception during compilation ***
Cg compiler terminated due to fatal error


Landscape:


Parsing script deferreddemo.material
Error at line 22 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/Ground
Error at line 47 of deferreddemo.material: parent material: DeferredShading/Material/TexturedNormalMapped not found for new material:Test13/RockWall
Error at line 81 of deferreddemo.material: parent material: DeferredShading/Material/UntexturedNormalMapped not found for new material:Test13/DeferredAthena
Error in material Test13/DeferredAthena at line 91 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredAthena at line 105 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error at line 114 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/DeferredOgre/Skin
Error at line 141 of deferreddemo.material: parent material: DeferredShading/Material/UntexturedPhong not found for new material:Test13/DeferredOgre/EarRing
Error in material Test13/DeferredOgre/EarRing at line 147 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredOgre/EarRing at line 158 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error at line 166 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/DeferredOgre/Tusks
Error in material Test13/DeferredOgre/Tusks at line 172 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredOgre/Tusks at line 186 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error at line 197 of deferreddemo.material: parent material: DeferredShading/Material/TexturedPhong not found for new material:Test13/DeferredOgre/Eyes
Error in material Test13/DeferredOgre/Eyes at line 203 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Error in material Test13/DeferredOgre/Eyes at line 217 of deferreddemo.material: Invalid fragment_program_ref entry - fragment program has not been defined.
Parsing script deferred_post_multipass.material
.....
Finished parsing scripts for resource group OgreOde
An exception has occured: OGRE EXCEPTION(2:InvalidParametersException): RAW size (125944) does not agree with configuration settings. in HeightmapTerrainPageSource::loadHeightmap at OgreHeightmapTerrainPageSource.cpp (line 82)
Unregistering ResourceManager for type BspLevel
*-*-* OGRE Shutdown


GranTurismOgre just freeze the system after showing a black render window, I have to reset the computer.

mccleive

26-10-2008 17:31:59

I'm able to compile all of the OgreOde sources, but when I try to run a demo I get this error:

---------------------------
An exception has occured!
---------------------------
OGRE EXCEPTION(2:InvalidParametersException): RAW size (125944) does not agree with configuration settings. in HeightmapTerrainPageSource::loadHeightmap at D:\dev\ogre\PlugIns\OctreeSceneManager\src\OgreHeightmapTerrainPageSource.cpp (line 82)
---------------------------


So I'm stuck for the moment. I'll continue to search the forums, but if someone can suggest a solution that would be great.

ChrisC

27-10-2008 06:14:14

I see this error too, which is a shame as its holding me up fully implementing gimpact in all the demos...

guess I'll have to find out how it works and see if I can make some new media, but I'm not too hopeful

If anyone has seen and solved this issue please let us know - clues and guesses welcome too!

mccleive

29-10-2008 21:01:45

I still can't run the Landscape Demo, but it turns out that the GranTurismOgre demo works fine. That's enough for me to know that its working.

MrFabulous

09-02-2009 21:16:39

Me neither. I get the same exception as mccleive when I try to run the LandscapeDemo. I don't wanna mess around too much with the insighs of OgreOde so I'd be thankful for any advice!!

tuan kuranes

10-02-2009 12:51:30

search in demo_landscape where it specify terrain cfg it uses and make sure it's one you have and that correspond to the terrain data file.

djenkins

28-08-2009 23:10:27

Parsing scripts for resource group OgreOde
Finished parsing scripts for resource group OgreOde
An exception has occured: OGRE EXCEPTION(2:InvalidParametersException): RAW size (125944) does not agree with configuration settings. in HeightmapTerrainPageSource::loadHeightmap at OgreHeightmapTerrainPageSource.cpp (line 82)
Unregistering ResourceManager for type BspLevel
*-*-* OGRE Shutdown


I'm having trouble with the Landscape demo as well. Using Ogre v1.6.3, , libODE 0.11.1, and OgreODE from SVN on 20090822.

I'm sure the terrain cfg file is 'landscape2.cfg', as specified in 'src/LandScape.cpp', because I actually have to make an edit to the file to get this error ;)

line 14:
'Heightmap.image=terrain02.raw', should be 'Heightmap.image=Terrain02.raw'

Looking in the OGRE code that throws the error shows:

line74 in PlugIns/OctreeSceneManager/src/OgreHeightmapTerrainPageSource.cpp
// Validate size
size_t numBytes = imgSize * imgSize * mRawBpp;
if (mRawData->size() != numBytes)
{
shutdown();
OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
"RAW size (" + StringConverter::toString(mRawData->size()) +
") does not agree with configuration settings.",
"HeightmapTerrainPageSource::loadHeightmap");
}


While the actual filesize of Terrain02.raw is 125,944 Bytes. I'm not sure what options to try in the terrain cfg file in order to get that filesize, but here's what I've tried so far:

$ echo "513 * 513 * 16" | bc
4210704
$ echo "513 * 513 * 8" | bc
2105352

shanefarris

29-09-2009 20:31:58

Has anyone solved this, because I am having the same issue.