MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
139 stars 64 forks source link

Silent crash when agents can't be placed on navigation mesh #2

Open MengeCrowdSim opened 9 years ago

MengeCrowdSim commented 9 years ago

In initializing a scene using a navigation mesh, if the agent generator seeks to place an agent at a position that doesn't align with the navigation mesh, menge crashes without any information in the log.

MengeCrowdSim commented 9 years ago

Additional note: the cause of this is the fact that the MengeFatalException is caught during the simulation loop, but not during initialization. So, when the exception is thrown, a message is written to the log buffer, but the exception is never handled so the log buffer doesn't get a chance to flush out so no reason is given for the crash. Simply catch a fatal exception and close things out gracefully and this problem will be resolved.