tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.11k stars 527 forks source link

Export Failed bad allocation #2362

Open ferranferrer opened 10 years ago

ferranferrer commented 10 years ago

Hi everyone.

My sistem is 4 x Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz 8.6GB RAM / win32 / TileMill 0.10.1

I'm creating a MbTiles from a big shapefile and all processes fails with a 'bad allocation' flag error. The shapefile is 650 Mb and covers all US. I have repaired topology and created an index using ArcGis. This shp provide from the union of two, particularly I don't like the polygon estructure because there a lot of overlayed polygons, no donuts-polygons, but I sorted the rows in order the first to be rendered is up, and I have simplifyed the vertexs because previous size was 1 Gb.

This is the log file for the process:


[tilemill] Client Error: Uncaught TypeError: Cannot read property 'lon' of undefined [tilemill] at http://localhost:20009/assets/bones/all.js:5352 [tilemill] [tilemill-ui] Note: Unknown option "updatesVersion" in config file. [tilemill] [tilemill-ui] Note: Unknown option "updatesTime" in config file. [tilemill] [tilemill-ui] [millstone] processing style 'style.mss' [tilemill] [tilemill-ui] [millstone] processing layer 'SHP' [tilemill] [tilemill-ui] [millstone] processing layer 'ne110madmin0countrie' [tilemill] [tilemill-ui] [millstone] finished processing 'C:\Users\St256\Documents\MapBox\project\AL_ROGERS' [tilemill] [tilemill-ui] Persisting state in C:\Users\St256\Documents\MapBox\export\AL_ROGERS_adb119.export every minute [tilemill] [tilemill-ui] Rendering export [tilemill] [tilemill-ui] 5/6/12: bad allocation [tilemill] [tilemill-ui] FATAL ERROR: Evacuation Allocation failed - process out of memory [tilemill] Export process failed

[tilemill] [tilemill] no crash logs found

When I do a large export the logfile says the same but the list is bigger:


5/6/12: bad allocation [tilemill] [tilemill-ui] 5/6/13: bad allocation [tilemill] [tilemill-ui] 5/7/12: bad allocation [tilemill] [tilemill-ui] 5/7/13: bad allocation [tilemill] [tilemill-ui] 5/6/12: bad allocation [tilemill] [tilemill-ui] 5/6/13: bad allocation [tilemill] [tilemill-ui] 5/7/12: bad allocation [tilemill] [tilemill-ui] 5/7/13: bad allocation [tilemill] [tilemill-ui] 6/14/21: bad allocation [tilemill] [tilemill-ui] 6/14/21: bad allocation [tilemill] [tilemill-ui] 6/9/22: bad allocation [tilemill] [tilemill-ui] 6/9/23: bad allocation [tilemill] [tilemill-ui] 6/9/22: bad allocation [tilemill] [tilemill-ui] 6/9/23: bad allocation [tilemill] [tilemill-ui]

6/10/22: bad allocation

My question is: Is really a problem of memory resources or the 'K5/7/13' code means that there is something lost in that position?

I have installed mapnik and tried shapeindex but computer says 'method not found'.

Is any other way to enhance memory usage?

Right now the solution is to export pieces of 10x5 degrees, each take 7 min, but the processis very slow.

If you have any suggestion, this would be well received.

Thanks for your attention,

Ferran

ferranferrer commented 10 years ago

An updated, I have partially resolved the problem by allocating more memory to the application, till 4 Gb. I was surprised that Tilemill still beig a 32 bit application and can't use all the RAM memory in system. My solution was to use this application http://www.ntcore.com/4gb_patch.php. Automatically change memory usage limit from 2 to 4. But I have 8 Gb installed, Could I set to 8Gb? Thanks