Code: Select all
ExecutionEngineException: SIGILL
ChipmunkPolyShape.set_radius (Single value) (at Assets/Plugins/Chipmunk2D/Shapes/ChipmunkPolyShape.cs:72)
ExplodingRabbit.CustomAssetModificationProcessor.OnWillSaveAssets (System.String[] paths) (at Assets/Scripts/File management/Editor/CustomAssetModificationProcessor.cs:25)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/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/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.AssetModificationProcessorInternal.OnWillSaveAssets (System.String[] assets, System.String[]& assetsThatShouldBeSaved, System.String[]& assetsThatShouldBeReverted, Int32 explicitlySaveScene)
It's worth noting that setting the radius of a ChipmunkSegmentShape through a script does not cause the same error. I have not tested with other shape types.
I am able to get around the bug by using ChipmunkPolyShape._radius instead. By the way, why are all of these fields with underscores public? It seems like they should be private or protected.