0xec / critterai

Automatically exported from code.google.com/p/critterai
1 stars 0 forks source link

CAI-Nav: Unity editor freezes when scene is run a second time. #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Scenario:

The threaded navigator is used in a Unity scene.  The scene is played in the 
Unity editor and operates as expected.  The scene is stopped.  The scene is 
then played again.  Unity freezes.

Scope:

When this problem occurs, it occurs consistently.  But it appears to only be a 
problem for certain Unity version/OS combinations.  It has been seen when using 
Unity 3.3 on 64-bit Windows 7.

The work around is to manually dispose of the threaded navigator when its owner 
is disposed.

If the owner is a MonoBehaviour, this can be done in the OnDestroy() method.

void OnDestroy()
{
    myThreadedNavigator.Dispose();
}

If the owner is a normal object, add perform the disposal in the object's 
destructor.

Original issue reported on code.google.com by steve...@gmail.com on 4 May 2011 at 2:28

GoogleCodeExporter commented 9 years ago
There are no plans to fix this issue permanently.  Reason: The prototype is 
expected to be retired within a month and there is a simple workaround.

This issue will be closed when the prototype is retired.

Original comment by steve...@gmail.com on 4 May 2011 at 3:15

GoogleCodeExporter commented 9 years ago
Prototype retired.

Original comment by steve...@gmail.com on 8 Jun 2011 at 7:29