rev 1293
#1
Hi All,

Has anybody tried the rev 1293? I'm experiencing a "bad_alloc at memory location" error when connecting clients to the MCServer.
Reply
Thanks given by:
#2
no it works fine for me.
Reply
Thanks given by:
#3
Are you using the floody simulator? I switched the server to noop, and it now loads Smile
Reply
Thanks given by:
#4
yes i'm using Floody ;O
Reply
Thanks given by:
#5
mmmm, interesting, then it must be my machine hehe.
Reply
Thanks given by:
#6
Perhaps give some info about what os your running :p.
Stuff on windows might not work on linux Wink.
Reply
Thanks given by:
#7
I'm running Windows 7, 64 bit. I compiled it with Visual Studio 2012.

I ran a quick check in process explorer, and I found out that MC Server is going up to 1.9gb of memory used before I get the error. Check out the attached image.


Attached Files Thumbnail(s)
   
Reply
Thanks given by:
#8
That would be the cause - since MCServer is compiled as a 32-bit process, it runs out of memory at 2 GiB. So what you're getting is an out-of-memory.

Now, the question is, why?

Can you reproduce and then when it hits the debugger, check the cFloodyFluidSimulator::m_TotalBlocks value? You'll probably have to jump through hoops to get it, I suppose something like cRoot::Get()->m_pDefaultWorld->m_WaterSimulator as a watch expression would give you access to it. Normally for freshly generated worlds it can go as high as 200k, but if it's much more, then something's probably wrong.

Also, I think it'd be helpful in this case if you gave us the entire world folder zipped up, and your player's config file ($/MCServer/players/<playername>.json ) so that we can replicate this.
Reply
Thanks given by:
#9
Yeah, that's what I figured when I saw that it went to 1.9gb of memory used Sad

I tried disabling just the lava simulator and leaving the water simulator as floody, and the error did not occur. So, it might be something going on with the lava sym.

I attached my world and my json file. Wow, the forum gives a maximum of 1024kb for attachments, so I had to split it in chunks. Just in case, I used 7zip to split it, and then manually added the .zip extension at the end so the forum would let me post it.


Attached Files
.zip   MCServer.zip.001.zip (Size: 976.56 KB / Downloads: 285)
.zip   MCServer.zip.002.zip (Size: 976.56 KB / Downloads: 261)
.zip   MCServer.zip.003.zip (Size: 810.36 KB / Downloads: 283)
Reply
Thanks given by:
#10
The lava and water simulators use the very same engine (if they are set to the same value, Floody in this case). Disabling one may have alleviated the issue because there are no longer that many blocks to simulate.

I'll try your world in a moment, I've just found a bug in the block update code that I want to fix first (water didn't dry up properly because of it)
Reply
Thanks given by:




Users browsing this thread: 5 Guest(s)