Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Localization String Tables will not load on Android 5.1.1 device, but works on a Samsung S20

Discussion in 'Addressables' started by mgoemmel, Dec 15, 2022.

  1. mgoemmel

    mgoemmel

    Joined:
    Sep 16, 2022
    Posts:
    10
    Hello everyone,

    when deploying my app built with Unity 2021 LTS, Localization 1.3.2, Addressables 1.21.1, my strings table resolving works fine on every iOS and Windows device, even it works fine under WebGL5, and also installing it as a .apk on a Samsung S20. But it fails on another test device running Android 5.1.1. The while app is running fine, but all my strings are empty, because

    string rc= LocalizationSettings.StringDatabase.GetLocalizedString(id);

    returns null.

    LocalizationSettings.InitializeSynchronously = false;
    yield return LocalizationSettings.InitializationOperation;

    is done in IEnumerator Start().

    Because it's running on all typ of devices, and of course the Editor, I'm not sure what's going wrong. Is it possible the Localization support is not offered for such an old Android version, even the whole app is running? Or did I miss something?

    I can build in Window -> Addressables -> Groups -> Default Build Script, and also did it before building the .apk.

    Any help or idea would be highly appreciated.

    Thanks and regards

    Markus
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,570
    I'm not aware of any Android limitations but if there are then it will be due to Addressables. Do you get any error messages in the log file? Can you try updating to localization 1.4.2? You may need to manually edit the manifest.json file in the Packages folder if its not visible in the package manager.
     
  3. mgoemmel

    mgoemmel

    Joined:
    Sep 16, 2022
    Posts:
    10
    Wow, thank you for your prompt reply. That's more than impressive.

    Do you mean Android Logcat for creating a logfile? I didn't used it so far, but will try if it is what you think about.

    I will also try to switch to localization 1.4.2 and will let you know if this changes anything.

    Thanks again

    Markus
     
    karl_jones likes this.
  4. mgoemmel

    mgoemmel

    Joined:
    Sep 16, 2022
    Posts:
    10
    Attached is the complete logcat file, I guess the important lines start here. If the same archive would not work on a more-up-to-date Android device, I would guess I missed something during build.

    Thanks for your time!

    Markus

    --- snipp ---


    12.15 16:48:45.528 12936 12963 Error Unity System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /data/app/com.CompuLab.TrueBackgammon-1/lib/arm/libmono-native.so assembly:<unknown assembly> type:<unknown type> member:(null)
    12.15 16:48:45.528 12936 12963 Error Unity at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
    12.15 16:48:45.528 12936 12963 Error Unity at Interop+Sys..cctor () [0x00000] in <12d27ebfb46146b18b40876234894c77>:0
    12.15 16:48:45.528 12936 12963 Error Unity --- End of inner exception stack trace ---
    12.15 16:48:45.528 12936 12963 Error Unity at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <12d27ebfb46146b18b40876234894c77>:0
    12.15 16:48:45.528 12936 12963 Error Unity at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath) [0x00006] in <12d27ebfb46146b18b40876234894c77>:0
    12.15 16:48:45.528 12936 12963 Error Unity at System.IO.File.Exists (System.String path) [0x00043] in <12d27ebfb46146b18b40876234894c77>:0
    12.15 16:48:45.528 12936 12963 Error Unity at UnityEngine.ResourceManagement.Util.ResourceManagerConfig.ShouldPathUseWebRequest (System.String path) [0x00001] in W:\BGMunity\Library\PackageCache\com.unity.addressables@1
    12.15 16:48:45.608 12936 12963 Error Unity RuntimeData is null. Please ensure you have built the correct Player Content.
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.Debug:LogError (object)
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.AddressableAssets.AddressablesImpl:LogError (string) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/AddressablesImpl.cs:212)
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.AddressableAssets.Addressables:LogError (string) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/Addressables.cs:681)
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.ResourceManagement.AsyncOperations.InitalizationObjectsOperation:Execute () (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/Initialization/InitializationObjectsOperation.cs:80)
    12.15 16:48:45.608 12936 12963 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<bool>:InvokeExecute (
    12.15 16:48:45.658 12936 12963 Warn Unity Addressables - Unable to load runtime data at location UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[[UnityEngine.AddressableAssets.Initialization.ResourceManagerRuntimeData, Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].
    12.15 16:48:45.658 12936 12963 Warn Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    12.15 16:48:45.658 12936 12963 Warn Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    12.15 16:48:45.658 12936 12963 Warn Unity UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
    12.15 16:48:45.658 12936 12963 Warn Unity UnityEngine.Debug:LogWarningFormat (string,object[])
    12.15 16:48:45.658 12936 12963 Warn Unity UnityEngine.AddressableAssets.AddressablesImpl:LogWarningFormat (string,object[]) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/AddressablesImpl.cs:207)
    12.15 16:48:45.658 12936 12963 Warn Unity UnityEngine.AddressableAssets.Addressables:LogWarningFormat (string,object[]) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/Addressables.cs:672)
    12.15 16:48:45.658 12936 12963 Warn Unity UnityEngine.AddressableAssets.Initializati
    12.15 16:48:45.668 12936 12963 Error Unity OperationException : Addressables - Unable to load runtime data at location UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[[UnityEngine.AddressableAssets.Initialization.ResourceManagerRuntimeData, Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].
    12.15 16:48:45.668 12936 12963 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    12.15 16:48:45.668 12936 12963 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    12.15 16:48:45.668 12936 12963 Error Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
    12.15 16:48:45.668 12936 12963 Error Unity UnityEngine.Debug:LogError (object)
    12.15 16:48:45.668 12936 12963 Error Unity UnityEngine.AddressableAssets.AddressablesImpl:LogException (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle,System.Exception) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/AddressablesImpl.cs:219)
    12.15 16:48:45.668 12936 12963 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:set_OperationException (Syste
    12.15 16:48:45.788 12936 12963 Error Unity UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Location found for Key=Locale
    12.15 16:48:45.788 12936 12963 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    12.15 16:48:45.788 12936 12963 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    12.15 16:48:45.788 12936 12963 Error Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
    12.15 16:48:45.788 12936 12963 Error Unity UnityEngine.Debug:LogError (object)
    12.15 16:48:45.788 12936 12963 Error Unity UnityEngine.AddressableAssets.AddressablesImpl:LogException (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle,System.Exception) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/AddressablesImpl.cs:219)
    12.15 16:48:45.788 12936 12963 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.Localization.Locale>>:set_OperationException (System.Exception) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/ResourceManager/AsyncOperations/AsyncOp
    12.15 16:48:45.988 12936 12963 Error Unity OperationException : ChainOperation failed because dependent operation failed
    12.15 16:48:45.988 12936 12963 Error Unity UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Location found for Key=Locale
    12.15 16:48:45.988 12936 12963 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    12.15 16:48:45.988 12936 12963 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    12.15 16:48:45.988 12936 12963 Error Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
    12.15 16:48:45.988 12936 12963 Error Unity UnityEngine.Debug:LogError (object)
    12.15 16:48:45.988 12936 12963 Error Unity UnityEngine.AddressableAssets.AddressablesImpl:LogException (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle,System.Exception) (at W:/BGMunity/Library/PackageCache/com.unity.addressables@1.21.1/Runtime/AddressablesImpl.cs:219)
    12.15 16:48:45.988 12936 12963 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.Localization.Locale>>:set_OperationException (System.Exception) (at W:/BGMunity/Library/PackageCache
    12.15 16:48:46.108 12936 12963 Debug Unity WARNING: RGBA Compressed ASTC6X6 UNorm format is not supported, decompressing texture
    12.15 16:48:46.808 12936 12963 Verbose AudioManager isBluetoothA2dpOn...
    12.15 16:48:47.058 12936 12963 Error Unity No Locale could be selected:
    12.15 16:48:47.058 12936 12963 Error Unity No Locales were available. Did you build the Addressables?
     

    Attached Files:

  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,570
    The error Error
    Unity RuntimeData is null. Please ensure you have built the correct Player Content.
    is what you get when it fails to find/load the addressables data.
    Could you please file a bug report? The addressables team will need to investigate this.
     
  6. mgoemmel

    mgoemmel

    Joined:
    Sep 16, 2022
    Posts:
    10
    CASE IN-26129

    Thank you very much for your service!
     
    karl_jones likes this.