03-25-2013, 03:22 AM
Please try rev 1310. I'm only interested if the "1 GiB limit" triggers in this case, no need to wait for the actual memdump data, just kill it when it starts dumping. (Best to kill by Shift+F5 from VS)
rev 1293
|
03-25-2013, 03:22 AM
Please try rev 1310. I'm only interested if the "1 GiB limit" triggers in this case, no need to wait for the actual memdump data, just kill it when it starts dumping. (Best to kill by Shift+F5 from VS)
Cool, testing
Interesting, now it goes straight to dump on "[1cc0|10:29:31] Preparing spawn area in world "world"..." before I even connect a client. I can try raising the level to 1.5 gb.
Ah, stupid me, I added the housekeeping costs in the "allocate" part, but not in the "free" part. Sorry, I'll fix the code asap.
Rev 1311 is ready for your testing I have a feeling that this issue is MSVC 2012's fault. Its STL probably uses a different allocation scheme for vectors - each vector created allocates something small off the heap. With MCServer using thousands of vectors simultaneously (16 per chunk for each fluid simulator), this allocation will very soon overwhelm the leakfinder.
Cool, now i was able to hit the 1gb mark when connecting a client. It's dumping right now Yeah, just like you said, I am beginning to think that it's VC2012 issue. I tried compiling it with WinXP compatibility, but it still gave the issue. So I can try to get the VC2010 compiler and see if that makes a difference.
EDIT: It finished the dump. Attached are the totals and the .dot file. Here is the link for the full memory dump: http://www.mediafire.com/download.php?ht891iubiz756u6
03-25-2013, 05:29 AM
I've tweaked the LeakFinder to use less housekeeping info, so I suppose you should be able to use rev 1314 for debugging under VS2012, but it still will eat a LOT of memory. I think downloading VS2010, or even better, VS2008, is a better option.
Heck, even FakeTruth reverted to VS2008 Express after finding out just how fast it is
03-25-2013, 05:35 AM
Yeah, i'll probably end up doing that. I am downloading the 7.1 SDK which should have the 2010 compiler.
One question, for our builds, we are using VS2010 compiler, right?
03-25-2013, 06:44 AM
I'm using VC2008 Express; afaik FakeTruth is using that one as well. STR_Warrior said something about using VC2010.
03-25-2013, 06:47 AM
i'm also using VC2008
Downloading visual studio 2008.... (it's good to have an MSDN subscription! )
Cool, the error went away compiling with visual studio 2008 tool set in Visual Studio 2012. However, I am seeing that it is dumping the memory on shutdown. I tracked down the problem to g_CurrentMemUsage being underflow. I'm not sure why it is deleting more than it is adding.
03-25-2013, 08:44 AM
Yeah, I also get the dump when shutting down the server compiled with just visual studio 2008.
|
« Next Oldest | Next Newest »
|