I have a problem with the Localization System, consisting in that in the editor everything works fine, but once I make a build and install it on my Quest 2, I get the following error (debugging with logcat):
2022/09/16 12:57:04.743 1450 1494 Error Unity ExecutionEngineException: Attempting to call method ‘Unity.VisualScripting.StaticFunctionInvoker`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[UnityEngine.Localization.Tables.TableReference, Unity.Localization, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]::.ctor’ for which no ahead of time (AOT) code was generated.
…and also these:
2022/09/16 12:57:04.743 1450 1494 Error Unity at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[ ] parameters, System.Boolean wrapExceptions) [0x00000] in <00000000000000000000000000000000>:0
2022/09/16 12:57:04.743 1450 1494 Error Unity 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
2022/09/16 12:57:04.743 1450 1494 Error Unity at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Sys
My application consists of a visual script, that has several types of dialogue/pop-up boxes which I’m using for a dialogue system. Those have a bunch of TMP text in them which is localized. You can see my dialogue system canvas on the right (scene.png) and a bunch of buttons and text I added to the left in attempt to debug. Most importantly, one of the two debug texts at the bottom is localized and but as visible, it still only shows the default “localized text” string, which I did in order to have something that is not attached to the Visual script and see if the issue still occurs (see localized_debug_text.png and localized_debug_text_table.png).
Things I have tried so far:
- Rebuild addressables (both clean and default build)
- Change the Bundle naming mode to Append Hash to File name
- Wait for next frame before spawning dialogue boxes
- Tried to change default locale to a different language
- Tried changing LS package version (both upgrading manually through the manifest and downgrading to the next available version in the package manager)
Unity version: 2021.2.14f1
Localization System package version: 1.3.2
I’m attaching an image of how my addressables look atm.
Any help will be super appreciated as the situation is a bit urgent and I can provide extra info if needed!