(13-02-2018, 03:07 PM)josemendez Wrote: The crash seems to happen during collision detection. Can you describe your colliders setup a little bit, so that I can focus my efforts when trying to reproduce it?
See attached images. I have a bunch of static colliders on the frame, of which only the rearmost ones have ObiColliders attached (and also the floor). The only dynamic object with ObiColliders in this scene is the cord hanging on the wall. In fact, most crashes i've experienced have been related to objects being attached using fixed joints or through kinematic PhysX rigidbodies.
An unrelated issue: I noticed that the cord in the background was still using pin constraints, so i swapped them out for handles. In the process however, i noticed that one of them had two extra, empty pin constraints (gameobjects missing, most likely from some previous iteration, or due to Unity Collaborate being a heap of garbage). When i started removing them, i got spammed with about 500 versions of this message:
ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[Obi.ObiCollider].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
Obi.ObiPinConstraintsEditor.OnSceneGUI () (at Assets/Obi/Editor/ObiPinConstraintsEditor.cs:181)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.SceneView.CallOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2507)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1833)
UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1663)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
Anyhow, i swapped them out but the crashes persist (there should now be zero ObiRigidbodies in the scene - all cords are using handles). I emailed you the most recent dump, since after i removed the pin constraints.
EDIT: Another thing i noted - i still see the "pin constraint" GUI gizmo over objects which used to have pin constraints, even after i've removed all pin constraints from the ropes. Same goes with "distance constraints".