Posts: 51
Threads: 13
Joined: Feb 2014
Thanks: 0
Given 0 thank(s) in 0 post(s)
02-21-2014, 02:40 AM
(This post was last modified: 02-21-2014, 02:43 AM by Narroo.)
I can't log onto my debug server. On my client I get stuck at "Downloading Terrain." In the console I get a bunch of SetSwimState errors, followed by things like
BioGenCache: 61425 hits, 25 misses, saved 99.96 %
BioGenCache: Avg cache chain length: 4.76
Till I get a deadlocked error.
Anyone know what's going on?
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
The BoiGenCache thing is just chunks generating, you can safely ignore that. Try increasing the deadlock boundary, it might be an issue if you're on a really slow machine.
Posts: 952
Threads: 16
Joined: May 2013
Thanks: 66
Given 105 thank(s) in 89 post(s)
Comment out the ENABLE_LEAK_FINDER defines in main.cpp and Server.cpp for faster debug speeds.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
02-21-2014, 05:09 AM
(This post was last modified: 02-21-2014, 05:12 AM by xoft.)
The assertion is an important discovery - it means that a release mode binary will silently err there, with who knows what results - could be anything from nothing through a wrong written file to crashing completely. Whenever you get such an assertion, you should press Retry to drop into the debugger, and investigate the assert. Usually there is a comment next to it describing why the assert is there. Posting the assert together with the stacktrace (the Call stack window lets you copy its contents) could be useful, too, if you have just no idea on how to fix that. Usually the callstack is more important that the actual assert line, since the assert line is in some common code part, while the real cause is higher up the function call chain.
As for the poor performance, I have decided to disable the leak finder in the canon source. We haven't had any memory leaks for over a year now and when we do, the linux guys can find them with valgrind. VS2013 makes the leak finder really slow, next to unusable.
The SetSwimState failures are an issue of their own, I want the person who added the log to fix them!
Posts: 51
Threads: 13
Joined: Feb 2014
Thanks: 0
Given 0 thank(s) in 0 post(s)
Well, I can't seem to get the assertion error anymore. Though it's slow, I can log into my debug server now. I guess it got it out it's system?
Would you guys like me to post the logs?
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
I"m like 100% sure xoft didn't made the drowning code, but neither did you. It was someone who like some more people do a pull request and then don't here from them for a while.