[32bit only] Bad allocation error crashes
Posted: Sun Nov 15, 2015 17:20
I'm using latest Krock's build of minetest-0.4.13-4434498 (13 Nov 2015) 32bit + today's minetest_game on Windows 7 64bit, if I walk around long enough, usually 30-60 min, game memory usage will grow up to 1.6 GB and crash after that giving me those errors. I have 8 GB of RAM and view range is 180-240 nodes and scenery is very very rich with lots of different forests and mountains. In less crowded areas I have steady 800-1000mb memory usage and no crash.
If it is "low memory" crash... then why MT is not unloading blocks away to be within 32bit limits?
BTW, you can avoid this problem in a different ways:
1) use 64bit OS and 64bit build of minetest (default download anyway) -- best option
2) lower client_mapblock_limit in minetest.conf;
Example #1
Example #2:
On a side note, I test it on a very nice seed, with lots of forests and stuff, screenshot of the place:
If it is "low memory" crash... then why MT is not unloading blocks away to be within 32bit limits?
BTW, you can avoid this problem in a different ways:
1) use 64bit OS and 64bit build of minetest (default download anyway) -- best option
2) lower client_mapblock_limit in minetest.conf;
Example #1
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
2015-11-15 18:32:16: ERROR[Emerge-0]: An unhandled exception occurred: bad allocation
2015-11-15 18:32:16: ERROR[Emerge-0]: In thread b7c:
2015-11-15 18:32:16: ERROR[Emerge-0]: ..\..\minetest\src\emerge.cpp:2c1: EmergeThread::run: A fatal error occured: bad allocation
2015-11-15 18:32:16: ERROR[Emerge-0]: Debug stacks:
2015-11-15 18:32:16: ERROR[Emerge-0]: DEBUG STACK FOR THREAD 604:
2015-11-15 18:32:16: ERROR[Emerge-0]: #0 UpdateThread::run
2015-11-15 18:32:16: ERROR[Emerge-0]: DEBUG STACK FOR THREAD b7c:
2015-11-15 18:32:16: ERROR[Emerge-0]: #0 EmergeThread::run
2015-11-15 18:32:16: ERROR[Emerge-0]: DEBUG STACK FOR THREAD 1344:
2015-11-15 18:32:16: ERROR[Emerge-0]: #0 UpdateThread::run
2015-11-15 18:32:16: ERROR[Emerge-0]: DEBUG STACK FOR THREAD 15a8:
2015-11-15 18:32:16: ERROR[Emerge-0]: #0 main
2015-11-15 18:32:16: ERROR[Emerge-0]: #1 ClientMap::renderMap
2015-11-15 18:32:16: ERROR[Emerge-0]: DEBUG STACK FOR THREAD 15cc:
2015-11-15 18:32:16: ERROR[Emerge-0]: #0 ServerThread::run
2015-11-15 18:32:16: ERROR[Emerge-0]: #1 Server::Receive
Example #2:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
2015-11-15 19:11:54: ERROR[MeshUpdate]: An unhandled exception occurred: bad allocation
2015-11-15 19:11:54: ERROR[MeshUpdate]: In thread 1688:
2015-11-15 19:11:54: ERROR[MeshUpdate]: e:\programme\mt_compiler\minetest\src\util/thread.h:e2: UpdateThread::run: A fatal error occured: bad allocation
2015-11-15 19:11:54: ERROR[MeshUpdate]: Debug stacks:
2015-11-15 19:11:54: ERROR[MeshUpdate]: DEBUG STACK FOR THREAD 53c:
2015-11-15 19:11:54: ERROR[MeshUpdate]: #0 main
2015-11-15 19:11:54: ERROR[MeshUpdate]: #1 ClientMap::renderMap
2015-11-15 19:11:54: ERROR[MeshUpdate]: DEBUG STACK FOR THREAD 122c:
2015-11-15 19:11:54: ERROR[MeshUpdate]: #0 EmergeThread::run
2015-11-15 19:11:54: ERROR[MeshUpdate]: DEBUG STACK FOR THREAD 139c:
2015-11-15 19:11:54: ERROR[MeshUpdate]: #0 ServerThread::run
2015-11-15 19:11:54: ERROR[MeshUpdate]: #1 Server::Receive
2015-11-15 19:11:54: ERROR[MeshUpdate]: DEBUG STACK FOR THREAD 161c:
2015-11-15 19:11:54: ERROR[MeshUpdate]: #0 UpdateThread::run
2015-11-15 19:11:54: ERROR[MeshUpdate]: DEBUG STACK FOR THREAD 1688:
2015-11-15 19:11:54: ERROR[MeshUpdate]: #0 UpdateThread::run
On a side note, I test it on a very nice seed, with lots of forests and stuff, screenshot of the place: