Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Error on LocalizeString

Discussion in 'Localisation Tools Previews' started by Caio_Lib, Jan 5, 2019.

  1. Caio_Lib

    Caio_Lib

    Joined:
    Mar 4, 2014
    Posts:
    75
    Hi!
    When I play some scene with LocalizeString component it shows me some messages/warnings/errors.

    Localization Settings - On demand:

    Message:

    Locale 'en-US' is not supported, however the parent locale 'en' is.
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Warning:

    SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
    UnityEngine.Localization.Components.LocalizationBehaviour:OnValidate()

    Error:

    InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=en - GUI
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Failed to load asset:
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Localization Settings - Preload:

    Message:

    Locale 'en-US' is not supported, however the parent locale 'en' is.
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Localization: Preloading Asset Tables(0.12)
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Localization: Preloading String Tables(0.12)
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Warning:

    SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
    UnityEngine.Localization.Components.LocalizationBehaviour:OnValidate()

    Error:

    InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=System.Object[]
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Failed to load asset:
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Exception thrown in DynamicInvoke: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
    at UnityEngine.Localization.AssetDatabasePreloadOperation.PreloadTablesCompleted (UnityEngine.ResourceManagement.IAsyncOperation`1[T] asyncOperation) [0x00011] in /Users/Games/Library/PackageCache/com.unity.localization@0.2.2-preview/Runtime/Operations/AssetDatabasePreloadOperation.cs:44
    at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <ac823e2bb42b41bda67924a45a0173c3>:0
    --- End of inner exception stack trace ---
    at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <ac823e2bb42b41bda67924a45a0173c3>:0
    at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <ac823e2bb42b41bda67924a45a0173c3>:0
    at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <ac823e2bb42b41bda67924a45a0173c3>:0
    at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <ac823e2bb42b41bda67924a45a0173c3>:0
    at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <ac823e2bb42b41bda67924a45a0173c3>:0
    at UnityEngine.ResourceManagement.DelayedActionManager+DelegateInfo.Invoke () [0x00002] in /Users/Games/Library/PackageCache/com.unity.resourcemanager@2.4.2-preview/Runtime/Util/DelayedActionManager.cs:48 5 (target=UnityEngine.Localization.AssetDatabasePreloadOperation result = , status = None, valid = True, canRelease = False) AssetDatabasePreloadOperation.PreloadTablesCompleted(UnityEngine.ResourceManagement.CompletedOperation`1[System.Collections.Generic.IList`1[UnityEngine.Localization.LocalizedAssetTable]] result = , status = Failed, valid = True, canRelease = False) @3.568834
    UnityEngine.ResourceManagement.DelayedActionManager:LateUpdate()

    Default Locale Selector: English (en).

    Thank you!
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    3,143
    Hey. Can you share your project, so I can take a look at how its set up?
     
    Caio_Lib likes this.
  3. Caio_Lib

    Caio_Lib

    Joined:
    Mar 4, 2014
    Posts:
    75
    Hi @karl_jones !
    Project shared on Conversations.

    Thank you again!
     
    karl_jones likes this.