Dose FlowCanvas Support IL2CPP Building Arm64 Android APK ?

FlowCanvas Forums Support Dose FlowCanvas Support IL2CPP Building Arm64 Android APK ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3291
    fatiao
    Participant

    Using IL2CPP publish arm64 Android APK has many errors when running as follows:

    —————————————
    2-06-17 11:59:17.222 6306-6336/com.DefaultCompany.CyberClient E/Unity: ExecutionEngineException: Attempting to call method ‘FlowCanvas.ValueOutput1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]::.ctor’ for which no ahead of time (AOT) code was generated.
    at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in <00000000000000000000000000000000>:0
    at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
    at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00000] in <00000000000000000000000000000000>:0
    at FlowCanvas.ValueOutput.CreateI
    2022-06-17 11:59:17.226 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.238 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.242 6306-6336/com.DefaultCompany.CyberClient E/Unity: NullReferenceException: Object reference not set to an instance of an object.
    at FlowCanvas.FlowNode.AssignSelfInstancePort () [0x00000] in <00000000000000000000000000000000>:0
    at FlowCanvas.FlowGraph.InitSecondPass () [0x00000] in <00000000000000000000000000000000>:0
    at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.Initialize (UnityEngine.Component newAgent, NodeCanvas.Framework.IBlackboard newParentBlackboard, System.Boolean preInitializeSubGraphs) [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.StartGraph (UnityEngine.Component newAgent, NodeCanvas.Framework.IBlackboard newParentBlackboard, NodeCanvas.Framework.Graph+UpdateMode newUpdateMode, System.Action
    1[T] callback) [0x00000] in <00000000000000000000000000000000>:0
    at FlowCanvas.FlowGraph.OnGraphStarted () [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.StartGraph (UnityEngine.Component newAgent, NodeCanvas.Fra
    2022-06-17 11:59:17.248 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.251 6306-6336/com.DefaultCompany.CyberClient E/Unity: NullReferenceException: Object reference not set to an instance of an object.
    at FlowCanvas.Nodes.StartEvent.OnStartCallback () [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.StartGraph (UnityEngine.Component newAgent, NodeCanvas.Framework.IBlackboard newParentBlackboard, NodeCanvas.Framework.Graph+UpdateMode newUpdateMode, System.Action1[T] callback) [0x00000] in <00000000000000000000000000000000>:0
    at FlowCanvas.FlowGraph.OnGraphStarted () [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.StartGraph (UnityEngine.Component newAgent, NodeCanvas.Framework.IBlackboard newParentBlackboard, NodeCanvas.Framework.Graph+UpdateMode newUpdateMode, System.Action
    1[T] callback) [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.GraphOwner.StartBehaviour (NodeCanvas.Framework.Graph+UpdateMode updateMode, System.Action`1[T] callback) [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.GraphOwner.O
    2022-06-17 11:59:17.257 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.258 6306-6336/com.DefaultCompany.CyberClient E/Unity: NullReferenceException: Object reference not set to an instance of an object.
    at FlowCanvas.FlowNode.AssignSelfInstancePort () [0x00000] in <00000000000000000000000000000000>:0
    at FlowCanvas.FlowGraph.InitSecondPass () [0x00000] in <00000000000000000000000000000000>:0
    at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.LoadOverwrite (NodeCanvas.Framework.Internal.GraphLoadData data) [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.GraphOwner.Initialize () [0x00000] in <00000000000000000000000000000000>:0
    2022-06-17 11:59:17.261 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.285 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.287 6306-6336/com.DefaultCompany.CyberClient E/Unity: NullReferenceException: Object reference not set to an instance of an object.
    at FlowCanvas.FlowNode.AssignSelfInstancePort () [0x00000] in <00000000000000000000000000000000>:0
    at FlowCanvas.FlowGraph.InitSecondPass () [0x00000] in <00000000000000000000000000000000>:0
    at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.LoadOverwrite (NodeCanvas.Framework.Internal.GraphLoadData data) [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.GraphOwner.Initialize () [0x00000] in <00000000000000000000000000000000>:0
    2022-06-17 11:59:17.290 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.296 6306-6336/com.DefaultCompany.CyberClient E/Unity: 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) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Deserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type overrideConverterType) [0x00000] in <00000000000000000000000000000000>:0
    at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Type over
    2022-06-17 11:59:17.298 6306-6336/com.DefaultCompany.CyberClient E/Unity: NullReferenceException: Object reference not set to an instance of an object.
    at FlowCanvas.FlowNode.AssignSelfInstancePort () [0x00000] in <00000000000000000000000000000000>:0
    at FlowCanvas.FlowGraph.InitSecondPass () [0x00000] in <00000000000000000000000000000000>:0
    at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.Graph.LoadOverwrite (NodeCanvas.Framework.Internal.GraphLoadData data) [0x00000] in <00000000000000000000000000000000>:0
    at NodeCanvas.Framework.GraphOwner.Initialize () [0x00000] in <00000000000000000000000000000000>:0
    2022-06-17 11:59:17.357 6306-6526/com.DefaultCompany.CyberClient E/libc: Access denied finding property “ro.vendor.media.video.frc.support”

    #3292
    Gavalakis
    Keymaster

    Hello there,

    Please note that all struct types used in FlowCanvas need to be added in the Preferred Types and generate the AOTClasses with the related buttons for AOT platforms (IL2CPP included). (https://flowcanvas.paradoxnotion.com/documentation/?section=working-with-aot-platforms)

    Looking at the first line you posted:

    “Attempting to call method ‘FlowCanvas.ValueOutput1[[System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]::.ctor’ for which no ahead of time (AOT) code was generated.”,

    it shows that you need to add the “DateTime” type in your FlowCanvas Preferred Types Editor and re-generate the AOT Classes.

    Let me know if this works for you.

    Thank you!

    Join us on Discord: https://discord.gg/97q2Rjh

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