Page 1 of 1
Frequent crashes - "ERROR[main]: Some exception: "bad alloca

Posted:
Wed Dec 04, 2013 20:09
by qwrwed
When playing on VanessaE's Survival Server, minetest 0.4.8 and the versions before it continually crash. The only thing in the debug.txt with "debug_log_level = 1" is
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
Font size: 8 17
19:59:00: ERROR[main]: Some exception: "bad allocation"
Increasing it to 4 did not seem to return anything more relevant. I know it has something to do with memory, but I don't know how to stop the crashes (aside from buy a better computer - not an option yet)
I use Windows XP SP3 and have 1GB RAM. How can I stop these crashes (if it's possible)?
EDIT: I now use Windows 8 with 8GB RAM, but it continues to crash.

Posted:
Wed Dec 04, 2013 20:44
by PilzAdam
Maybe you just dont have enough RAM. How is your RAM usage directly before a crash?

Posted:
Wed Dec 04, 2013 21:08
by twoelk
I had the same error when trying to connect after a client crash. I tried several different client versions. Whenever I managed to connect, no chunks generated and the client crashed shortly afterwards. I did have enough time once to press F5, it revealed a very large value for the player position.
So none of my clients could cope with that large value saved on the server. VanessaE checked my player file and found the last position value to be [12-04 15:04] <VanessaE> position = (-2.14748e+06,-1.63842e+06,-4712)
after resetting that, I could connect again.

Posted:
Wed Dec 04, 2013 21:23
by qwrwed
PilzAdam: Usually pretty high.
Twoelk: I can connect fine and play normally at normal coordinates, so it's not that.

Posted:
Wed Dec 04, 2013 21:52
by PilzAdam
qwrwed wrote:PilzAdam: Usually pretty high.
Id guess that you just have too low RAM then.
Try closing other programs while playing Minetest, and decrease client_unload_unused_data in minetest.conf

Posted:
Thu Dec 05, 2013 01:35
by Sokomine
A recent version of MT had such a problem. But that ought to be fixed now. Perhaps the most current version will help?

Posted:
Thu Dec 05, 2013 19:12
by qwrwed
PilzAdam: I have tried setting it to 200, 100, and then 50, but it still crashed every time.
Sokomine: Sfan5's latest build doesn't work, Fess' 64-bit builds will not load on my 32-bit computer, and the other 3 (PilzAdam's, BlockMen's, xyz's) are 0.4.7-dev.

Posted:
Thu Dec 05, 2013 19:14
by Krock
Hmm I had the same problem with version 0.4.7, after updating to stable 0.4.8 this didn't happen again.
Try to get newest MT version.

Posted:
Thu Dec 05, 2013 20:36
by qwrwed
Krock wrote:Hmm I had the same problem with version 0.4.7, after updating to stable 0.4.8 this didn't happen again.
Try to get newest MT version.
I can't - I have 0.4.8 stable, and both builds (Fess, sfan5) later than that do not work.

Posted:
Fri Dec 06, 2013 06:18
by hoodedice
sfan's e52d811 build is the most stable one for me. Did you try it?

Posted:
Fri Dec 06, 2013 19:22
by qwrwed
That is 0.4.7-dev - if minetest crashes with the builds before that and crashes with the build after that (0.4.8-stable) then I doubt that build will work.

Posted:
Fri Dec 06, 2013 19:39
by Krock
Eliminate MT folder, backup games/worlds and install/unzip newest version again.

Posted:
Sat Dec 07, 2013 22:01
by qwrwed
I tried that with sfan5's latest build, BlockMen's latest build, and 0.4.8-stable, but that did not solve the error.
Re: Frequent crashes - "ERROR[main]: Some exception: "bad al

Posted:
Thu Aug 07, 2014 14:11
by qwrwed
I still have this error with 0.4.10 on a new laptop with 8GB of RAM, so RAM can't be the issue.
Re: Frequent crashes - "ERROR[main]: Some exception: "bad al

Posted:
Thu Aug 07, 2014 14:14
by Inocudom
qwrwed wrote:I still have this error with 0.4.10 on a new laptop with 8GB of RAM, so that can't be the issue.
That is a very big problem. Minetest must be devouring RAM.
Re: Frequent crashes - "ERROR[main]: Some exception: "bad al

Posted:
Thu Aug 07, 2014 14:39
by Krock
Direct3d9 can cause those problems. Edit your minetest.conf and set "video_driver" to OpenGL.
Re: Frequent crashes - "ERROR[main]: Some exception: "bad al

Posted:
Thu Aug 07, 2014 14:48
by qwrwed
The video driver is already OpenGL.
Re: Frequent crashes - "ERROR[main]: Some exception: "bad al

Posted:
Sun Aug 10, 2014 10:19
by qwrwed
Fess' 64-bit build seems to be working fine for me.