Page 1 of 1

resizing heightmap

PostPosted: Wed Jan 27, 2016 11:00 am
by mistahgrizzly
every time i try to resize the height map that i imported is going to 50% and then i get this
CMapWrap::SetPixelFast error:
- call to CMosaicMap::SetPixel failed
CMapWrap::SetPixel error:
- call to SetPixelFast failed for x0y0 in 8192x4745
calc_map_Resize error:
- call to CMapWrap::SetPixel failed (2)
CMapWrap::SetHorizScale error
- map is busy
CMapWrap::SetHorizScale error
- map is busy
i use the dev version

Re: resizing heightmap

PostPosted: Thu Jan 28, 2016 12:08 pm
by Aaron
Hi mistahgrizzly,

I apologise for this fault. I've reproduced it, and will post a fix as soon as possible. I'll post back here when ready. Thanks for the bug report.

Best regards,
Aarob.

Re: resizing heightmap

PostPosted: Fri Jan 29, 2016 12:57 pm
by Aaron
Hi Mistahgrizzly,

I've included the fix in the latest dev build (16.01 build 3), which is on the Pro downloads page now. This fault occurred for maps larger than 2048 x 2048 and smaller than 8192x8192, where L3DT uses a memory-mapped page file to store the map data (smaller maps are in memory, larger maps are paged to disk using mosaic maps). The recent update I did to use non-contiguous memory was not properly applied to the memory-mapped case, and I neglected to test a map in this size range (I think I was running 16k x 16k tests at the time.) Anyway, resizing should now complete OK.

Please note that you may get a set of errors during the mipmap generation after the resize. These errors complain about tile lock counts during tile saving, but these don't stop calculations or prevent saving, so you can safely ignore them. I will try to debug those errors now, but it might take a few more days.

Thanks again for the bug report.

Best regards,
Aaron.