News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

FATAL ERROR: xmalloc() - Could no alloc 32712 bytes, aborting program execution

Started by JuanGP1982, February 04, 2025, 09:58:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JuanGP1982

Good day,
 since the incorporation of the new stable version of Simutrans, it is not possible for me to create new large maps. Any map that approaches dimensions of 10k x 10k or larger automatically fails when created from a map with *png/*ppm extension. This did not happen with previous versions. I have tried with the latest Nightly R11631 and it still gives the same error as with the stable version of Simutrans. It seems that it is something related to the generation of the map and the available memory, but nothing in the hardware or software has changed on my computer. With smaller maps there is no problem and the game is generated without any problems.


prissi

What kind of OS you are running?

Are you using the 32 bit or the 64 bit version? The 64 bit version requires a little more memory but is likely needed for 10k x 10k. The 32 bit version cannot hold more than 3 GB memory which is not enough.

10000 x 10000 needs about 10 GB of memory to create the map as the map is copied several times in memory and back. You could shave some of that off by switching off trees and lakes.

Also, make sure that you are not using a DEBUG build from MSVC using ASAN. This never frees memory and since the tiles are allocated and deallocated several times, it runs out of system memory. However, the release builds for 64 bit on sourceforge should work.

JuanGP1982

I´m running on Win10 64b and using the 64b version of Simutrans. With previous versions of Simutrans I did maps of 10kx10k and superior without problems. With the last update it´s imposible. I´ll give a try the Sourceforge version you´ve mentioned. Thank you very much Prissi!

ceeac

Thanks for the report, this should be fixed in r11632. There was a regression which caused most objects (most importantly ground tiles, ways, trees etc.) to use 4 times as much memory compared to the previous version.

prissi