MissingMethodExcept...
 

MissingMethodException when creating Polygon node in v1.1.6  

  RSS

alpha_cast
(@alpha_cast)
Joined: 2 years ago
Posts: 15
28/06/2018 2:07 am  

I've just upgraded to Archimatix 1.1.6 and now I can't create Polygon nodes. I've tried deleting the AXModel and creating a new one, this happens either way. Whenever I click on that node in the library I get an error:

MissingMethodException: Default constructor not found for type AXPoly2Tri.Polygon
System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.Activator.CreateInstance (System.Type type) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
AX.AXParametricObject.instantiateGenerator () (at Assets/Archimatix/Scripts/Core/AXParametricObject.cs:4302)
AX.AXParametricObject.init () (at Assets/Archimatix/Scripts/Core/AXParametricObject.cs:1650)
AX.AXParametricObject..ctor (System.String t, System.String name) (at Assets/Archimatix/Scripts/Core/AXParametricObject.cs:1636)
AX.AXModel.addParametricObject (System.String type, System.Boolean panTo, AX.AXParametricObject basedOnPO) (at Assets/Archimatix/Scripts/Core/AXModel.cs:1447)
AX.AXModel.createNode (System.String nodeName, System.Boolean panTo, AX.AXParametricObject basedOnPO, System.Single pos_x, System.Single pos_y) (at Assets/Archimatix/Scripts/Core/AXModel.cs:1521)
AXEditorUtilities.addNodeToCurrentModel (System.String nodeName, System.Boolean panTo, AX.AXParametricObject basedOnPO) (at Assets/Archimatix/Scripts/Editor/AXEditorUtilities.cs:990)
NodeMenu.display (System.Single imagesize, AXNodeGraphEditorWindow editor) (at Assets/Archimatix/Scripts/Editor/NodeGraph/NodeMenu.cs:135)
AXNodeGraphEditorWindow.OnGUI () (at Assets/Archimatix/Scripts/Editor/NodeGraph/AXNodeGraphEditorWindow.cs:2066)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <e1a80661d61443feb3dbdaac88eeb776>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:257)
UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:386)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:228)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:366)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:350)
UnityEngine.Experimental.UIElements.EventDispatcher.DispatchEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:215)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:224)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:77)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:184)

Quote
Rory
 Rory
(@rory)
Admin
Joined: 2 years ago
Posts: 44
29/06/2018 9:04 am  

I can't seem to replicate this. Could you send me your scene file?


ReplyQuote
alpha_cast
(@alpha_cast)
Joined: 2 years ago
Posts: 15
14/07/2018 10:19 pm  

I've been working in another unity project for a little while, and now that I come back to the project I was having issues with, the issue seems resolved. Perhaps there was some Unity assembly caching issue or something.

Thanks for the prompt reply, regardless.


ReplyQuote
Share:

Please Login or Register