Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

ComponentModel exceptions

Discussion in 'Scripting' started by AndersModen, Feb 14, 2022.

  1. AndersModen

    AndersModen

    Joined:
    Nov 19, 2019
    Posts:
    51
    TypeConverter converter = TypeDescriptor.GetConverter(typeof(T))

    where T is uint fails on IL2CPP ?

    System.MissingMethodException: Constructor on type 'System.ComponentModel.UInt32Converter' not found.
    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 System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture) [0x00000] in <00000000000000000000000000000000>:0
    at System.SecurityUtils.SecureCreateInstance (System.Type type, System.Object[] args, System.Boolean allowNonPublic) [0x00000] in <00000000000000000000000000000000>:0
    at System.SecurityUtils.SecureCreateInstance (System.Type type) [0x00000] in <00000000000000000000000000000000>:0
    at System.ComponentModel.ReflectTypeDescriptionProvider.CreateInstance (System.Type objectType, System.Type callingType) [0x00000] in <00000000000000000000000000000000>:0
    at System.ComponentModel.ReflectTypeDescriptionProvider.SearchIntrinsicTable (System.Collections.Hashtable table, System.Type callingType) [0x00000] in <00000000000000000000000000000000>:0
    at System.ComponentModel.ReflectTypeDescriptionProvider+ReflectedTypeData.GetConverter (System.Object instance) [0x00000] in <00000000000000000000000000000000>:0
    at System.ComponentModel.ReflectTypeDescriptionProvider.GetConverter (System.Type type, System.Object instance) [0x00000] in <00000000000000000000000000000000>:0
    at System.ComponentModel.TypeDescriptor+TypeDescriptionNode+DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetConverter () [0x00000] in <00000000000000000000000000000000>:0
    at System.ComponentModel.TypeDescriptor.GetConverter (System.Type type) [0x00000] in <00000000000000000000000000000000>:0
    at Saab.Unity.PluginLoader.UnityPluginInitializer.TryConvert[T] (System.String value, T& result) [0x00000] in <00000000000000000000000000000000>:0
    at Saab.Unity.PluginLoader.UnityPluginInitializer..ctor () [0x00000] in <00000000000000000000000000000000>:0
    at Saab.Foundation.Unity.Core.BtaBaseApplication.InitApplication () [0x00000] in <00000000000000000000000000000000>:0
    at Saab.Foundation.Unity.Core.BtaBaseApplication.Awake () [0x00000] in <00000000000000000000000000000000>:0


    Is this a BUG or just a feature of IL2CPP ?
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777
  3. AndersModen

    AndersModen

    Joined:
    Nov 19, 2019
    Posts:
    51
    2019.4.26f1 - android il2cpp arm64
     
  4. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777