Mapsplitter gives error: vector subscript out of range

wolfmanfx

26-04-2006 01:22:47

Line: 756
...\include\vector

i try to splitt a 1024x1024 png heightmap after finishing the lightmap calc it say mapcalc and the error come.


GroupName=PLSM2

LandScapeFileName=arpes_world
LandScapeExtension=png
Width=1024
Height=1024

OutDirectory=../Media/paginglandscape2/terrains/LandScapeFileName

HeightMap=yes


BaseMap=yes
CoverageMap=yes
AlphaMaps=yes

LightMap=yes
Sunx=0.0f
Suny=0.88f
Sunz=0.47f
Ambient=0.5f
Diffuse=0.5f
Blur=0.0f

MiniMap=yes
MiniMapWidth=64
MiniMapHeight=64

NumMatHeightSplat=4

MaterialHeight1=0
MaterialHeight2=7
MaterialHeight3=15

SplatFilename0=splatting_sand.png
SplatFilename1=splatting_grass.png
SplatFilename2=splatting_rock.png
SplatFilename3=splatting_snow.png


Use the latest from CVS i have compiled it 2 hours ago other map works well i mean all the demo maps.... its png saved in photoshop cs 2

wolfmanfx

26-04-2006 01:47:44

Another crash i load the ST_Generic destroy it and create the PLSM2 scenemanager when i do this 5 times then a assert pops up


p && !p->isLoaded()
OgrePagingLandScapePageManager.cpp
Line: 611

// We to Load nearest page in non-empty queue
if (!mPageLoadQueue.empty ())
{
// We to Load nearest page in non-empty queue
PagingLandScapePage *p = mPageLoadQueue.find_nearest (pos);
assert (p && !p->isLoaded ());
assert (!p->mIsTextureLoading && !p->mIsPreLoading);
p->load ();

p->mIsLoading = false;
mLoadedPages.push_back (p);
mTextureLoadedPages.remove (p);
mNextQueueFrameCount = mPageLoadInterval;
}

tuan kuranes

26-04-2006 08:48:26

I need more precise info :

1) error line in plsm2 source would be more helpful... can you launch mapsplitter in debug mode and find in plsm2 where it goes out of range ?
2) which assert was raised ?

wolfmanfx

26-04-2006 19:11:10

!) i have changed from png to bmp heightmap(8bit) yet the map splitter works :)

2)
this assert assert (p && !p->isLoaded ()); i have tracked !p->isLoaded () <---this the bad guy hope it helps

tuan kuranes

27-04-2006 07:46:04

1) png was 8, 16, 24 or 32 bits ?
2) you just close and reload plsm2 5 times and it gives that... does it gives that using a demo map ? (I have to find reproducable steps...)

wolfmanfx

27-04-2006 09:11:54

1) it was 8 bit
2) with the new heightmap(bmp) it dont crash anymore but i try to reproduce this error again :) and post it