[BUG] Deserializing graph on iOS throws exception

Forums 💬 NodeCanvas ⚙️ Support [BUG] Deserializing graph on iOS throws exception

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15992
    elasticsea
    Participant

      When running on iOS device instantiating the graph fails with the following exception. With or withoutAOTClasses.cs generated the exception is the same.  Full log in the attachments.

      TargetException: Non-static field requires a target
      at System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture)
      at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType)
      at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType)
      at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType)<code></code>

      When I run in editor or in other platform I get this:

      JsonName: targetList
      propertyData: {“_name”:”path”,”_targetVariableID”:”e89292a8-a8ae-4c19-9ea1-ddc062015b3c”}
      instance:  = <color=#FF6C6C><b>$path</b></color> []

      However on iOS I get this:

      JsonName: targetList
      propertyData: {“_name”:”path”,”_targetVariableID”:”e89292a8-a8ae-4c19-9ea1-ddc062015b3c”}
      instance:

      The instance is of type PickListElement<Vector3> which I can see in the AOT generated code as NodeCanvas.Tasks.Actions.PickListElement<UnityEngine.Vector3> NodeCanvas_Tasks_Actions_PickListElement_UnityEngine_Vector3

       

      #15993
      Gavalakis
      Keymaster

        Hello there and sorry for the very late reply!

        Can you please confirm that you also have link.xml file included in the build (which avoids code from being stripped) ?

        Also, can you please let me know where is that json from?

        Thank you!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.