[help] Crash MapSplitter

barnabe42

02-10-2005 12:59:06

I currently using VC 7.1 , with OGRE 1.0.5 Source for Windows , Ogre SDK compatible source of PLSM2 ( http://tuan.kuranes.free.fr/paginglandscape.zip ).

Everything is compiling, no errors at all .

My trouble is that Mapsplitter crash and display the following lines :


normal Map Calc :
alpes.HN.raw
Map Calc :
alpes.Base.png


mapsplitter.log doesn't give me any clues either



14:46:41: Creating resource group General
14:46:41: Registering ResourceManager for type Material
14:46:41: Registering ResourceManager for type Mesh
14:46:41: Registering ResourceManager for type Skeleton
14:46:41: Loading library OgrePlatform.dll
14:46:41: OverlayElementFactory for type Panel registered.
14:46:41: OverlayElementFactory for type BorderPanel registered.
14:46:41: OverlayElementFactory for type TextArea registered.
14:46:41: Registering ResourceManager for type Font
14:46:41: ArchiveFactory for archive type FileSystem registered.
14:46:41: ArchiveFactory for archive type Zip registered.
14:46:41: DevIL version: Developer's Image Library (DevIL) 1.6.5
14:46:41: DevIL image formats: bmp dib cut dcx dds gif ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
14:46:41: Registering ResourceManager for type HighLevelGpuProgram
14:46:41: Loading library .\RenderSystem_Direct3D7
14:46:41: Direct3D7 Rendering Subsystem created.
14:46:41: ----- DirectDraw Detection Starts
14:46:41: Detected DirectDraw driver Primary Display Driver
14:46:41: Detected DirectDraw driver RADEON 9800 PRO
14:46:41: ----- DirectDraw Detection Ends
14:46:41: Loading library .\RenderSystem_Direct3D9
14:46:41: D3D9 : Direct3D9 Rendering SubSystem created.
14:46:41: D3D9: Driver Detection Starts
14:46:41: D3D9: Driver Detection Ends
14:46:41: Loading library .\RenderSystem_GL
14:46:41: OpenGL Rendering Subsystem created.
14:46:41: Loading library .\Plugin_ParticleFX
14:46:41: Particle Emitter Type 'Point' registered
14:46:41: Particle Emitter Type 'Box' registered
14:46:41: Particle Emitter Type 'Ellipsoid' registered
14:46:41: Particle Emitter Type 'Cylinder' registered
14:46:41: Particle Emitter Type 'Ring' registered
14:46:41: Particle Emitter Type 'HollowEllipsoid' registered
14:46:41: Particle Affector Type 'LinearForce' registered
14:46:41: Particle Affector Type 'ColourFader' registered
14:46:41: Particle Affector Type 'ColourFader2' registered
14:46:41: Particle Affector Type 'ColourImage' registered
14:46:41: Particle Affector Type 'ColourInterpolator' registered
14:46:41: Particle Affector Type 'Scaler' registered
14:46:41: Particle Affector Type 'Rotator' registered
14:46:41: Loading library .\Plugin_BSPSceneManager
14:46:41: Registering ResourceManager for type BspLevel
14:46:41: Loading library .\Plugin_CgProgramManager
14:46:42: Loading library .\Plugin_PagingLandScapeSceneManager2
14:46:42: Loading library .\Plugin_DotSceneManager
14:46:42: *-*-* OGRE Initialising
14:46:42: *-*-* Version 1.0.5 (Azathoth)
14:46:42: Creating resource group Bootstrap
14:46:42: Added resource location '../../../Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
14:46:42: Added resource location '../../../Media' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/fonts' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/materials/programs' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/materials/scripts' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/materials/textures' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/models' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/overlays' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/particle' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/gui' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/dot' of type 'FileSystem' to resource group 'General'
14:46:42: Added resource location '../../../Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
14:46:42: Added resource location '../../../Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
14:46:42: Added resource location '../../../Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
14:46:42: Added resource location '../../../Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
14:46:42: Added resource location '../../../Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
14:46:42: Added resource location '../../../Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
14:46:42: Added resource location '../../../Media/TestLevel.zip' of type 'Zip' to resource group 'General'
14:46:42: Creating resource group PLSM2
14:46:42: Added resource location '../../../Media/paginglandscape' of type 'FileSystem' to resource group 'PLSM2'
14:46:42: Added resource location '../../../Media/paginglandscape/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
14:46:42: Added resource location '../../../Media/paginglandscape/gcanyon_height_4k2k' of type 'FileSystem' to resource group 'PLSM2'
14:46:42: Added resource location '../../../Media/paginglandscape/alpes' of type 'FileSystem' to resource group 'PLSM2'
14:46:42: Added resource location '../../../Media/paginglandscape/ps_height_1k' of type 'FileSystem' to resource group 'PLSM2'
14:46:42: Added resource location '../../../Media/paginglandscape/terragen16bits' of type 'FileSystem' to resource group 'PLSM2'
14:46:42: Added resource location '../../../Media/paginglandscape/splat' of type 'FileSystem' to resource group 'PLSM2'


If you have any idea of what I'm doing wrong.

Thanks

tuan kuranes

03-10-2005 08:38:20

did you try debug mode ?

tuan kuranes

03-10-2005 14:38:56

ok, found the bug.
will commit the fix to CVS.

It's the blur pass that is broken, and wrongly called even if not needed, until patch is available, you can disable it by commenting it in the maputil::processOneMap() at the beginning.

barnabe42

03-10-2005 18:29:41

I tried to put the following lines in comment but It's still crashing, I will try to check more tomorrow

/*const Real Blur = mHeightMapBlurFactor;
if (Blur > 0.0f)
{
Convolver *c = new Convolver (int (Blur));
c->blurReal (mData, mWidth, mHeight);
}*/


Thanks anyway