Crash on running demo

danharibo

26-09-2008 18:19:29

The demo is crashing on this line of "OgrePagingLandscapeTexture.cpp"
{
// if it's an Image Texture mode
mTextures[channel] = texMgr->getByName (texName);
PLSM2_ASSERT (!mTextures[channel].isNull() &&
String(texName + " is missing").c_str());
This one here --> mBuffers[channel] = mTextures[channel]->getBuffer();
loadColorTexture (texName, channel);
channel++;
imageLoaded = true;
}


This is the last lines of plsm2.log:
18:08:26: Parsing script DebugOverlay.overlay
18:08:26: Parsing script PagingLandScape.overlay
18:08:26: Parsing script PagingLandScape2.overlay
18:08:26: Finished parsing scripts for resource group PLSM2
18:08:26: Initialising resource group PLSM2
18:08:26: Added resource location '../../../Media/paginglandscape2/terrains/TsmTerrain' of type 'FileSystem' to resource group 'PLSM2'
18:08:26: Initialising resource group PLSM2
18:08:26: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
18:08:26: Texture: cursor.png: Loading 1 faces(PF_R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,32x32x1.
18:08:26: Texture: terrain_texture.0.0.png: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
18:08:26: Texture: Detail3.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
18:08:26: Texture: terrain.Light.0.0.png: Loading 1 faces(PF_L8,512x512x1) with 9 generated mipmaps from Image. Internal format is PF_L8,512x512x1.


I've tried searching but I couldn't find anything to do with this problem

danharibo

28-09-2008 01:46:16

erm, ok, I've got the map "loaded", but PLSM2 crashes with the error Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

the debugger points to here:
else if (!coverageLoaded && !baseLoaded && texType == "Base")
{
mTextures[channel] = texMgr->getByName (texName);
PLSM2_ASSERT (!mTextures[channel].isNull() &&
String(texName + " is missing").c_str());
mBuffers[channel] = mTextures[channel]->getBuffer();

loadColorTexture (texName, channel);
channel++;
baseLoaded = true;